mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-12-23 01:29:47 +00:00
add register suite
This commit is contained in:
parent
202a1eeba4
commit
afe83c04dd
@ -0,0 +1,19 @@
|
||||
package com.htmlism.scratchpad
|
||||
|
||||
import weaver.*
|
||||
|
||||
object RegisterSuite extends FunSuite:
|
||||
private def reg[A](implicit ev: Register[A]) =
|
||||
ev
|
||||
|
||||
test("the accumulator is a register") {
|
||||
expect.eql("A", reg[A].self)
|
||||
}
|
||||
|
||||
test("X is a register") {
|
||||
expect.eql("X", reg[X].self)
|
||||
}
|
||||
|
||||
test("Y is a register") {
|
||||
expect.eql("Y", reg[Y].self)
|
||||
}
|
Loading…
Reference in New Issue
Block a user