tracks/go/exercises/strain/strain_test.go in trackler-2.0.8.3 vs tracks/go/exercises/strain/strain_test.go in trackler-2.0.8.4
- old
+ new
@@ -17,9 +17,17 @@
import (
"reflect"
"testing"
)
+const targetTestVersion = 1
+
+func TestTestVersion(t *testing.T) {
+ if testVersion != targetTestVersion {
+ t.Fatalf("Found testVersion = %v, want %v", testVersion, targetTestVersion)
+ }
+}
+
func lt10(x int) bool { return x < 10 }
func gt10(x int) bool { return x > 10 }
func odd(x int) bool { return x&1 == 1 }
func even(x int) bool { return x&1 == 0 }