package com.alibaba.json.bvt.issue_1100;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPath;
import junit.framework.TestCase;

/**
 * Created by wenshao on 01/04/2017.
 */
public class Issue1112 extends TestCase {
    public void test_for_issue_1() throws Exception {
        JSONObject object = new JSONObject();
        object.put("123", "abc");

        assertEquals("abc", JSONPath.eval(object, "$.123"));
    }

    public void test_for_issue() throws Exception {
        JSONObject object = new JSONObject();
        object.put("345_xiu", "abc");

        assertEquals("abc", JSONPath.eval(object, "$.345_xiu"));
    }
}

@@ -467,16 +467,18 @@
 or_issue
+_2
 () throw
@@ -647,10 +647,224 @@
 ;%0A    %7D%0A
+%0A%0A    public void test_for_issue_3() throws Exception %7B%0A        JSONObject object = new JSONObject();%0A        object.put(%22345.xiu%22, %22abc%22);%0A%0A        assertEquals(%22abc%22, JSONPath.eval(object, %22$.345%5C%5C.xiu%22));%0A    %7D%0A
 %7D%0A

add testcase.