MCPcopy Create free account
hub / github.com/djhworld/simple-computer / Test2x4Decoder

Function Test2x4Decoder

components/decoders_test.go:8–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func Test2x4Decoder(t *testing.T) {
9 decoder := NewDecoder2x4()
10
11 decoder.Update(false, false)
12 checkDecoder2x4Output(decoder, []bool{true, false, false, false}, t)
13 decoder.Update(false, true)
14 checkDecoder2x4Output(decoder, []bool{false, true, false, false}, t)
15 decoder.Update(true, false)
16 checkDecoder2x4Output(decoder, []bool{false, false, true, false}, t)
17 decoder.Update(true, true)
18 checkDecoder2x4Output(decoder, []bool{false, false, false, true}, t)
19}
20
21func Test3x8Decoder(t *testing.T) {
22 decoder := NewDecoder3x8()

Callers

nothing calls this directly

Calls 3

UpdateMethod · 0.95
NewDecoder2x4Function · 0.85
checkDecoder2x4OutputFunction · 0.85

Tested by

no test coverage detected