Пример #1
0
func checkHasNotCodePage(t *testing.T, cb *wbxml.CodeBook, code byte) {
	if cb.HasTagCode(code) {
		t.Errorf("codebook should NOT have tag code page %d!", code)
	}
}
Пример #2
0
func checkCodePage(t *testing.T, cb *wbxml.CodeBook, code byte, expectedCount map[byte]int) {
	if !cb.HasTagCode(code) {
		t.Errorf("codebook should have tag code page %d!", code)
	}
	checkCodePageCount(t, cb.TagCodePages[code], expectedCount)
}