Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added array test

  • Loading branch information...
commit 8901458d110b85c3ae630f818540729a64e79a96 1 parent c0a63a9
@dvv dvv authored
Showing with 5 additions and 2 deletions.
  1. +2 −2 package.json
  2. +3 −0  tests/query.js
View
4 package.json
@@ -24,8 +24,8 @@
"url":"http://github.com/kriszyp/rql"
},
"mappings": {
- "patr": "http://nodeload.github.com/kriszyp/patr/zipball/v0.2.1",
- "promised-io": "http://nodeload.github.com/kriszyp/promised-io/zipball/v0.2.1"
+ "patr": "http://github.com/kriszyp/patr/zipball/v0.2.1",
+ "promised-io": "http://github.com/kriszyp/promised-io/zipball/v0.2.1"
},
"dependencies": {
"patr": ">=0.2.1",
View
3  tests/query.js
@@ -167,6 +167,9 @@ exports.testStringification = function() {
parsed = parseQuery('eq(_1,re:GGG%28EE%7CFF%29)');
console.log(parsed.args[0].args[1].toString() === /GGG(EE|FF)/i.toString());
//assert.ok(Query().eq('_1',/GGG(EE|FF)/)+'' === 'eq(_1,RE:GGG%28EE%7CFF%29)');
+ // string to array and back
+ var str = 'somefunc(and(1),(a,b),(10,(10,1)),(a,b.c))';
+ assert.equal(parseQuery(str)+'', str);
};
if (require.main === module)
Please sign in to comment.
Something went wrong with that request. Please try again.