Handle overflows

This commit is contained in:
Thomas Pelletier
2021-03-08 21:01:53 -05:00
parent 90f3b658c6
commit 87b9d1cf98
2 changed files with 147 additions and 7 deletions
@@ -1047,15 +1047,15 @@ func TestUnmarshalOverflow(t *testing.T) {
testCases := []TestCase{
{
desc: "byte",
input: `u8 = 300`,
input: `U8 = 300`,
},
{
desc: "int8",
input: `i8 = 300`,
input: `I8 = 300`,
},
{
desc: "float32",
input: `f32 = 1e300`,
input: `F32 = 1e300`,
},
}