(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestBadInputNumericName(t *testing.T) { |
| 188 | data := []byte(" [ { \"n\":\"-3b\", \"v\":1.0 } ] ") |
| 189 | _, err := senml.Decode(data, senml.JSON) |
| 190 | if err == nil { |
| 191 | t.Fail() |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | func TestInputWeirdName(t *testing.T) { |
| 196 | data := []byte(" [ { \"n\":\"Az3-:./_\", \"v\":1.0 } ] ") |