Retoor software development Projects Research SearchXNG
Register Sign In

15 lines
197 B
Plaintext
Raw Normal View History

fix: add list newline handling and resolve multiple test TODOs across compiler and test suite - Add TOKEN_LINE matching after list elements in compiler to allow newlines before commas or closing brackets - Add tests for list newline handling, EOF after comma/element, and class name inside body - Remove resolved TODOs for default constructors, inherited fields, metaclass is checks, zero comparison, and bitwise not behavior
2013-12-20 21:42:11 +01:00
// Allow newlines in most places.
var list = [
"a"
, "b",
"c", "d"
]
refactor: convert IO from singleton instance to static class with metaclass native methods Replace the global `io` singleton object with a static `IO` class, moving the `write` native from the instance to the metaclass. Update all benchmark, example, and test files to use `IO.write()` instead of `io.write()`.
2013-12-22 04:25:09 +01:00
IO.write(list[0]) // expect: a
IO.write(list[1]) // expect: b
IO.write(list[2]) // expect: c
IO.write(list[3]) // expect: d
Reference in New Issue Copy Permalink
b72a42eedd
wren/test/list/newlines.wren
Response time: 29ms
Mail Licenses API