Sha256: 965cc073f90149982b758e8cf55ea00653eb2dbfa0fab698911ea3cc04130391
Contents?: true
Size: 478 Bytes
Versions: 80
Compression:
Stored size: 478 Bytes
Contents
package railfence import "testing" func testCases(op func(string, int) string, cases []testCase, t *testing.T) { for _, tc := range cases { if actual := op(tc.message, tc.rails); actual != tc.expected { t.Fatalf("FAIL: %s\nExpected: %q\nActual: %q", tc.description, tc.expected, actual) } t.Logf("PASS: %s", tc.description) } } func TestEncode(t *testing.T) { testCases(Encode, encodeTests, t) } func TestDecode(t *testing.T) { testCases(Decode, decodeTests, t) }
Version data entries
80 entries across 80 versions & 1 rubygems