aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJakob Schnitzer2017-03-14 19:45:57 -0300
committerJakob Schnitzer2017-03-14 21:09:31 -0300
commita43671384bb840518f99041160ec680c0009f40f (patch)
tree2c724efa60c91e650a44bf1e7eea31748bf0d307 /test
parent548424b59ac5902a07d53a2c984baeb3983c28ca (diff)
downloadvim-beancount-a43671384bb840518f99041160ec680c0009f40f.tar.gz
add vader.vim test for AlignCommodity
Diffstat (limited to '')
-rw-r--r--test/align.vader27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/align.vader b/test/align.vader
new file mode 100644
index 0000000..1bdc5f0
--- /dev/null
+++ b/test/align.vader
@@ -0,0 +1,27 @@
+Given beancount:
+ metadata: 50
+ Assets:Cash 50
+ Assets:Cash 50.00
+ Assets:Cash 50.00
+ Assets:Cash 50.00 USD
+
+Execute (align):
+ %AlignCommodity
+
+Expect beancount:
+ metadata: 50
+ Assets:Cash 50
+ Assets:Cash 50.00
+ Assets:Cash 50.00
+ Assets:Cash 50.00 USD
+
+Execute (change alignment column and align again):
+ let g:beancount_separator_col=40
+ %AlignCommodity
+
+Expect beancount:
+ metadata: 50
+ Assets:Cash 50
+ Assets:Cash 50.00
+ Assets:Cash 50.00
+ Assets:Cash 50.00 USD