@@ -0,0 +1,2040 @@
+package com.alibaba.json.bvt;%0A%0Aimport java.io.StringWriter;%0A%0Aimport org.junit.Assert;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.serializer.SerializerFeature;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class StringFieldTest_special_singquote extends TestCase %7B%0A    public void test_special() throws Exception %7B%0A        Model model = new Model();%0A        StringBuilder buf = new StringBuilder();%0A        for (int i = Character.MIN_VALUE; i %3C Character.MAX_VALUE; ++i) %7B%0A            buf.append((char) i);%0A        %7D%0A        model.name = buf.toString();%0A        %0A        StringWriter writer = new StringWriter();%0A        JSON.writeJSONString(model, writer);%0A%0A        Model model2 = JSON.parseObject(writer.toString(), Model.class);%0A        Assert.assertEquals(model.name, model2.name);%0A    %7D%0A    %0A    public void test_special_browsecue() throws Exception %7B%0A        Model model = new Model();%0A        StringBuilder buf = new StringBuilder();%0A        for (int i = Character.MIN_VALUE; i %3C Character.MAX_VALUE; ++i) %7B%0A            buf.append((char) i);%0A        %7D%0A        model.name = buf.toString();%0A        %0A        StringWriter writer = new StringWriter();%0A        JSON.writeJSONString(model, writer, SerializerFeature.UseSingleQuotes);%0A%0A        Model model2 = JSON.parseObject(writer.toString(), Model.class);%0A        Assert.assertEquals(model.name, model2.name);%0A    %7D%0A    %0A    public void test_special_browsecompatible() throws Exception %7B%0A        Model model = new Model();%0A        StringBuilder buf = new StringBuilder();%0A        for (int i = Character.MIN_VALUE; i %3C Character.MAX_VALUE; ++i) %7B%0A            buf.append((char) i);%0A        %7D%0A        model.name = buf.toString();%0A        %0A        StringWriter writer = new StringWriter();%0A        JSON.writeJSONString(model, writer, SerializerFeature.UseSingleQuotes);%0A%0A        Model model2 = JSON.parseObject(writer.toString(), Model.class);%0A        Assert.assertEquals(model.name, model2.name);%0A    %7D%0A%0A    private static class Model %7B%0A%0A        public String name;%0A%0A    %7D%0A%7D%0A

add testcase