Example #1
0
    def test_result_of_compile(self):
        signature = b"s"
        call_arg = b"arg"

        _, func = compile_simple(signature)

        self.assertEqual(func(call_arg), [(ord(signature), call_arg)])
Example #2
0
    def test_compile(self):
        signature = b"s"

        off, _ = compile_simple(signature)
        self.assertEqual(signature, off)