From ea39b7751e5cee47a674d99d0efbc713a1c3273e Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Mon, 27 Apr 2020 19:52:38 +0800 Subject: Ensure that apply directives have an argument The directive `apply account` and similar directives (fixed, year...) require an argument. Ensure that an argument is given. Fixes #553 Fixes #1854 --- test/regress/553.test | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/regress/553.test (limited to 'test/regress') diff --git a/test/regress/553.test b/test/regress/553.test new file mode 100644 index 00000000..d7a833af --- /dev/null +++ b/test/regress/553.test @@ -0,0 +1,20 @@ +# Test for missing arguments +apply account +apply tag +apply fixed +apply rate +apply year + +test -f - bal -> 5 +__ERROR__ +While parsing file "", line 2: +Error: Directive 'apply account' requires an argument +While parsing file "", line 3: +Error: Directive 'apply tag' requires an argument +While parsing file "", line 4: +Error: Directive 'apply fixed' requires an argument +While parsing file "", line 5: +Error: Directive 'apply rate' requires an argument +While parsing file "", line 6: +Error: Directive 'apply year' requires an argument +end test -- cgit v1.2.3