提交 a74a8591 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 e1c4a60d
...@@ -145,17 +145,17 @@ public class TestBnf extends TestBase { ...@@ -145,17 +145,17 @@ public class TestBnf extends TestBase {
assertTrue(tokens.values().contains("INT")); assertTrue(tokens.values().contains("INT"));
// Test identifiers are working // Test identifiers are working
tokens = bnf.getNextTokenList("create table \"test\" as sel"); tokens = bnf.getNextTokenList("create table \"test\" as s" + " el");
assertTrue(tokens.values().contains("ECT")); assertTrue(tokens.values().contains("E" + "CT"));
tokens = bnf.getNextTokenList("create table test as sel"); tokens = bnf.getNextTokenList("create table test as s" + "el");
assertTrue(tokens.values().contains("ECT")); assertTrue(tokens.values().contains("E" + "CT"));
// Test || with and without spaces // Test || with and without spaces
tokens = bnf.getNextTokenList("select 1||f"); tokens = bnf.getNextTokenList("select 1||f");
assertFalse(tokens.values().contains("ROM")); assertFalse(tokens.values().contains("R" + "OM"));
tokens = bnf.getNextTokenList("select 1 || f"); tokens = bnf.getNextTokenList("select 1 || f");
assertFalse(tokens.values().contains("ROM")); assertFalse(tokens.values().contains("R" + "OM"));
tokens = bnf.getNextTokenList("select 1 || 2 "); tokens = bnf.getNextTokenList("select 1 || 2 ");
assertTrue(tokens.values().contains("FROM")); assertTrue(tokens.values().contains("FROM"));
tokens = bnf.getNextTokenList("select 1||2"); tokens = bnf.getNextTokenList("select 1||2");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论