Esempio n. 1
0
// Test stopWords for things we know should be true
// or false.
//
func Test_stopWords(t *testing.T) {
	testCases := []romance.WordBoolTestCase{
		{"eussiez", true},
		{"machine", false},
	}
	romance.RunWordBoolTest(t, isStopWord, testCases)
}
Esempio n. 2
0
// Test stopWords for things we know should be true
// or false.
//
func Test_stopWords(t *testing.T) {
	testCases := []romance.WordBoolTestCase{
		{"el", true},
		{"queso", false},
	}
	romance.RunWordBoolTest(t, isStopWord, testCases)
}
Esempio n. 3
0
// Test stopWords for things we know should be true
// or false.
//
func Test_stopWords(t *testing.T) {
	testCases := []romance.WordBoolTestCase{
		{"была", true},
		{"нас", true},
		{"меня", true},
		{"химическое", false},
		{"машиностроение", false},
	}
	romance.RunWordBoolTest(t, isStopWord, testCases)
}