summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/baseline/opt-plot-amount-format.test10
-rw-r--r--test/baseline/opt-plot-total-format.test10
2 files changed, 20 insertions, 0 deletions
diff --git a/test/baseline/opt-plot-amount-format.test b/test/baseline/opt-plot-amount-format.test
new file mode 100644
index 00000000..9c5484af
--- /dev/null
+++ b/test/baseline/opt-plot-amount-format.test
@@ -0,0 +1,10 @@
+reg -j --plot-amount-format='X %(format_date(date, "%Y-%m-%d")) Y %(quantity(scrub(display_amount)))\n'
+<<<
+2007/02/02 RD VMMXX
+ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
+ Income:Dividends:Vanguard:VMMXX $-0.35
+>>>1
+X 2007-02-02 Y 0.35
+X 2007-02-02 Y -0.35
+>>>2
+=== 0
diff --git a/test/baseline/opt-plot-total-format.test b/test/baseline/opt-plot-total-format.test
new file mode 100644
index 00000000..1065c5ce
--- /dev/null
+++ b/test/baseline/opt-plot-total-format.test
@@ -0,0 +1,10 @@
+reg -J --plot-total-format='X %(format_date(date, "%Y-%m-%d")) Y %(quantity(scrub(display_amount)))\n'
+<<<
+2007/02/02 RD VMMXX
+ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
+ Income:Dividends:Vanguard:VMMXX $-0.35
+>>>1
+X 2007-02-02 Y 0.35
+X 2007-02-02 Y -0.35
+>>>2
+=== 0