// TestCall_Multi_Nil func TestCall_Multi_Nil(t *testing.T) { arg1 := maybe.New("one") arg2 := maybe.Nothing() m := maybe.Call(MultiArgs_Last, arg1, arg2) assertNothing(t, m) }
// TestCall_Multi_Mixed_Add func TestCall_Multi_Mixed_Add(t *testing.T) { arg1 := maybe.New(1) m := maybe.Call(add, arg1, 2) assertSomethingValue(t, m, 3) }
// TestCall_Multi_Something_Last func TestCall_Multi_Something_Last(t *testing.T) { arg1 := maybe.New("one") arg2 := maybe.New("two") m := maybe.Call(MultiArgs_Last, arg1, arg2) assertSomethingValue(t, m, "two") }
// TestCall_Multi_Something_Add func TestCall_Multi_Something_Add(t *testing.T) { arg1 := maybe.New(1) arg2 := maybe.New(2) m := maybe.Call(add, arg1, arg2) assertSomethingValue(t, m, 3) }
// TestCall_Nothing func TestCall_Nothing(t *testing.T) { _m := maybe.Nothing() m := maybe.Call(MapAny_Echo, _m) assertNothing(t, m) }
// TestCall_Any func TestCall_Any(t *testing.T) { m := maybe.Call(MapAny_Echo, SOMETHING) assertSomething(t, m) }
// TestCall_Something_Double func TestCall_Something_Double(t *testing.T) { _m := maybe.New(3) m := maybe.Call(double, _m) assertSomethingValue(t, m, 6) }
// TestCall_Something_Echo func TestCall_Something_Echo(t *testing.T) { _m := maybe.New(SOMETHING) m := maybe.Call(MapAny_Echo, _m) assertSomething(t, m) }
// TestCall_NoArgs func TestCall_NoArgs(t *testing.T) { m := maybe.Call(NoArgs_Something) assertSomething(t, m) }
// TestCall_Panic func TestCall_Panic(t *testing.T) { f := func() { maybe.Call(MapAny_Panic, 0) } assertPanic(t, f, MAP_PANIC) }
// TestCall_Nil func TestCall_Nil(t *testing.T) { f := func() { maybe.Call(nil, 0) } assertPanic(t, f, CALL_FUNC_ERR) }