Retoor software development Projects Research SearchXNG
Register Sign In

7 lines
166 B
Plaintext
Raw Normal View History

feat: add io.write primitive and test runner with number literal tests Implement the io.write() primitive function that prints a value followed by a newline, enabling basic output for testing. Add a Python test runner script (runtests) that discovers and executes .wren test files, comparing output against // expect: comments. Include initial number literal tests covering positive, negative, and zero values. Remove debug print statements from the VM interpreter and refactor primitive registration macros for cleaner code.
2013-10-28 06:45:40 +01:00
io.write(123) // expect: 123
io.write(987654) // expect: 987654
io.write(0) // expect: 0
io.write(-0) // expect: 0
// TODO(bob): Floating point numbers.
Reference in New Issue Copy Permalink
98d6bbbcc1
wren/test/number_literals.wren
Response time: 39ms
Mail Licenses API