Skip to content

Commit

Permalink
fix export tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hrj committed May 12, 2019
1 parent 9c1b6d0 commit 274bc93
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions base/src/test/scala/co/uproot/abandon/ProcessorTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ProcessorTest extends FlatSpec with Matchers with Inside {
case Seq(LedgerExportData(date, ledgerEntries)) =>
date should be(Date(2013, 1, 1))
inside(ledgerEntries) {
case Seq(LedgerExportEntry(acc1, expr1), LedgerExportEntry(acc2, expr2)) =>
case Seq(LedgerExportEntry(acc1, expr1, None), LedgerExportEntry(acc2, expr2, None)) =>
acc1 should be (cashAccount)
acc2 should be (expenseAccount)
expr1 should be (240)
Expand Down Expand Up @@ -61,7 +61,7 @@ class ProcessorTest extends FlatSpec with Matchers with Inside {
case Seq(LedgerExportData(date, ledgerEntries)) =>
date should be(Date(2013, 1, 1))
inside(ledgerEntries) {
case Seq(LedgerExportEntry(acc1, expr1), LedgerExportEntry(acc2, expr2)) =>
case Seq(LedgerExportEntry(acc1, expr1, None), LedgerExportEntry(acc2, expr2, None)) =>
acc1 should be (cashAccount)
acc2 should be (expenseAccount)
expr1 should be (240)
Expand Down Expand Up @@ -91,7 +91,7 @@ class ProcessorTest extends FlatSpec with Matchers with Inside {
case Seq(LedgerExportData(date, ledgerEntries)) =>
date should be(Date(2013, 1, 1))
inside(ledgerEntries) {
case Seq(LedgerExportEntry(acc1, expr1), LedgerExportEntry(acc2, expr2), LedgerExportEntry(acc3, expr3)) =>
case Seq(LedgerExportEntry(acc1, expr1, None), LedgerExportEntry(acc2, expr2, None), LedgerExportEntry(acc3, expr3, None)) =>
acc1 should be (bankAccount)
acc2 should be (cashAccount)
acc3 should be (expenseAccount)
Expand Down Expand Up @@ -143,7 +143,7 @@ class ProcessorTest extends FlatSpec with Matchers with Inside {
case Seq(LedgerExportData(date, ledgerEntries), LedgerExportData(date1, ledgerEntries1)) =>
date should be(Date(2013, 1, 1))
inside(ledgerEntries) {
case Seq(LedgerExportEntry(acc1, expr1), LedgerExportEntry(acc2, expr2), LedgerExportEntry(acc3, expr3), LedgerExportEntry(acc4, expr4)) =>
case Seq(LedgerExportEntry(acc1, expr1, None), LedgerExportEntry(acc2, expr2, None), LedgerExportEntry(acc3, expr3, None), LedgerExportEntry(acc4, expr4, None)) =>
acc1 should be (assetsAccount)
acc2 should be (equityAccount)
acc3 should be (expenseAccount)
Expand All @@ -155,7 +155,7 @@ class ProcessorTest extends FlatSpec with Matchers with Inside {
}
date1 should be(Date(2013, 1, 1))
inside(ledgerEntries1) {
case Seq(LedgerExportEntry(acc1, expr1), LedgerExportEntry(acc2, expr2), LedgerExportEntry(acc3, expr3)) =>
case Seq(LedgerExportEntry(acc1, expr1, None), LedgerExportEntry(acc2, expr2, None), LedgerExportEntry(acc3, expr3, Some(" result: 13000"))) =>
acc1 should be (expenseAccount)
acc2 should be (incomeAccount)
acc3 should be (equityAccount)
Expand Down Expand Up @@ -274,7 +274,7 @@ class ProcessorTest extends FlatSpec with Matchers with Inside {
case Seq(LedgerExportData(date, ledgerEntries)) =>
date should be(Date(2013, 1, 1))
inside(ledgerEntries) {
case Seq(LedgerExportEntry(acc1, expr1), LedgerExportEntry(acc2, expr2), LedgerExportEntry(acc3, expr3)) =>
case Seq(LedgerExportEntry(acc1, expr1, None), LedgerExportEntry(acc2, expr2, None), LedgerExportEntry(acc3, expr3, None)) =>
acc1 should be (bankAccount)
acc2 should be (equityAccount)
acc3 should be (incomeAccount)
Expand Down

0 comments on commit 274bc93

Please sign in to comment.