Skip to content

Commit

Permalink
Added integration test for bash style expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Dec 7, 2023
1 parent 6bc94b4 commit 425e4a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions StepLang.Tests/Examples/expressions.step.out
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ f invoked
True
f invoked
False
it's true
False
True
it's false
5 changes: 5 additions & 0 deletions StepLang/Examples/expressions.step
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ function f = (bool val) {

println(f(true) || f(false))
println(f(false) && f(true))

println(true && "it's true")
println(false && "it's false")
println(true || "it's true")
println(false || "it's false")

0 comments on commit 425e4a1

Please sign in to comment.