Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Add test for string (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavrilikhin-d authored Mar 3, 2024
1 parent 443d9f9 commit c86cf87
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/semantics/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ e2e!(rational);
e2e!(reference_mut);
e2e!(references);
e2e!(specify_variable_ty);
e2e!(string);
e2e!(traits);
e2e!(type_as_value);
e2e!(wrong_initializer_type);
8 changes: 8 additions & 0 deletions src/semantics/tests/string/run.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Hello World!
none
false
true
0
0.0
Integer
Array<Integer>
8 changes: 8 additions & 0 deletions src/semantics/tests/string/string.ppl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
println "Hello" + " " + "World!"
println (none as String)
println (false as String)
println (true as String)
println (0 as String)
println (0.0 as String)
println (Integer as String)
println (Array<Integer> as String)

0 comments on commit c86cf87

Please sign in to comment.