Skip to content

Commit

Permalink
fix: add more tests for full coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
steff456 committed Aug 26, 2023
1 parent 3b86ec3 commit 7b41d50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ tape( 'the function removes the first Unicode code point of a provided string (U
out = removeFirst( '𐒻𐓟', 1 );
t.strictEqual( out, '𐓟', 'returns expected value' );

out = removeFirst( '\uDC00', 1 );
t.strictEqual( out, '', 'returns expected value' );

t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ tape( 'the function removes the last Unicode code point of a provided string (Un
out = removeLast( '𐒻𐓟', 1 );
t.strictEqual( out, '𐒻', 'returns expected value' );

out = removeLast( '𐒻𐓟', 1 );
t.strictEqual( out, '𐒻', 'returns expected value' );

out = removeLast( '\uDC00', 1 );
t.strictEqual( out, '', 'returns expected value' );

t.end();
});

Expand Down

0 comments on commit 7b41d50

Please sign in to comment.