Codebase list golang-github-icrowley-fake / run/bf6e725c-58e0-4fc0-bb4c-53d288598f49/main credit_cards_test.go
run/bf6e725c-58e0-4fc0-bb4c-53d288598f49/main

Tree @run/bf6e725c-58e0-4fc0-bb4c-53d288598f49/main (Download .tar.gz)

credit_cards_test.go @run/bf6e725c-58e0-4fc0-bb4c-53d288598f49/mainraw · history · blame

package fake

import (
	"testing"
)

func TestCreditCards(t *testing.T) {
	for _, lang := range GetLangs() {
		SetLang(lang)

		v := CreditCardType()
		if v == "" {
			t.Errorf("CreditCardType failed with lang %s", lang)
		}

		v = CreditCardNum("")
		if v == "" {
			t.Errorf("CreditCardNum failed with lang %s", lang)
		}

		v = CreditCardNum("visa")
		if v == "" {
			t.Errorf("CreditCardNum failed with lang %s", lang)
		}
	}
}