(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func TestBinaryEncoder(t *testing.T) { |
| 34 | runTest := func(msg string, expected ...int) { |
| 35 | codes := encodeBinary([]byte(msg), encText) |
| 36 | compareIntSlice(t, expected, codes, msg) |
| 37 | } |
| 38 | |
| 39 | runTest("alcool", 924, 163, 238, 432, 766, 244) |
| 40 | runTest("alcoolique", 901, 163, 238, 432, 766, 244, 105, 113, 117, 101) |
| 41 | } |
nothing calls this directly
no test coverage detected