File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
lib/node_modules/@stdlib/string/trim/test Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,26 @@ tape( 'the function removes all whitespace characters at the beginning and end o
5050 actual = trim ( ' Whitespace ' ) ;
5151 t . equal ( actual , expected , 'removes all spaces' ) ;
5252
53+ expected = 'beep' ;
54+ actual = trim ( ' beep' ) ;
55+ t . equal ( actual , expected , 'removes all spaces' ) ;
56+
57+ expected = 'boop' ;
58+ actual = trim ( 'boop ' ) ;
59+ t . equal ( actual , expected , 'removes all spaces' ) ;
60+
61+ expected = 'foo foo' ;
62+ actual = trim ( ' foo foo ' ) ;
63+ t . equal ( actual , expected , 'removes all spaces' ) ;
64+
65+ expected = '# bar bar bar' ;
66+ actual = trim ( '# bar bar bar ' ) ;
67+ t . equal ( actual , expected , 'removes all spaces' ) ;
68+
69+ expected = '# beep boop' ;
70+ actual = trim ( ' # beep boop' ) ;
71+ t . equal ( actual , expected , 'removes all spaces' ) ;
72+
5373 expected = 'Tabs' ;
5474 actual = trim ( '\t\t\tTabs\t\t\t' ) ;
5575 t . equal ( actual , expected , 'removes all tabs' ) ;
You can’t perform that action at this time.
0 commit comments