Reorganize tests and benchmark scripts.
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
var x = 0xFF
|
||||
|
||||
IO.print(x) // expect: 255
|
||||
IO.print(x + 1) // expect: 256
|
||||
IO.print(x == 255) // expect: true
|
||||
IO.print(0x09 is Num) // expect: true
|
||||
IO.print(x is Num) // expect: true
|
||||
IO.print(-0xFF) // expect: -255
|
||||
@@ -0,0 +1 @@
|
||||
var x = 0x999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 // expect error: Error: Number literal was too large.
|
||||
@@ -0,0 +1 @@
|
||||
var x = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 // expect error: Error: Number literal was too large.
|
||||
@@ -0,0 +1,10 @@
|
||||
IO.print(123) // expect: 123
|
||||
IO.print(987654) // expect: 987654
|
||||
IO.print(0) // expect: 0
|
||||
IO.print(-0) // expect: -0
|
||||
|
||||
IO.print(123.456) // expect: 123.456
|
||||
IO.print(-0.001) // expect: -0.001
|
||||
|
||||
// TODO: Scientific notation?
|
||||
// TODO: Literals at and beyond numeric limits.
|
||||
Reference in New Issue
Block a user