mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
Add "." to comments. :)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
IO.print("a" + "b") // expect: ab
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
IO.print(("a\0b" + "\0c") == "a\0b\0c") // expect: true
|
||||
|
||||
@ -9,7 +9,7 @@ IO.print("something".contains("math")) // expect: false
|
||||
IO.print("søméthîng".contains("méth")) // expect: true
|
||||
IO.print("søméthîng".contains("meth")) // expect: false
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
IO.print("a\0b\0c".contains("\0")) // expect: true
|
||||
IO.print("a\0b\0c".contains("b")) // expect: true
|
||||
IO.print("a\0b\0c".contains("b\0c")) // expect: true
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
IO.print("".count) // expect: 0
|
||||
IO.print("a string".count) // expect: 8
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
IO.print("\0".count) // expect: 1
|
||||
IO.print("a\0b".count) // expect: 3
|
||||
IO.print("\0c".count) // expect: 2
|
||||
|
||||
@ -8,7 +8,7 @@ IO.print("abcd".endsWith("")) // expect: true
|
||||
IO.print("søméthîng".endsWith("thîng")) // expect: true
|
||||
IO.print("søméthîng".endsWith("thing")) // expect: false
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
IO.print("a\0b\0c".endsWith("\0")) // expect: false
|
||||
IO.print("a\0b\0c".endsWith("c")) // expect: true
|
||||
IO.print("a\0b\0c".endsWith("\0c")) // expect: true
|
||||
|
||||
@ -22,7 +22,7 @@ IO.print("true" != true) // expect: true
|
||||
IO.print("vålue" == "value") // expect: false
|
||||
IO.print("vålue" == "vålue") // expect: true
|
||||
|
||||
// 8-bit clean
|
||||
// 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
|
||||
|
||||
@ -16,7 +16,7 @@ IO.print("søméஃthîng".indexOf("e")) // expect: -1
|
||||
IO.print("søméஃthîng".indexOf("m")) // expect: 3
|
||||
IO.print("søméஃthîng".indexOf("thî")) // expect: 9
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
IO.print("a\0b\0c".indexOf("\0")) // expect: 1
|
||||
IO.print("a\0b\0c".indexOf("a")) // expect: 0
|
||||
IO.print("a\0b\0c".indexOf("b\0c")) // expect: 2
|
||||
|
||||
@ -15,7 +15,7 @@ IO.print(s.iterate(-1)) // expect: false
|
||||
// Nothing to iterate in an empty string.
|
||||
IO.print("".iterate(null)) // expect: false
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
IO.print("a\0b\0c".iterate(null)) // expect: 0
|
||||
IO.print("a\0b\0c".iterate(0)) // expect: 1
|
||||
IO.print("a\0b\0c".iterate(1)) // expect: 2
|
||||
|
||||
@ -6,7 +6,7 @@ IO.print(s.iteratorValue(2)) // expect: ç
|
||||
IO.print(s.iteratorValue(3) == "") // expect: true
|
||||
IO.print(s.iteratorValue(4)) // expect: d
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
var t = "a\0b\0c"
|
||||
IO.print(t.iteratorValue(0) == "a") // expect: true
|
||||
IO.print(t.iteratorValue(1) == "\0") // expect: true
|
||||
|
||||
@ -4,7 +4,7 @@ IO.print(str.join("") == str) // expect: true
|
||||
|
||||
IO.print(str.join(", ")) // expect: s, t, r, i, n, g
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
var ing = "a\0b\0c"
|
||||
IO.print(ing.join("") == ing) // expect: true
|
||||
IO.print(ing.join(", ") == "a, \0, b, \0, c") // expect: true
|
||||
|
||||
@ -8,7 +8,7 @@ IO.print("abcd".startsWith("")) // expect: true
|
||||
IO.print("søméthîng".startsWith("sømé")) // expect: true
|
||||
IO.print("søméthîng".startsWith("some")) // expect: false
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
IO.print("a\0b\0c".startsWith("a")) // expect: true
|
||||
IO.print("a\0b\0c".startsWith("a\0")) // expect: true
|
||||
IO.print("a\0b\0c".startsWith("b\0")) // expect: false
|
||||
|
||||
@ -34,7 +34,7 @@ IO.print("søméஃthîng"[8] == "") // expect: true
|
||||
IO.print("søméஃ"[-1] == "") // expect: true
|
||||
IO.print("søméஃ"[-2] == "") // expect: true
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
IO.print("a\0b\0c"[0] == "a") // expect: true
|
||||
IO.print("a\0b\0c"[1] == "\0") // expect: true
|
||||
IO.print("a\0b\0c"[2] == "b") // expect: true
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
IO.print("".toString == "") // expect: true
|
||||
IO.print("blah".toString == "blah") // expect: true
|
||||
|
||||
// 8-bit clean
|
||||
// 8-bit clean.
|
||||
IO.print("a\0b\0c".toString == "a\0b\0c") // expect: true
|
||||
IO.print("a\0b\0c".toString == "a") // expect: false
|
||||
IO.print("a\0b\0c".toString) // expect: a
|
||||
|
||||
Reference in New Issue
Block a user