Sha256: 63fca1463329e3235959c16395f29b483bb027bdc5b9fb9ff318d1f026cdc304

Contents?: true

Size: 351 Bytes

Versions: 114

Compression:

Stored size: 351 Bytes

Contents

package isbn

import (
	"testing"
)

func TestIsValidISBN(t *testing.T) {
	for _, test := range testCases {
		observed := IsValidISBN(test.isbn)
		if observed != test.expected {
			t.Errorf("FAIL: %s\nIsValidISBN(%q)\nExpected: %t, Actual: %t",
				test.description, test.isbn, test.expected, observed)
		}
		t.Logf("PASS: %s", test.description)
	}
}

Version data entries

114 entries across 114 versions & 1 rubygems

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