Sha256: 4c080414f9473570092b26af8d5cab4dec96072bc9427c6b9273a8d6ce95fe34

Contents?: true

Size: 472 Bytes

Versions: 164

Compression:

Stored size: 472 Bytes

Contents

package twofer

import "testing"

// Define a function ShareWith(string) string.

func TestShareWith(t *testing.T) {
	tests := []struct {
		name, expected string
	}{
		{"", "One for you, one for me."},
		{"Alice", "One for Alice, one for me."},
		{"Bob", "One for Bob, one for me."},
	}
	for _, test := range tests {
		if observed := ShareWith(test.name); observed != test.expected {
			t.Fatalf("ShareWith(%s) = %v, want %v", test.name, observed, test.expected)
		}
	}
}

Version data entries

164 entries across 164 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.179 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.178 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.177 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.176 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.175 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.174 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.173 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.172 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.171 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.170 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.169 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.167 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.166 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.165 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.164 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.163 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.162 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.161 tracks/go/exercises/two-fer/two_fer_test.go
trackler-2.2.1.160 tracks/go/exercises/two-fer/two_fer_test.go