persvr/rql — pull request #46 by khamasaki (2014-10-21 09:39:32+00:00)
Title: Fix handling of ISO dates

This fixes #30. When passing in a comparison such as ?property=date:2010-01-01T00:00:00Z, an exception was thrown because the date string was being truncated to 2010-01-01T00 prior to being passed to the converter function. This was due to an improper use of the String.split method.

While writing a unit test for this fix, I noticed that the unit test suite was not running correctly, as I could not get my test to fail no matter what I did, despite it clearly failing in my running application. As it turns out, the test runner was running only the very last test from the queryPairs collection, but running it multiple times. I fixed this as well, which had a side-effect of causing two existing tests to fail (now that these tests were in fact actually executing, they turned out to be failing). I fixed those as best as I could, but the first one in particular I fixed only by a workaround of adding parentheses to the entire expression.