Skip to content

Commit

Permalink
Fix multiline string indent
Browse files Browse the repository at this point in the history
  • Loading branch information
chvp committed Dec 2, 2023
1 parent 1e38c00 commit 6194c92
Showing 1 changed file with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class TransactionParserTest {
val result =
extractTransactions(
"""
|2023-08-31 * Payee | Note
| assets € -5.00
| expenses € 5.00
|2023-08-31 * Payee | Note
| assets € -5.00
| expenses € 5.00
""".trimMargin().lines(),
)

Expand All @@ -35,9 +35,9 @@ class TransactionParserTest {
val result =
extractTransactions(
"""
|2023-08-31 * Payee
| assets € -5.00
| expenses € 5.00
|2023-08-31 * Payee
| assets € -5.00
| expenses € 5.00
""".trimMargin().lines(),
)

Expand All @@ -60,13 +60,13 @@ class TransactionParserTest {
val transactions =
extractTransactions(
"""
|2023-08-31 * Payee | Note
| assets € -5.00
| expenses € 5.00
|2023-09-01 * Payee 2 | Note 2
|${'\t'}assets € -10.00
|${'\t'}expenses:thing ${'\t'} € 6.00
|${'\t'}expenses:thing 2 € 4.00
|2023-08-31 * Payee | Note
| assets € -5.00
| expenses € 5.00
|2023-09-01 * Payee 2 | Note 2
|${'\t'}assets € -10.00
|${'\t'}expenses:thing ${'\t'} € 6.00
|${'\t'}expenses:thing 2 € 4.00
""".trimMargin().lines(),
)

Expand Down Expand Up @@ -99,10 +99,10 @@ class TransactionParserTest {
val transactions =
extractTransactions(
"""
|include other.journal
|2023-08-31 * Payee | Note
| assets € -5.00
| expenses € 5.00
|include other.journal
|2023-08-31 * Payee | Note
| assets € -5.00
| expenses € 5.00
""".trimMargin().lines(),
)

Expand All @@ -114,9 +114,9 @@ class TransactionParserTest {
val transactions =
extractTransactions(
"""
|2023-09-05 Shop | Groceries
| assets:checking -2.19 EUR
| expenses:groceries 2.19 EUR
|2023-09-05 Shop | Groceries
| assets:checking -2.19 EUR
| expenses:groceries 2.19 EUR
""".trimMargin().lines(),
)

Expand All @@ -129,9 +129,9 @@ class TransactionParserTest {
val transactions =
extractTransactions(
"""
|2023-09-08=2023-09-09 * Shop | Groceries
| assets:checking -2.19 EUR
| expenses:groceries 2.19 EUR
|2023-09-08=2023-09-09 * Shop | Groceries
| assets:checking -2.19 EUR
| expenses:groceries 2.19 EUR
""".trimMargin().lines(),
)

Expand Down

0 comments on commit 6194c92

Please sign in to comment.