Clean up text handling a bit:
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
This commit is contained in:
+13
-13
@@ -16,16 +16,16 @@ class Foo {
|
||||
}
|
||||
|
||||
var foo = new Foo
|
||||
IO.write(foo + "a") // expect: infix + a
|
||||
IO.write(foo - "a") // expect: infix - a
|
||||
IO.write(foo * "a") // expect: infix * a
|
||||
IO.write(foo / "a") // expect: infix / a
|
||||
IO.write(foo % "a") // expect: infix % a
|
||||
IO.write(foo < "a") // expect: infix < a
|
||||
IO.write(foo > "a") // expect: infix > a
|
||||
IO.write(foo <= "a") // expect: infix <= a
|
||||
IO.write(foo >= "a") // expect: infix >= a
|
||||
IO.write(foo == "a") // expect: infix == a
|
||||
IO.write(foo != "a") // expect: infix != a
|
||||
IO.write(!foo) // expect: prefix !
|
||||
IO.write(-foo) // expect: prefix -
|
||||
IO.print(foo + "a") // expect: infix + a
|
||||
IO.print(foo - "a") // expect: infix - a
|
||||
IO.print(foo * "a") // expect: infix * a
|
||||
IO.print(foo / "a") // expect: infix / a
|
||||
IO.print(foo % "a") // expect: infix % a
|
||||
IO.print(foo < "a") // expect: infix < a
|
||||
IO.print(foo > "a") // expect: infix > a
|
||||
IO.print(foo <= "a") // expect: infix <= a
|
||||
IO.print(foo >= "a") // expect: infix >= a
|
||||
IO.print(foo == "a") // expect: infix == a
|
||||
IO.print(foo != "a") // expect: infix != a
|
||||
IO.print(!foo) // expect: prefix !
|
||||
IO.print(-foo) // expect: prefix -
|
||||
|
||||
Reference in New Issue
Block a user