def test_writer_monad_law_left_identity(self):
        # return x >>= f == f x
        entry = "Added 100000 to %s"
        a = Writer.unit(42).bind(lambda x: Writer(x+100000, x % entry))
        b = (lambda x: Writer(x+100000, entry % x))(42)
        self.assertEqual(a, b)
dataset/ETHPy150Open dbrattli/OSlash/tests/test_writer.py/TestWriterMonad.test_writer_monad_law_left_identity/swapped operands of `%`