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.
29 lines
941 B
Plaintext
29 lines
941 B
Plaintext
IO.print("" == "") // expect: true
|
|
IO.print("abcd" == "abcd") // expect: true
|
|
IO.print("abcd" == "d") // expect: false
|
|
IO.print("e" == "abcd") // expect: false
|
|
IO.print("" == "abcd") // expect: false
|
|
|
|
// Not equal to other types.
|
|
IO.print("1" == 1) // expect: false
|
|
IO.print("true" == true) // expect: false
|
|
|
|
IO.print("" != "") // expect: false
|
|
IO.print("abcd" != "abcd") // expect: false
|
|
IO.print("abcd" != "d") // expect: true
|
|
IO.print("e" != "abcd") // expect: true
|
|
IO.print("" != "abcd") // expect: true
|
|
|
|
// Not equal to other types.
|
|
IO.print("1" != 1) // expect: true
|
|
IO.print("true" != true) // expect: true
|
|
|
|
// Non-ASCII.
|
|
IO.print("vålue" == "value") // expect: false
|
|
IO.print("vålue" == "vålue") // expect: true
|
|
|
|
// 8-bit clean.
|
|
IO.print("a\0b\0c" == "a") // expect: false
|
|
IO.print("a\0b\0c" == "abc") // expect: false
|
|
IO.print("a\0b\0c" == "a\0b\0c") // expect: true
|