Esempio n. 1
0
// TestComposeFilter_True_FalseAny_Something
func TestComposeFilter_True_FalseAny_Something(t *testing.T) {
	f := maybe.ComposeFilter(FilterTrue, FilterAny_False)
	m := maybe.New(SOMETHING)
	b := f(m)
	assertFalse(t, b)
}
Esempio n. 2
0
// TestComposeFilter_True_Nothing
func TestComposeFilter_True_Nothing(t *testing.T) {
	f := maybe.ComposeFilter(FilterTrue)
	m := maybe.Nothing()
	b := f(m)
	assertFalse(t, b)
}
Esempio n. 3
0
// TestComposeFilter_True_Something
func TestComposeFilter_True_Something(t *testing.T) {
	f := maybe.ComposeFilter(FilterTrue)
	m := maybe.New(SOMETHING)
	b := f(m)
	assertTrue(t, b)
}
Esempio n. 4
0
// TestComposeFilter_Empty_Nothing
func TestComposeFilter_Empty_Nothing(t *testing.T) {
	f := maybe.ComposeFilter()
	m := maybe.Nothing()
	b := f(m)
	assertFalse(t, b)
}