use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_colon method test_2.
public void test_2() throws Exception {
JSONScanner lexer = new JSONScanner("\n:\ntrue");
lexer.nextTokenWithColon();
Assert.assertEquals(JSONToken.TRUE, lexer.token());
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_colon method test_3.
public void test_3() throws Exception {
JSONScanner lexer = new JSONScanner("\r:\rtrue");
lexer.nextTokenWithColon();
Assert.assertEquals(JSONToken.TRUE, lexer.token());
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_colon method test_0.
public void test_0() throws Exception {
JSONScanner lexer = new JSONScanner(":true");
lexer.nextTokenWithColon();
Assert.assertEquals(JSONToken.TRUE, lexer.token());
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_false method test_scan_false_14.
public void test_scan_false_14() throws Exception {
JSONScanner lexer = new JSONScanner("false}");
lexer.scanFalse();
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_false method test_scan_false_0.
public void test_scan_false_0() throws Exception {
JSONScanner lexer = new JSONScanner("false");
lexer.scanFalse();
}
Aggregations