use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_false method test_scan_false_4.
public void test_scan_false_4() throws Exception {
JSONException error = null;
try {
JSONScanner lexer = new JSONScanner("falze");
lexer.scanFalse();
} catch (JSONException e) {
error = e;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_false method test_scan_false_13.
public void test_scan_false_13() throws Exception {
JSONScanner lexer = new JSONScanner("false\ba");
lexer.scanFalse();
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_false method test_scan_false_6_1.
public void test_scan_false_6_1() throws Exception {
JSONException error = null;
try {
JSONScanner lexer = new JSONScanner("falsee");
lexer.scanFalse();
} catch (JSONException e) {
error = e;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_ident method test_new.
public void test_new() throws Exception {
JSONScanner lexer = new JSONScanner("new");
lexer.scanIdent();
Assert.assertEquals(JSONToken.NEW, lexer.token());
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_ident method test_true.
public void test_true() throws Exception {
JSONScanner lexer = new JSONScanner("true");
lexer.scanIdent();
Assert.assertEquals(JSONToken.TRUE, lexer.token());
}
Aggregations