tracks/go/exercises/hexadecimal/hexadecimal_test.go in trackler-2.0.6.41 vs tracks/go/exercises/hexadecimal/hexadecimal_test.go in trackler-2.0.6.42
- old
+ new
@@ -15,16 +15,10 @@
"testing"
)
const targetTestVersion = 1
-func TestTestVersion(t *testing.T) {
- if testVersion != targetTestVersion {
- t.Errorf("Found testVersion = %v, want %v.", testVersion, targetTestVersion)
- }
-}
-
var testCases = []struct {
in string
out int64
errCase string
}{
@@ -37,9 +31,15 @@
{"", 0, "syntax"},
{"peanut", 0, "syntax"},
{"2cg134", 0, "syntax"},
{"8000000000000000", 0, "range"},
{"9223372036854775809", 0, "range"},
+}
+
+func TestTestVersion(t *testing.T) {
+ if testVersion != targetTestVersion {
+ t.Fatalf("Found testVersion = %v, want %v.", testVersion, targetTestVersion)
+ }
}
func TestParseHex(t *testing.T) {
for _, test := range testCases {
out, err := ParseHex(test.in)