From: Christian Heller Date: Mon, 19 Jan 2026 06:33:36 +0000 (+0100) Subject: Add /edit_structured tests. X-Git-Url: https://plomlompom.com/repos/booking/%22https:/validator.w3.org/static/template?a=commitdiff_plain;p=ledgplom Add /edit_structured tests. --- diff --git a/src/tests/full.edit_structured.1 b/src/tests/full.edit_structured.1 new file mode 100644 index 0000000..b65f398 --- /dev/null +++ b/src/tests/full.edit_structured.1 @@ -0,0 +1,201 @@ + + + + + + + + + +
+ +prev +next + + + + +switch to raw +· +balance after +· +in ledger + +
+ + + + +| + +from + +to + + +
+ +
+
Gap:
+ +
+ + +
+ + + + + + + + + + + + + + + + + + + +
accountbeforediffafter
bar + + + + + +
0€
+
+ + + + + +
-10€
+
+ + + + + +
-10€
+
foo + + + + + +
0€
+
+ + + + + +
10€
+
+ + + + + +
10€
+
+ + diff --git a/src/tests/full.edit_structured.4 b/src/tests/full.edit_structured.4 new file mode 100644 index 0000000..2f84cfa --- /dev/null +++ b/src/tests/full.edit_structured.4 @@ -0,0 +1,351 @@ + + + + + + + + + +
+ +prev +next + + + + +switch to raw +· +balance after +· +in ledger + +
+
+ block-wide errors: + date < previous date + – and: +
+
+ + + + +| + +from + +to + + +
+ +
+
Gap:
+ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
accountbeforediffafter
bar: + + + + + + + + + +
1€
0USD
+
+ + + + + + + + + +
-10€
-1USD
+
+ + + + + + + + + +
-9€
-1USD
+
bar:x: + + + + + +
0€
+
+ + + + + +
-10€
+
+ + + + + +
-10€
+
bar:x:y + + + + + +
0€
+
+ + + + + +
-10€
+
+ + + + + +
-10€
+
bar:z + + + + + +
0USD
+
+ + + + + +
-1USD
+
+ + + + + +
-1USD
+
foo: + + + + + + + + + +
10€
0USD
+
+ + + + + + + + + +
10€
1USD
+
+ + + + + + + + + +
20€
1USD
+
foo:x + + + + + + + + + +
0€
0USD
+
+ + + + + + + + + +
10€
1USD
+
+ + + + + + + + + +
10€
1USD
+
+ +