tape: Test that floating point values can be decoded dynamically
This commit is contained in:
parent
8b0915dff1
commit
c4ab60515b
@ -190,6 +190,8 @@ func TestEncodeDecodeAnyTable(test *testing.T) {
|
|||||||
0x0000: []byte("hi!"),
|
0x0000: []byte("hi!"),
|
||||||
0xFFFF: []uint16 { 0xBEE5, 0x7777 },
|
0xFFFF: []uint16 { 0xBEE5, 0x7777 },
|
||||||
0x1234: [][]uint16 { []uint16 { 0x5 }, []uint16 { 0x17, 0xAAAA} },
|
0x1234: [][]uint16 { []uint16 { 0x5 }, []uint16 { 0x17, 0xAAAA} },
|
||||||
|
0x1F1F: float32(67.26),
|
||||||
|
0x0F0F: float64(5.3),
|
||||||
}, nil)
|
}, nil)
|
||||||
if err != nil { test.Fatal(err) }
|
if err != nil { test.Fatal(err) }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user