Permalink
Browse files

modify a test case

  • Loading branch information...
XadillaX committed Oct 23, 2015
1 parent 1ff2887 commit e506ee9254b644c1dea062c9b9cc1d7aa7a46be8
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/sqlparser.js
@@ -111,16 +111,16 @@ describe("Some SQL Parser", function() {
answer.should.be.eql("SELECT a FROM b WHERE calc(`d`) = `e`");
});

it("should be SELECT a FROM b WHERE calc(`d`) = (`g`)`e``f`", function() {
var sql = "SELECT aa FROM b WHERE calc(`dd`) = (`gg`)`ee``ff`";
it("should be SELECT a FROM b WHERE calc(`d`) = (g)e`f`", function() {
var sql = "SELECT aa FROM b WHERE calc(`dd`) = (gg)ee`ff`";
var answer = parser.sqlNameToColumn(sql, {
aa: "a",
dd: "d",
ee: "e",
ff: "f",
gg: "g"
});
answer.should.be.eql("SELECT a FROM b WHERE calc(`d`) = (`g`)`e``f`");
answer.should.be.eql("SELECT a FROM b WHERE calc(`d`) = (g)e`f`");
});
});
});

0 comments on commit e506ee9

Please sign in to comment.