Files
wren/test/core/bool/equality.wren
T
Bob Nystrom c4ef964f92 refactor: move benchmark directory under test and update all references
The benchmark directory is relocated from the project root into the test directory, and all scripts, documentation links, and gitignore paths are updated accordingly. The test runner is also refactored to explicitly walk subdirectories (core, io, language, limit) instead of using a single test root, and a new test/README.md is added to document the test suite structure. Additionally, the constructor test for the Foo class is updated to add a zero-arity constructor and adjust expected output strings.
2015-03-14 19:45:56 +00:00

24 lines
836 B
Plaintext

IO.print(true == true) // expect: true
IO.print(true == false) // expect: false
IO.print(false == true) // expect: false
IO.print(false == false) // expect: true
// Not equal to other types.
IO.print(true == 1) // expect: false
IO.print(false == 0) // expect: false
IO.print(true == "true") // expect: false
IO.print(false == "false") // expect: false
IO.print(false == "") // expect: false
IO.print(true != true) // expect: false
IO.print(true != false) // expect: true
IO.print(false != true) // expect: true
IO.print(false != false) // expect: false
// Not equal to other types.
IO.print(true != 1) // expect: true
IO.print(false != 0) // expect: true
IO.print(true != "true") // expect: true
IO.print(false != "false") // expect: true
IO.print(false != "") // expect: true