Sha256: 9d8335918d3f5d2bb802a2b82b97c09ddee526865b4fcc8ddb2b3567691e866f

Contents?: true

Size: 535 Bytes

Versions: 119

Compression:

Stored size: 535 Bytes

Contents

package raindrops

import "testing"

const targetTestVersion = 2

func TestConvert(t *testing.T) {
	if testVersion != targetTestVersion {
		t.Fatalf("Found testVersion = %v, want %v", testVersion, targetTestVersion)
	}
	for _, test := range tests {
		if actual := Convert(test.input); actual != test.expected {
			t.Errorf("Convert(%d) = %q, expected %q.",
				test.input, actual, test.expected)
		}
	}
}

func BenchmarkConvert(b *testing.B) {
	for i := 0; i < b.N; i++ {
		for _, test := range tests {
			Convert(test.input)
		}
	}
}

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
trackler-2.0.8.18 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.17 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.16 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.15 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.14 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.13 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.12 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.11 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.10 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.9 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.8 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.7 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.6 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.5 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.4 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.3 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.2 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.8.1 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.7.0 tracks/go/exercises/raindrops/raindrops_test.go
trackler-2.0.6.44 tracks/go/exercises/raindrops/raindrops_test.go