mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
fix existing tags
new tags: for,cycle
This commit is contained in:
+6
-11
@@ -17,6 +17,12 @@ describe('identifier', function() {
|
||||
identifier.isLiteral('23').should.equal(true);
|
||||
});
|
||||
|
||||
it("should test range literal", function() {
|
||||
identifier.isRange("(12..32)").should.equal(true);
|
||||
identifier.isRange("(12..foo)").should.equal(true);
|
||||
identifier.isRange("(foo.bar..foo)").should.equal(true);
|
||||
});
|
||||
|
||||
it('should test string literal', function() {
|
||||
identifier.isLiteral('""').should.equal(true);
|
||||
identifier.isLiteral('"a\'b"').should.equal(true);
|
||||
@@ -24,10 +30,6 @@ describe('identifier', function() {
|
||||
identifier.isLiteral("'a bcd'").should.equal(true);
|
||||
});
|
||||
|
||||
it("should test range literal", function() {
|
||||
identifier.isLiteral("(12..32)").should.equal(true);
|
||||
});
|
||||
|
||||
it("should test variable", function() {
|
||||
identifier.isVariable("foo").should.equal(true);
|
||||
identifier.isVariable("foo.bar.foo").should.equal(true);
|
||||
@@ -65,11 +67,4 @@ describe('identifier', function() {
|
||||
identifier.parseLiteral('"ab\'c"').should.equal("ab\'c");
|
||||
});
|
||||
|
||||
it("should parse range literal", function() {
|
||||
var arr = identifier.parseLiteral("(12..32)");
|
||||
arr.length.should.equal(20);
|
||||
arr[0].should.equal(12);
|
||||
arr[1].should.equal(13);
|
||||
arr[19].should.equal(31);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user