mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-06-06 03:29:30 +00:00
17 lines
354 B
Scala
17 lines
354 B
Scala
package com.htmlism.firepower.core
|
|
|
|
import weaver.*
|
|
|
|
object RegisterSuite extends FunSuite:
|
|
private def reg[A](using ev: Register[A]) =
|
|
ev
|
|
|
|
test("the accumulator is a register"):
|
|
expect.eql("A", reg[Reg.A].name)
|
|
|
|
test("X is a register"):
|
|
expect.eql("X", reg[Reg.X].name)
|
|
|
|
test("Y is a register"):
|
|
expect.eql("Y", reg[Reg.Y].name)
|