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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
package fake
import (
"testing"
)
func TestLoremIpsum(t *testing.T) {
for _, lang := range GetLangs() {
SetLang(lang)
v := Character()
if v == "" {
t.Errorf("Character failed with lang %s", lang)
}
v = CharactersN(2)
if v == "" {
t.Errorf("CharactersN failed with lang %s", lang)
}
v = Characters()
if v == "" {
t.Errorf("Characters failed with lang %s", lang)
}
v = Word()
if v == "" {
t.Errorf("Word failed with lang %s", lang)
}
v = WordsN(2)
if v == "" {
t.Errorf("WordsN failed with lang %s", lang)
}
v = Words()
if v == "" {
t.Errorf("Words failed with lang %s", lang)
}
v = Title()
if v == "" {
t.Errorf("Title failed with lang %s", lang)
}
v = Sentence()
if v == "" {
t.Errorf("Sentence failed with lang %s", lang)
}
v = SentencesN(2)
if v == "" {
t.Errorf("SentencesN failed with lang %s", lang)
}
v = Sentences()
if v == "" {
t.Errorf("Sentences failed with lang %s", lang)
}
v = Paragraph()
if v == "" {
t.Errorf("Paragraph failed with lang %s", lang)
}
v = ParagraphsN(2)
if v == "" {
t.Errorf("ParagraphsN failed with lang %s", lang)
}
v = Paragraphs()
if v == "" {
t.Errorf("Paragraphs failed with lang %s", lang)
}
}
}
|