Expressions

- Eliminated the . prefix for DOM references to the current task - it is
  unnatural to state ".due < today".
- Prioritized parsing dates ahead of integers, which were masking all
  dates.
This commit is contained in:
Paul Beckingham 2011-07-19 00:25:26 -04:00
parent e564827be7
commit 09d94a0712
7 changed files with 27 additions and 25 deletions

View file

@ -414,9 +414,9 @@ int main (int argc, char** argv)
t.diag ("Nibbler::getDOM");
// positive.
n = Nibbler (".due ");
t.ok (n.getDOM (s), "'.due' getDOM -> ok");
t.is (s, ".due", "'.due' getDOM -> '.due'");
n = Nibbler ("due ");
t.ok (n.getDOM (s), "'due' getDOM -> ok");
t.is (s, "due", "'due' getDOM -> 'due'");
n = Nibbler ("123.due ");
t.ok (n.getDOM (s), "'123.due' getDOM -> ok");