package com.alibaba.json.bvt.writeAsArray;

import org.junit.Assert;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.parser.Feature;

import junit.framework.TestCase;

public class WriteAsArray_string_special_2 extends TestCase {

    
    public void test_0() throws Exception {
        Model model2 = JSON.parseObject("[\"abc\\0\\1\\2\\3\\4\\5\\6\\7\\b\\t\\n\\v\\f\\F\\r\\'\\/\\xFF\\u000B\"]", Model.class, Feature.SupportArrayToBean);
        Assert.assertEquals("abc\0\1\2\3\4\5\6\7\b\t\n\u000B\f\f\r'/\u00FF\u000B", model2.name);
    }

    public static class Model {

        public String name;

    }
}

@@ -97,16 +97,59 @@
 n.JSON;%0A
+import com.alibaba.fastjson.JSONException;%0A
 import c
@@ -184,16 +184,16 @@
 eature;%0A
-
 %0Aimport 
@@ -286,13 +286,8 @@
  %7B%0A%0A
-    %0A
     
@@ -441,16 +441,56 @@
 00B%5C%22%5D%22,
+%0A                                       
  Model.c
@@ -628,16 +628,312 @@
 %0A    %7D%0A%0A
+    public void test_error() throws Exception %7B%0A        Exception error = null;%0A        try %7B%0A            JSON.parseObject(%22%5B%5C%22abc%5C%5Ck%5C%22%5D%22, Model.class, Feature.SupportArrayToBean);%0A        %7D catch (JSONException ex) %7B%0A            error = ex;%0A        %7D%0A        Assert.assertNotNull(error);%0A    %7D%0A%0A
     publ

add testcase