- Delete wren_io.c, wren_io.h, and io.wren source files - Remove multi-arity print overloads and IO.read/IO.time methods - Add System class with print, printAll, write, writeAll methods to core.wren - Update all documentation examples and README to use System.print instead of IO.print
29 lines
1017 B
Plaintext
29 lines
1017 B
Plaintext
System.print("" == "") // expect: true
|
|
System.print("abcd" == "abcd") // expect: true
|
|
System.print("abcd" == "d") // expect: false
|
|
System.print("e" == "abcd") // expect: false
|
|
System.print("" == "abcd") // expect: false
|
|
|
|
// Not equal to other types.
|
|
System.print("1" == 1) // expect: false
|
|
System.print("true" == true) // expect: false
|
|
|
|
System.print("" != "") // expect: false
|
|
System.print("abcd" != "abcd") // expect: false
|
|
System.print("abcd" != "d") // expect: true
|
|
System.print("e" != "abcd") // expect: true
|
|
System.print("" != "abcd") // expect: true
|
|
|
|
// Not equal to other types.
|
|
System.print("1" != 1) // expect: true
|
|
System.print("true" != true) // expect: true
|
|
|
|
// Non-ASCII.
|
|
System.print("vålue" == "value") // expect: false
|
|
System.print("vålue" == "vålue") // expect: true
|
|
|
|
// 8-bit clean.
|
|
System.print("a\0b\0c" == "a") // expect: false
|
|
System.print("a\0b\0c" == "abc") // expect: false
|
|
System.print("a\0b\0c" == "a\0b\0c") // expect: true
|