summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gmail.com>2024-08-08 15:39:52 -0700
committerJohn Wiegley <johnw@newartisans.com>2024-08-08 13:26:45 -1000
commit61beb977684b3c5fb32236b34c940878e24ca2bf (patch)
treeee00ee0136a4d2b5427c22a857c5aa1ce4f56264
parent185ed9085467df5a49c2393efc8bce6166d0697a (diff)
downloadfork-ledger-61beb977684b3c5fb32236b34c940878e24ca2bf.tar.gz
fork-ledger-61beb977684b3c5fb32236b34c940878e24ca2bf.tar.bz2
fork-ledger-61beb977684b3c5fb32236b34c940878e24ca2bf.zip
add unittest for #ledger/2348
-rw-r--r--test/regress/2348.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/regress/2348.test b/test/regress/2348.test
new file mode 100644
index 00000000..fe68c500
--- /dev/null
+++ b/test/regress/2348.test
@@ -0,0 +1,16 @@
+2024/04/24 Foobar
+ Expenses:Fournitures 25.00 EUR
+ ; Tag: Hello
+ Assets:Cash
+
+test xact --strict 2024/05/12 Foobar -> 0
+2024/05/12 Foobar
+ Expenses:Fournitures 25.00 EUR
+ ; Tag: Hello
+ Assets:Cash
+__ERROR__
+Warning: "$FILE", line 2: Unknown account 'Expenses:Fournitures'
+Warning: "$FILE", line 2: Unknown commodity 'EUR'
+Warning: "$FILE", line 4: Unknown account 'Assets:Cash'
+Warning: "$FILE", line 4: Unknown metadata tag 'Tag'
+end test