forked from Mirror/wren
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
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
|