1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-05-31 18:41:30 +00:00

Add some trivial test case

This commit is contained in:
Karol Stasiak 2020-09-22 17:59:50 +02:00
parent b87c40fc9c
commit 9f40fc5066

View File

@ -328,4 +328,25 @@ class BasicSymonTest extends FunSuite with Matchers {
|}
|""".stripMargin)
}
test("Numeric literals") {
EmuUnoptimizedRun(
"""
|array a @$c000 = [
| %0, %1, %001, %000001, %11100,
|0b0, 0b1, 0b001, 0b000001, 0b11100,
|0q12, 0q1, 0q0, 0q1230,
|0o001, 0o0, 0o6, 0o52,
|0x23, 0xdd, 0x55, 0x0, 0x1, 0xf,
| $23, $dd, $55, $0, $1, $f,
|000
|]
|
|void main() {
| a[0] = a[0]
|}
|""".stripMargin)
}
}