From a43671384bb840518f99041160ec680c0009f40f Mon Sep 17 00:00:00 2001 From: Jakob Schnitzer Date: Tue, 14 Mar 2017 19:45:57 -0300 Subject: add vader.vim test for AlignCommodity --- test/align.vader | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/align.vader (limited to 'test') 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 -- cgit v1.2.3-2-gb3c3