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