Skip to content
This repository
Browse code

added array test

  • Loading branch information...
commit 8901458d110b85c3ae630f818540729a64e79a96 1 parent c0a63a9
Vladimir Dronnikov dvv authored

Showing 2 changed files with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 package.json
  2. +3 0  tests/query.js
4 package.json
@@ -24,8 +24,8 @@
24 24 "url":"http://github.com/kriszyp/rql"
25 25 },
26 26 "mappings": {
27   - "patr": "http://nodeload.github.com/kriszyp/patr/zipball/v0.2.1",
28   - "promised-io": "http://nodeload.github.com/kriszyp/promised-io/zipball/v0.2.1"
  27 + "patr": "http://github.com/kriszyp/patr/zipball/v0.2.1",
  28 + "promised-io": "http://github.com/kriszyp/promised-io/zipball/v0.2.1"
29 29 },
30 30 "dependencies": {
31 31 "patr": ">=0.2.1",
3  tests/query.js
@@ -167,6 +167,9 @@ exports.testStringification = function() {
167 167 parsed = parseQuery('eq(_1,re:GGG%28EE%7CFF%29)');
168 168 console.log(parsed.args[0].args[1].toString() === /GGG(EE|FF)/i.toString());
169 169 //assert.ok(Query().eq('_1',/GGG(EE|FF)/)+'' === 'eq(_1,RE:GGG%28EE%7CFF%29)');
  170 + // string to array and back
  171 + var str = 'somefunc(and(1),(a,b),(10,(10,1)),(a,b.c))';
  172 + assert.equal(parseQuery(str)+'', str);
170 173 };
171 174
172 175 if (require.main === module)

0 comments on commit 8901458

Please sign in to comment.
Something went wrong with that request. Please try again.