Sha256: 90e9a24425971db8b0633a6e2f46f08714e70373732ac7f4bf428a799d83464d

Contents?: true

Size: 602 Bytes

Versions: 116

Compression:

Stored size: 602 Bytes

Contents

package bob

import "testing"

const targetTestVersion = 3

func TestTestVersion(t *testing.T) {
	if testVersion != targetTestVersion {
		t.Fatalf("Found testVersion = %v, want %v", testVersion, targetTestVersion)
	}
}

func TestHeyBob(t *testing.T) {
	for _, tt := range testCases {
		actual := Hey(tt.input)
		if actual != tt.expected {
			msg := `
	ALICE (%s): %q
	BOB: %s

	Expected Bob to respond: %s`
			t.Fatalf(msg, tt.description, tt.input, actual, tt.expected)
		}
	}
}

func BenchmarkBob(b *testing.B) {
	for _, tt := range testCases {
		for i := 0; i < b.N; i++ {
			Hey(tt.input)
		}
	}
}

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.2.1.36 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.35 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.34 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.33 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.32 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.31 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.30 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.29 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.28 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.27 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.26 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.25 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.24 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.23 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.22 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.21 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.20 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.19 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.18 tracks/go/exercises/bob/bob_test.go
trackler-2.2.1.17 tracks/go/exercises/bob/bob_test.go