Exemplo n.º 1
0
// Test isLowerVowel for things we know should be true
// or false.
//
func Test_isLowerVowel(t *testing.T) {
	testCases := []romance.WordBoolTestCase{
		// These are all vowels.
		{"aeiouyâàëéêèïîôûù", true},
		// None of these are vowels.
		{"cbfqhkl", false},
	}
	romance.RunRunewiseBoolTest(t, isLowerVowel, testCases)
}
Exemplo n.º 2
0
// Test isLowerVowel for things we know should be true
// or false.
//
func Test_isLowerVowel(t *testing.T) {
	testCases := []romance.WordBoolTestCase{
		// These are all vowels.
		{"аеиоуыэюя", true},
		// None of these are vowels.
		{"бвгджзйклмнпрстфхцчшщъь", false},
	}
	romance.RunRunewiseBoolTest(t, isLowerVowel, testCases)
}