add register suite

This commit is contained in:
Mark Canlas 2022-11-19 21:59:16 -05:00
parent 202a1eeba4
commit afe83c04dd

View File

@ -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)
}