mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Use fewer test suites with more tests in each one since there's so much boilerplate for defining an API test.
18 lines
386 B
Plaintext
18 lines
386 B
Plaintext
class Api {
|
|
foreign static implicitNull
|
|
|
|
foreign static returnInt
|
|
foreign static returnFloat
|
|
|
|
foreign static returnTrue
|
|
foreign static returnFalse
|
|
}
|
|
|
|
IO.print(Api.implicitNull == null) // expect: true
|
|
|
|
IO.print(Api.returnInt) // expect: 123456
|
|
IO.print(Api.returnFloat) // expect: 123.456
|
|
|
|
IO.print(Api.returnTrue) // expect: true
|
|
IO.print(Api.returnFalse) // expect: false
|