Update tomltestgen and regenerate tests (#645)
Remove testsuite build tag from generated tests file Co-authored-by: Thomas Pelletier <thomas@pelletier.codes>
This commit is contained in:
@@ -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" +
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user