def test_dump_hash(self, space):
        w_res = space.execute("return Marshal.dump({})")
        assert space.str_w(w_res) == "\x04\b{\x00"

        w_res = space.execute("return Marshal.dump({1 => 2, 3 => 4})")
        assert self.unwrap(space, w_res) == "\x04\b{\ai\x06i\ai\bi\t"

        w_res = space.execute("return Marshal.dump({1 => {2 => 3}, 4 => 5})")
        assert self.unwrap(space, w_res) == "\x04\b{\ai\x06{\x06i\ai\bi\ti\n"

        w_res = space.execute("return Marshal.dump({1234 => {23456 => 3456789}, 4 => 5})")
        assert self.unwrap(space, w_res) == "\x04\b{\ai\x02\xD2\x04{\x06i\x02\xA0[i\x03\x15\xBF4i\ti\n"