Documentation ¶
Index ¶
- func RunFindRegionsTest(t *testing.T, f func(*snowballword.Word) (int, int, int), ...)
- func RunRunewiseBoolTest(t *testing.T, f func(rune) bool, tcs []WordBoolTestCase)
- func RunStepTest(t *testing.T, f stepFunc, tcs []StepTestCase)
- func RunWordBoolTest(t *testing.T, f func(string) bool, tcs []WordBoolTestCase)
- func VnvSuffix(word *snowballword.Word, f isVowelFunc, start int) int
- type FindRegionsTestCase
- type StepTestCase
- type WordBoolTestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunFindRegionsTest ¶
func RunFindRegionsTest(t *testing.T, f func(*snowballword.Word) (int, int, int), tcs []FindRegionsTestCase)
Test isLowerVowel for things we know should be true or false.
func RunRunewiseBoolTest ¶
func RunRunewiseBoolTest(t *testing.T, f func(rune) bool, tcs []WordBoolTestCase)
Test runner for functions that should be fed each rune of a string and that return a bool for each rune. Usually used to test functions that return true if a rune is a vowel, etc.
func RunStepTest ¶
func RunStepTest(t *testing.T, f stepFunc, tcs []StepTestCase)
func RunWordBoolTest ¶
func RunWordBoolTest(t *testing.T, f func(string) bool, tcs []WordBoolTestCase)
Test runner for functions that take a word and return a bool.
Types ¶
type FindRegionsTestCase ¶
type StepTestCase ¶
type WordBoolTestCase ¶
Test case for functions that take a word and return a bool.
Click to show internal directories.
Click to hide internal directories.