def test_dump_tiny_integer(self, space):
        w_res = space.execute("return Marshal.dump(5)")
        assert space.str_w(w_res) == "\x04\bi\n"

        w_res = space.execute("return Marshal.dump(100)")
        assert space.str_w(w_res) == "\x04\bii"

        w_res = space.execute("return Marshal.dump(0)")
        assert space.str_w(w_res) == "\x04\bi\x00"

        w_res = space.execute("return Marshal.dump(-1)")
        assert space.str_w(w_res) == "\x04\bi\xFA"

        w_res = space.execute("return Marshal.dump(-123)")
        assert space.str_w(w_res) == "\x04\bi\x80"

        w_res = space.execute("return Marshal.dump(122)")
        assert space.str_w(w_res) == "\x04\bi\x7F"