package com.alibaba.json.bvt.issue_3600;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONException;
import org.junit.Test;

public class Issue3689 {

    @Test(expected = JSONException.class)
    public void test_without_type_0() {
        JSONArray.parseArray("dfdfdf");
    }

    @Test(expected = JSONException.class)
    public void test_without_type_1() {
        JSONArray.parseArray("/dfdfdf");
    }

    @Test(expected = JSONException.class)
    public void test_without_type_2() {
        JSONArray.parseArray("//dfdfdf");
    }

    @Test(expected = JSONException.class)
    public void test_without_type_3() {
        JSONArray.parseArray("///dfdfdf");
    }

    @Test(expected = JSONException.class)
    public void test_without_type_4() {
        JSONArray.parseArray("////dfdfdf");
    }

    @Test(expected = JSONException.class)
    public void test_without_type_5() {
        JSONArray.parseArray("/////dfdfdf");
    }

    @Test(expected = JSONException.class)
    public void test_without_type_6() {
        JSONArray.parseArray("//////dfdfdf");
    }

    @Test(expected = JSONException.class)
    public void test_with_type_0() {
        JSONArray.parseArray("dfdfdf", String.class);
    }

    @Test(expected = JSONException.class)
    public void test_with_type_1() {
        JSONArray.parseArray("/dfdfdf", String.class);
    }

    @Test(expected = JSONException.class)
    public void test_with_type_2() {
        JSONArray.parseArray("//dfdfdf", String.class);

    }

    @Test(expected = JSONException.class)
    public void test_with_type_3() {
        JSONArray.parseArray("///dfdfdf", String.class);

    }

    @Test(expected = JSONException.class)
    public void test_with_type_4() {
        JSONArray.parseArray("////dfdfdf", String.class);

    }

    @Test(expected = JSONException.class)
    public void test_with_type_5() {
        JSONArray.parseArray("/////dfdfdf", String.class);

    }

    @Test(expected = JSONException.class)
    public void test_with_type_6() {
        JSONArray.parseArray("//////dfdfdf", String.class);
    }

    @Test
    public void test_2() {
        JSONArray.parseArray("[\"////dfdfdf\"]"); //不会抛异常
        JSONArray objects = JSONArray.parseArray("[\"dfdfdf\"]");//不会抛异常
        System.out.println(JSONArray.parseArray("[\"////dfdfdf\"]"));
        System.out.println(JSONArray.parseArray("[\"dfdfdf\"]"));
    }
}

@@ -240,29 +240,45 @@
 thout_type_0
+_meaningles_char
 () %7B%0A
-
         JSON
@@ -385,24 +385,40 @@
 thout_type_1
+_meaningles_char
 () %7B%0A       
@@ -531,24 +531,40 @@
 thout_type_2
+_meaningles_char
 () %7B%0A       
@@ -678,24 +678,40 @@
 thout_type_3
+_meaningles_char
 () %7B%0A       
@@ -826,24 +826,40 @@
 thout_type_4
+_meaningles_char
 () %7B%0A       
@@ -975,24 +975,40 @@
 thout_type_5
+_meaningles_char
 () %7B%0A       
@@ -1125,24 +1125,40 @@
 thout_type_6
+_meaningles_char
 () %7B%0A       
@@ -1277,16 +1277,32 @@
 h_type_0
+_meaningles_char
 () %7B%0A   
@@ -1433,16 +1433,32 @@
 h_type_1
+_meaningles_char
 () %7B%0A   
@@ -1590,16 +1590,32 @@
 h_type_2
+_meaningles_char
 () %7B%0A   
@@ -1749,16 +1749,32 @@
 h_type_3
+_meaningles_char
 () %7B%0A   
@@ -1909,16 +1909,32 @@
 h_type_4
+_meaningles_char
 () %7B%0A   
@@ -2070,16 +2070,32 @@
 h_type_5
+_meaningles_char
 () %7B%0A   
@@ -2232,16 +2232,32 @@
 h_type_6
+_meaningles_char
 () %7B%0A   
@@ -2351,17 +2351,25 @@
 id test_
-2
+for_issue
 () %7B%0A   

rename testcases.