Skip to content

Commit 685a7ec

Browse files
committed
Add comments
1 parent 421a918 commit 685a7ec

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/node_modules/@stdlib/array/pool/test/test.factory.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,7 @@ tape( 'the function supports specifying a high water mark which limits the total
17901790
t.strictEqual( arr1.length, 8, 'returns expected value' );
17911791
t.strictEqual( arr1.byteLength, 64, 'returns expected value' );
17921792

1793+
// Specifying an array length:
17931794
arr2 = typedarraypool( 1e6, 'float64' );
17941795
t.strictEqual( arr2, null, 'returns expected value' );
17951796

@@ -1799,6 +1800,7 @@ tape( 'the function supports specifying a high water mark which limits the total
17991800
arr2 = typedarraypool.calloc( 1e6, 'float64' );
18001801
t.strictEqual( arr2, null, 'returns expected value' );
18011802

1803+
// Providing a array from which to copy elements:
18021804
arr2 = typedarraypool( new Float64Array( 20 ), 'float64' );
18031805
t.strictEqual( arr2, null, 'returns expected value' );
18041806

@@ -1810,6 +1812,7 @@ tape( 'the function supports specifying a high water mark which limits the total
18101812

18111813
typedarraypool.free( arr1 );
18121814

1815+
// Specifying an array length:
18131816
arr2 = typedarraypool( 1e6, 'float64' );
18141817
t.strictEqual( arr2, null, 'returns expected value' );
18151818

@@ -1819,6 +1822,7 @@ tape( 'the function supports specifying a high water mark which limits the total
18191822
arr2 = typedarraypool.calloc( 1e6, 'float64' );
18201823
t.strictEqual( arr2, null, 'returns expected value' );
18211824

1825+
// Providing a array from which to copy elements:
18221826
arr2 = typedarraypool( new Float64Array( 20 ), 'float64' );
18231827
t.strictEqual( arr2, null, 'returns expected value' );
18241828

@@ -1828,6 +1832,7 @@ tape( 'the function supports specifying a high water mark which limits the total
18281832
arr2 = typedarraypool.calloc( new Float64Array( 20 ), 'float64' );
18291833
t.strictEqual( arr2, null, 'returns expected value' );
18301834

1835+
// Create an array which is less than or equal to the high water mark:
18311836
arr2 = typedarraypool( 8, 'float64' );
18321837
t.strictEqual( arr2.length, 8, 'returns expected value' );
18331838
t.strictEqual( arr2.byteLength, 64, 'returns expected value' );

0 commit comments

Comments
 (0)