def test_dump_array(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([nil])")
        assert space.str_w(w_res) == "\x04\b[\x060"

        w_res = space.execute("return Marshal.dump([nil, true, false])")
        assert space.str_w(w_res) == "\x04\b[\b0TF"

        w_res = space.execute("return Marshal.dump([1, 2, 3])")
        assert space.str_w(w_res) == "\x04\b[\x08i\x06i\x07i\x08"

        w_res = space.execute("return Marshal.dump([1, [2, 3], 4])")
        assert space.str_w(w_res) == "\x04\b[\bi\x06[\ai\ai\bi\t"

        w_res = space.execute("return Marshal.dump([:foo, :bar])")
        assert space.str_w(w_res) == "\x04\b[\a:\bfoo:\bbar"