Skip to content

Commit 7b41d50

Browse files
committed
fix: add more tests for full coverage
1 parent 3b86ec3 commit 7b41d50

File tree

2 files changed

+9
-0
lines changed
  • lib/node_modules/@stdlib/string/base

2 files changed

+9
-0
lines changed

lib/node_modules/@stdlib/string/base/remove-first-code-point/test/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ tape( 'the function removes the first Unicode code point of a provided string (U
7171
out = removeFirst( '𐒻𐓟', 1 );
7272
t.strictEqual( out, '𐓟', 'returns expected value' );
7373

74+
out = removeFirst( '\uDC00', 1 );
75+
t.strictEqual( out, '', 'returns expected value' );
76+
7477
t.end();
7578
});
7679

lib/node_modules/@stdlib/string/base/remove-last-code-point/test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ tape( 'the function removes the last Unicode code point of a provided string (Un
7171
out = removeLast( '𐒻𐓟', 1 );
7272
t.strictEqual( out, '𐒻', 'returns expected value' );
7373

74+
out = removeLast( '𐒻𐓟', 1 );
75+
t.strictEqual( out, '𐒻', 'returns expected value' );
76+
77+
out = removeLast( '\uDC00', 1 );
78+
t.strictEqual( out, '', 'returns expected value' );
79+
7480
t.end();
7581
});
7682

0 commit comments

Comments
 (0)