mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 14:48:40 +01:00
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
20 lines
676 B
Plaintext
20 lines
676 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
|