Beispiel #1
0
    def test_maybe_monoid_just_append_nothing(self):
        m = Just("Python")

        self.assertEquals(
            m.append(Nothing()),
            m
        )
Beispiel #2
0
    def test_maybe_monoid_just_append_just(self):
        m = Just("Python")
        n = Just(" rocks!")

        self.assertEquals(
            m.append(n),
            Just("Python rocks!")
        )
Beispiel #3
0
    def test_maybe_monoid_just_append_just(self):
        m = Just("Python")
        n = Just(" rocks!")

        self.assertEquals(m.append(n), Just("Python rocks!"))
Beispiel #4
0
    def test_maybe_monoid_just_append_nothing(self):
        m = Just("Python")

        self.assertEquals(m.append(Nothing()), m)