def test_maybe_monoid_just_append_nothing(self): m = Just("Python") self.assertEquals( m.append(Nothing()), m )
def test_maybe_monoid_just_append_just(self): m = Just("Python") n = Just(" rocks!") self.assertEquals( m.append(n), Just("Python rocks!") )
def test_maybe_monoid_just_append_just(self): m = Just("Python") n = Just(" rocks!") self.assertEquals(m.append(n), Just("Python rocks!"))
def test_maybe_monoid_just_append_nothing(self): m = Just("Python") self.assertEquals(m.append(Nothing()), m)