mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
24 lines
785 B
Plaintext
24 lines
785 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
|