fix: reject a float exponent without digits

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-17 21:29:07 +02:00
parent 5a270d0879
commit e19a6f35f1
2 changed files with 7 additions and 3 deletions
+1
View File
@@ -370,6 +370,7 @@ func TestRejectsInvalidNumbers(t *testing.T) {
"01", "-01", "00",
"1__0", "_1", "1_", "0x_1", "1_.0",
"1.", ".5", "1.2.3", "1.e2",
"1e", "1e+", "1e-", "0.0E", "0.0e", "1.5e+",
"0x", "0o", "0b", "0b2", "0o8", "0xG",
"+0x1",
} {