func TestFlagGet(t *testing.T) { v := zbase32.Value{0x34, 0x5a} switch b := v.Get().(type) { case []byte: if g, e := b, []byte{0x34, 0x5a}; !bytes.Equal(g, e) { t.Errorf("wrong Get: [% x] != [% x]", g, e) } default: t.Fatalf("wrong Get result: %T: %v", b, b) } }