summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/icrowley/fake/credit_cards_test.go
blob: 97abe1d1b75af408276e40d927f08cd6ec8c7f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)
		}
	}
}