mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
Test if an array contains a specific number/string.
This commit is contained in:
@@ -45,6 +45,8 @@ describe('expression', function() {
|
||||
expect(evalExp('x contains "X"', scope)).to.equal(true);
|
||||
expect(evalExp('1 contains "x"', scope)).to.equal(false);
|
||||
expect(evalExp('y contains "x"', scope)).to.equal(false);
|
||||
expect(evalExp('(1..5) contains 3', scope)).to.equal(true);
|
||||
expect(evalExp('(1..5) contains 6', scope)).to.equal(false);
|
||||
expect(evalExp('"<=" == "<="', scope)).to.equal(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user