git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/toml/internal/toml-test/version.go (about) 1 //go:build go1.16 2 // +build go1.16 3 4 package tomltest 5 6 type versionSpec struct { 7 inherit string 8 exclude []string 9 } 10 11 var versions = map[string]versionSpec{ 12 "next": versionSpec{}, 13 14 "1.0.0": versionSpec{ 15 exclude: []string{ 16 "valid/string/escape-esc", // \e 17 }, 18 }, 19 20 // Added in 1.0.0: 21 // Leading zeroes in exponent parts of floats are permitted. 22 // Allow raw tab characters in basic strings and multi-line basic strings. 23 // Allow heterogenous values in arrays. 24 "0.5.0": versionSpec{ 25 inherit: "1.0.0", 26 exclude: []string{ 27 "valid/hetergeneous", 28 "valid/array/mixed-*", 29 }, 30 }, 31 32 // Added in 0.5.0: 33 // Add dotted keys. 34 // Add hex, octal, and binary integer formats. 35 // Add special float values (inf, nan) 36 // Add Local Date-Time. 37 // Add Local Date. 38 // Add Local Time. 39 // Allow space (instead of T) to separate date and time in Date-Time. 40 // Allow accidental whitespace between backslash and newline in the line 41 // continuation operator in multi-line basic strings. 42 "0.4.0": versionSpec{ 43 inherit: "0.5.0", 44 exclude: []string{ 45 "valid/datetime/local*", 46 "valid/key/dotted", 47 }, 48 }, 49 }