(t *testing.T, s string, expectedBitCnt int)
| 31 | } |
| 32 | } |
| 33 | func testHighLevelEncodeStringCnt(t *testing.T, s string, expectedBitCnt int) { |
| 34 | bits := highlevelEncode([]byte(s)) |
| 35 | |
| 36 | if bits.Len() != expectedBitCnt { |
| 37 | t.Errorf("invalid result for highlevelEncode(%q). Got %d, expected %d bits", s, bits.Len(), expectedBitCnt) |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | func Test_HighLevelEncode(t *testing.T) { |
| 42 | testHighLevelEncodeString(t, "A. b.", |
no test coverage detected