From 151f54945071519621e853f46846059f3cd2597b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 12 Mar 2011 20:56:15 +0000 Subject: [PATCH] new test, small fixes --- tests/parse-blank-description.test | 4 ++-- tests/parse-posting-error-pos.test | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 tests/parse-posting-error-pos.test diff --git a/tests/parse-blank-description.test b/tests/parse-blank-description.test index 1326af250..00aa35bb2 100644 --- a/tests/parse-blank-description.test +++ b/tests/parse-blank-description.test @@ -1,5 +1,5 @@ # 1. accept a blank description -bin/hledger -f- +bin/hledger -f- print <<< 2010/1/1 a 1 @@ -8,7 +8,7 @@ bin/hledger -f- >>>=0 # 2. same, but no separator space after the date -bin/hledger -f- +bin/hledger -f- print <<< 2010/1/1 a 1 diff --git a/tests/parse-posting-error-pos.test b/tests/parse-posting-error-pos.test new file mode 100644 index 000000000..5fed79f35 --- /dev/null +++ b/tests/parse-posting-error-pos.test @@ -0,0 +1,13 @@ +# should give an accurate parse error location +bin/hledger -f- stat +<<< +2010/1/1 x + a 1 + b + +2010/1/1 y + c: 1 + d + +>>>2 /line 6, column 5/ +>>>= 1 \ No newline at end of file