File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
lib/node_modules/@stdlib/string/base
remove-first-code-point/test
remove-last-code-point/test Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ tape( 'the function removes the first Unicode code point of a provided string (U
71
71
out = removeFirst ( '𐒻𐓟' , 1 ) ;
72
72
t . strictEqual ( out , '𐓟' , 'returns expected value' ) ;
73
73
74
+ out = removeFirst ( '\uDC00' , 1 ) ;
75
+ t . strictEqual ( out , '' , 'returns expected value' ) ;
76
+
74
77
t . end ( ) ;
75
78
} ) ;
76
79
Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ tape( 'the function removes the last Unicode code point of a provided string (Un
71
71
out = removeLast ( '𐒻𐓟' , 1 ) ;
72
72
t . strictEqual ( out , '𐒻' , 'returns expected value' ) ;
73
73
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
+
74
80
t . end ( ) ;
75
81
} ) ;
76
82
You can’t perform that action at this time.
0 commit comments