diff --git a/cmd/tomltestgen/main.go b/cmd/tomltestgen/main.go index 6603d80..1d53a81 100644 --- a/cmd/tomltestgen/main.go +++ b/cmd/tomltestgen/main.go @@ -43,8 +43,7 @@ type testsCollection struct { Count int } -const srcTemplate = "// +build testsuite\n\n" + - "// Generated by tomltestgen for toml-test ref {{.Ref}} on {{.Timestamp}}\n" + +const srcTemplate = "// Generated by tomltestgen for toml-test ref {{.Ref}} on {{.Timestamp}}\n" + "package toml_test\n" + " import (\n" + " \"testing\"\n" + diff --git a/toml_testgen_test.go b/toml_testgen_test.go index 5718419..54c627c 100644 --- a/toml_testgen_test.go +++ b/toml_testgen_test.go @@ -1,4 +1,4 @@ -// Generated by tomltestgen for toml-test ref master on 2021-09-30T20:29:36-05:00 +// Generated by tomltestgen for toml-test ref master on 2021-10-28T18:48:23-05:00 package toml_test import ( @@ -375,6 +375,11 @@ func TestTOMLTest_Invalid_Float_TrailingPoint(t *testing.T) { testgenInvalid(t, input) } +func TestTOMLTest_Invalid_Float_TrailingUsExp(t *testing.T) { + input := "# trailing underscore in integer part is not allowed\ntrailing-us-exp = 1_e2\n# trailing underscore in float part is not allowed\ntrailing-us-exp2 = 1.2_e2\n" + testgenInvalid(t, input) +} + func TestTOMLTest_Invalid_Float_TrailingUs(t *testing.T) { input := "trailing-us = 1.2_\n" testgenInvalid(t, input)