Sha256: 84050abf9bc3ef3ffac1c833177e501a0920d2dbb6603ecc02e10e9bf193816f
Contents?: true
Size: 488 Bytes
Versions: 114
Compression:
Stored size: 488 Bytes
Contents
package bookstore import ( "testing" ) func TestCost(t *testing.T) { for _, testCase := range testCases { cost := Cost(testCase.basket) if testCase.expected != cost { t.Fatalf("FAIL: %s\n\tCost(%v) expected %v, got %v", testCase.description, testCase.basket, testCase.expected, cost) } t.Logf("PASS: %s", testCase.description) } } func BenchmarkCost(b *testing.B) { for i := 0; i < b.N; i++ { for _, testCase := range testCases { Cost(testCase.basket) } } }
Version data entries
114 entries across 114 versions & 1 rubygems