Skip to content

Commit 663d7ba

Browse files
author
Florian Thake
committed
removed uneccessary dependency to format().
1 parent c440daa commit 663d7ba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

demo/corelibrary_test04.tea

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ print( "testing strsplit ... " )
8484
{
8585
def str := "1;2;3;10;18;103"
8686
const res := strsplit( str, ";" )
87-
print( format( "\nres = {}\n", res) )
87+
print( "\nres = %(res)\n" )
8888
TEST_TRUE( res as Bool, "tuple is empty!" )
8989
TEST_EQ( _tuple_size( res ), 6, "tuple has not 6 elements! (size=%(_tuple_size(res)))" )
9090
TEST_EQ( res[0], 1, "res[0] != 1" )
@@ -96,15 +96,15 @@ print( "testing strsplit ... " )
9696

9797
str := ";1;2;;3;10;;;18;103;"
9898
const res2 := strsplit( str, ";" )
99-
print( format( "res2 = {}\n", res2) )
99+
print( "res2 = %(res2)\n" )
100100
TEST_TRUE( res2 as Bool, "tuple is empty!" )
101101
TEST_EQ( _tuple_size( res2 ), 11, "tuple has not 11 elements! (size=%(_tuple_size(res)))" )
102102
TEST_FALSE( res2[0], "Index 0 is not empty string" )
103103
TEST_FALSE( res2[10], "Index 10 is not empty string" )
104104
TEST_FALSE( res2[3], "Index 3 is not empty string" )
105105

106106
const res3 := strsplit( str, ";", true )
107-
print( format( "res3 = {}\n", res3) )
107+
print( "res3 = %(res3)\n" )
108108
TEST_TRUE( res3 as Bool, "tuple is empty!" )
109109
TEST_EQ( _tuple_size( res3 ), 6, "tuple has not 6 elements! (size=%(_tuple_size(res3)))" )
110110
TEST_EQ( res3[0], 1, "res3[0] != 1" )

0 commit comments

Comments
 (0)