(t *testing.T)
| 102 | } |
| 103 | |
| 104 | func TestDecodeBool(t *testing.T) { |
| 105 | for _, tc := range internal.BooleanTestCases { |
| 106 | got := decodeSimpleFloat(getReader(tc.Binary)) |
| 107 | if string(got) != tc.Json { |
| 108 | t.Errorf("decodeSimpleFloat(0x%s)=%s, want:%s", hex.EncodeToString([]byte(tc.Binary)), string(got), tc.Json) |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | func TestDecodeFloat(t *testing.T) { |
| 114 | for _, tc := range internal.Float32TestCases { |
nothing calls this directly
no test coverage detected