summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-19 03:37:16 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-19 03:37:16 -0500
commitcc9110a43a1e2d006de8d24a84bbfb2c6918cf33 (patch)
tree4230ae03ebea8e2cbc0b6e1de821730e4819af47 /test/regress
parent6b557f810e1c6eb2dcd8a24eeeacfcf9cc8210e3 (diff)
parent63fee4c83775f79364199ea547dbc7e068b0abc8 (diff)
downloadfork-ledger-cc9110a43a1e2d006de8d24a84bbfb2c6918cf33.tar.gz
fork-ledger-cc9110a43a1e2d006de8d24a84bbfb2c6918cf33.tar.bz2
fork-ledger-cc9110a43a1e2d006de8d24a84bbfb2c6918cf33.zip
Merge branch 'next'
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/7F3650FD.test77
-rw-r--r--test/regress/BBFA1759.test16
2 files changed, 74 insertions, 19 deletions
diff --git a/test/regress/7F3650FD.test b/test/regress/7F3650FD.test
index 0eb3a96f..f7154eb8 100644
--- a/test/regress/7F3650FD.test
+++ b/test/regress/7F3650FD.test
@@ -1,50 +1,95 @@
period --now=2010/11/01 12/01
<<<
>>>1
-global details =>
+--- Period expression tokens ---
+TOK_DATE: month Dec day 1
+END_REACHED: <EOF>
- start: 09-Dec-01
- end: 09-Dec-02
- factor: 1
+--- Before stabilization ---
+ range: in month Dec day 1
+
+--- After stabilization ---
+ range: in month Dec day 1
+ start: 10-Dec-01
+ finish: 10-Dec-02
+
+--- Sample dates in range (max. 20) ---
+ 1: 10-Dec-01
>>>2
=== 0
period --now=2010/11/01 10/01
<<<
>>>1
-global details =>
+--- Period expression tokens ---
+TOK_DATE: month Oct day 1
+END_REACHED: <EOF>
+
+--- Before stabilization ---
+ range: in month Oct day 1
+--- After stabilization ---
+ range: in month Oct day 1
start: 10-Oct-01
- end: 10-Oct-02
- factor: 1
+ finish: 10-Oct-02
+
+--- Sample dates in range (max. 20) ---
+ 1: 10-Oct-01
>>>2
=== 0
period --now=2010/11/01 2009/10
<<<
>>>1
-global details =>
+--- Period expression tokens ---
+TOK_DATE: year 2009 month Oct
+END_REACHED: <EOF>
+
+--- Before stabilization ---
+ range: in year 2009 month Oct
+--- After stabilization ---
+ range: in year 2009 month Oct
start: 09-Oct-01
- end: 09-Nov-01
- factor: 1
+ finish: 09-Nov-01
+
+--- Sample dates in range (max. 20) ---
+ 1: 09-Oct-01
>>>2
=== 0
period --now=2010/11/01 2009/10/01
<<<
>>>1
-global details =>
+--- Period expression tokens ---
+TOK_DATE: year 2009 month Oct day 1
+END_REACHED: <EOF>
+
+--- Before stabilization ---
+ range: in year 2009 month Oct day 1
+--- After stabilization ---
+ range: in year 2009 month Oct day 1
start: 09-Oct-01
- end: 09-Oct-02
- factor: 1
+ finish: 09-Oct-02
+
+--- Sample dates in range (max. 20) ---
+ 1: 09-Oct-01
>>>2
=== 0
period --now=2010/11/01 2009
<<<
>>>1
-global details =>
+--- Period expression tokens ---
+TOK_A_YEAR: 2009
+END_REACHED: <EOF>
+--- Before stabilization ---
+ range: in year 2009
+
+--- After stabilization ---
+ range: in year 2009
start: 09-Jan-01
- end: 10-Jan-01
- factor: 1
+ finish: 10-Jan-01
+
+--- Sample dates in range (max. 20) ---
+ 1: 09-Jan-01
>>>2
=== 0
diff --git a/test/regress/BBFA1759.test b/test/regress/BBFA1759.test
index 26862703..cd5990fc 100644
--- a/test/regress/BBFA1759.test
+++ b/test/regress/BBFA1759.test
@@ -1,10 +1,20 @@
period june 2008
<<<
>>>1
-global details =>
+--- Period expression tokens ---
+TOK_A_MONTH: Jun
+TOK_A_YEAR: 2008
+END_REACHED: <EOF>
+--- Before stabilization ---
+ range: in year 2008 month Jun
+
+--- After stabilization ---
+ range: in year 2008 month Jun
start: 08-Jun-01
- end: 08-Jul-01
- factor: 1
+ finish: 08-Jul-01
+
+--- Sample dates in range (max. 20) ---
+ 1: 08-Jun-01
>>>2
=== 0