1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-01 05:05:32 +00:00

Fix tests

This commit is contained in:
Karol Stasiak 2019-11-03 22:59:10 +01:00
parent 802cd7d86a
commit 38e4dd14a6

View File

@ -11,17 +11,17 @@ class SizeofSuite extends FunSuite with Matchers with AppendedClues {
test("Basic sizeof test") {
EmuUnoptimizedCrossPlatformRun(Cpu.Mos, Cpu.Z80)(
"""
| const byte sizeofbyte = sizeof(byte)
| const word sizeofbyte = sizeof(byte)
| array output [6] @$c000
| void main () {
| byte a
| word b
| output[0] = sizeofbyte
| output[1] = sizeof(a)
| output[2] = sizeof(word)
| output[3] = sizeof(b)
| output[4] = sizeof(output[1])
| output[5] = sizeof(long)
| output[0] = sizeofbyte.lo
| output[1] = lo(sizeof(a))
| output[2] = lo(sizeof(word))
| output[3] = lo(sizeof(b))
| output[4] = lo(sizeof(output[1]))
| output[5] = lo(sizeof(long))
| }
""".stripMargin){m =>
m.readByte(0xc000) should equal(1)