wrap accepts button.Parser

This commit is contained in:
bel
2023-03-24 20:50:58 -06:00
parent b319ed7e6d
commit 896f5e9c92
3 changed files with 15 additions and 22 deletions

View File

@@ -1,7 +1,6 @@
package wrap
import (
"mayhem-party/src/device/input/raw"
"os"
"syscall"
"testing"
@@ -12,7 +11,7 @@ func TestRefresh(t *testing.T) {
b := byte('a')
generator := func() Wrap {
b += byte(1)
return explicit{src: raw.NewRandom(func() byte { return b })}
return dummyParser{Char: b}
}
ch := make(chan os.Signal, 1)
defer close(ch)