use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_new method test_scan_new_15.
public void test_scan_new_15() throws Exception {
JSONScanner lexer = new JSONScanner("new]");
lexer.scanNullOrNew();
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_new method test_scan_new_8.
public void test_scan_new_8() throws Exception {
JSONScanner lexer = new JSONScanner("new,");
lexer.scanNullOrNew();
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_new method test_scan_new_10.
public void test_scan_new_10() throws Exception {
JSONScanner lexer = new JSONScanner("new\ra");
lexer.scanNullOrNew();
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_new method test_scan_new_14.
public void test_scan_new_14() throws Exception {
JSONScanner lexer = new JSONScanner("new}");
lexer.scanNullOrNew();
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_symbol method test_4.
public void test_4() throws Exception {
SymbolTable symbolTable = new SymbolTable(512);
JSONScanner lexer = new JSONScanner("\"nick \\/name\"");
String symbol = lexer.scanSymbol(symbolTable, '"');
Assert.assertTrue("nick /name" == symbol);
lexer.close();
}
Aggregations