@@ -48,6 +48,7 @@ describe('Export string tests', () => {
4848 const buffer = new DynamicBuffer ( ) ;
4949
5050 assert . equal ( buffer . toString ( ) , '' ) ;
51+ assert . equal ( buffer . toLocaleString ( ) , '' ) ;
5152 } ) ;
5253
5354 it ( 'Test toString() without parameters' , ( ) => {
@@ -56,6 +57,7 @@ describe('Export string tests', () => {
5657 buffer . append ( 'Hello world' ) ;
5758
5859 assert . equal ( buffer . toString ( ) , 'Hello world' ) ;
60+ assert . equal ( buffer . toLocaleString ( ) , 'Hello world' ) ;
5961 } ) ;
6062
6163 it ( 'Test toString() with start parameter only' , ( ) => {
@@ -71,15 +73,15 @@ describe('Export string tests', () => {
7173
7274 buffer . append ( 'Hello world' ) ;
7375
74- assert . equal ( buffer . toString ( 'utf8' , 20 ) . toString ( ) , '' ) ;
76+ assert . equal ( buffer . toString ( 'utf8' , 20 ) , '' ) ;
7577 } ) ;
7678
7779 it ( 'Test toString() with large end parameter' , ( ) => {
7880 const buffer = new DynamicBuffer ( ) ;
7981
8082 buffer . append ( 'Hello world' ) ;
8183
82- assert . equal ( buffer . toString ( 'utf8' , 0 , 100 ) . toString ( ) , 'Hello world' ) ;
84+ assert . equal ( buffer . toString ( 'utf8' , 0 , 100 ) , 'Hello world' ) ;
8385 } ) ;
8486
8587 it ( 'Test toString() with same start and end parameters' , ( ) => {
0 commit comments