(t *testing.T, s, expectedBits string)
| 22 | } |
| 23 | |
| 24 | func testHighLevelEncodeString(t *testing.T, s, expectedBits string) { |
| 25 | bits := highlevelEncode([]byte(s)) |
| 26 | result := bitStr(bits) |
| 27 | expectedBits = strings.Replace(expectedBits, " ", "", -1) |
| 28 | |
| 29 | if result != expectedBits { |
| 30 | t.Errorf("invalid result for highlevelEncode(%q). Got:\n%s", s, result) |
| 31 | } |
| 32 | } |
| 33 | func testHighLevelEncodeStringCnt(t *testing.T, s string, expectedBitCnt int) { |
| 34 | bits := highlevelEncode([]byte(s)) |
| 35 |
no test coverage detected