Skip to content

Commit

Permalink
Simplified tests + added test to check string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhebben committed Feb 23, 2024
1 parent a56e735 commit d6803cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#output: 5a

println(5 + "a");
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#output: true
#output: true

println("" + ((3 < 5)));
println("" + ((3 < (5 as usize))));
println("" + ((3 < 5.0)));
println("" + ((3 < 5.0f)));
println("" + (3 < 0x40));
println("" + ((-5 < (3 as usize)))); // interpreted as int
println(3 < 5);
println(3 < (5 as usize));
println(3 < 5.0);
println(3 < 5.0f);
println(3 < 0x40);
println(-5 < (3 as usize)); // interpreted as int

0 comments on commit d6803cc

Please sign in to comment.