Ejemplo 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)
}
Ejemplo 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)
}
Ejemplo 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)
}
Ejemplo 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)
}