@@ -0,0 +1,1820 @@
+package com.alibaba.json.bvt.parser;%0A%0Aimport org.junit.Assert;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.JSONException;%0Aimport com.alibaba.fastjson.JSONObject;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class CommentTest extends TestCase %7B%0A%0A    public void test_0() throws Exception %7B%0A        String text = %22%7B // aa%22 //%0A                      + %22%5Cn%7D%22;%0A        JSONObject obj = (JSONObject) JSON.parse(text);%0A        Assert.assertEquals(0, obj.size());%0A    %7D%0A%0A    public void test_1() throws Exception %7B%0A        String text = %22%7B // aa%22 //%0A                      + %22%5Cn%5C%22value%5C%22:1001%7D%22;%0A        JSONObject obj = (JSONObject) JSON.parse(text);%0A        Assert.assertEquals(1, obj.size());%0A        Assert.assertEquals(1001, obj.get(%22value%22));%0A    %7D%0A%0A    public void test_2() throws Exception %7B%0A        String text = %22%7B /* aa */ %5C%22value%5C%22:1001%7D%22;%0A        JSONObject obj = (JSONObject) JSON.parse(text);%0A        Assert.assertEquals(1, obj.size());%0A        Assert.assertEquals(1001, obj.get(%22value%22));%0A    %7D%0A%0A    public void test_3() throws Exception %7B%0A        String text = %22%7B %5C%22value%5C%22:/* aa */1001%7D%22;%0A        JSONObject obj = (JSONObject) JSON.parse(text);%0A        Assert.assertEquals(1, obj.size());%0A        Assert.assertEquals(1001, obj.get(%22value%22));%0A    %7D%0A%0A    public void test_4() throws Exception %7B%0A        String text = %22%7B %5C%22value%5C%22:1001/* aa */%7D%22;%0A        JSONObject obj = (JSONObject) JSON.parse(text);%0A        Assert.assertEquals(1, obj.size());%0A        Assert.assertEquals(1001, obj.get(%22value%22));%0A    %7D%0A%0A    public void test_5() throws Exception %7B%0A        Exception error = null;%0A        try %7B%0A            String text = %22%7B %5C%22value%5C%22:1001/ * aa */%7D%22;%0A            JSON.parse(text);%0A        %7D catch (JSONException ex) %7B%0A            error = ex;%0A        %7D%0A        Assert.assertNotNull(error);%0A    %7D%0A%7D%0A

add comment test