Skip to content

Commit

Permalink
new test
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 13, 2023
1 parent 76cc728 commit c006d86
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions vlib/v/tests/interface_var_test.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
interface Param {}

fn test_main() {
param := Param(false)

match param {
bool {
println(param) // &false
println(param == true) // false
println(param == false) // true
if param {
assert false
}
if !param {
assert true
}
if param == true {
assert false
}
if param == false {
assert true
}
}
else {
return
}
}
}

0 comments on commit c006d86

Please sign in to comment.