From 8a87a8bd33cb428afc9472d5a8eb94ed07bf32aa Mon Sep 17 00:00:00 2001 From: Alan Bram Date: Mon, 5 Apr 2021 19:22:33 -0700 Subject: Fix using day-of-week names for `xact` command Also fix end-of-command boundary checks for keywords "at", "to", etc. --- test/baseline/cmd-entry.test | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test') diff --git a/test/baseline/cmd-entry.test b/test/baseline/cmd-entry.test index 0de39b9c..152a4738 100644 --- a/test/baseline/cmd-entry.test +++ b/test/baseline/cmd-entry.test @@ -41,3 +41,26 @@ __ERROR__ Error: No accounts, and no past transaction matching 'no:such:account' end test +test entry --now 2012/03/25 thursday "Test 1" +2012/03/22 Test 1 + A $10.00 + B +end test + +test --now 2012/03/25 entry tue at "Test 2" +2012/03/20 Test 2 + C 20.00 EUR + D +end test + +test --now 2012/03/25 entry "Test 1" from D +2012/03/25 Test 1 + A $10.00 + D +end test + +test --now 2012/03/25 entry "Test 1" from -> 1 +__ERROR__ +Error: Invalid xact command arguments +end test + -- cgit v1.2.3