opt-auto-match.test 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. 2012-01-01 * Opening balance
  2. Assets:Cash 100.00 EUR
  3. Equity:Opening Balance
  4. 2012-01-02 * Food
  5. Expenses:Food 25.00 EUR
  6. Assets:Cash -25.00 EUR
  7. 2012-01-03 * Phone
  8. Expenses:Phone 10.00 EUR
  9. Assets:Cash -10.00 EUR
  10. 2012-01-04 * Dining
  11. Expenses:Food 20.00 EUR
  12. Liabilities:CC -20.00 EUR
  13. test --input-date-format "%Y-%m-%d" convert test/baseline/opt-auto-match.dat
  14. 2012/03/01 * Food
  15. Expenses:Unknown 10
  16. Equity:Unknown
  17. 2012/03/02 * Phone
  18. Expenses:Unknown 10
  19. Equity:Unknown
  20. 2012/03/02 * Dining
  21. Expenses:Unknown 10
  22. Equity:Unknown
  23. end test
  24. test --input-date-format "%Y-%m-%d" --auto-match convert test/baseline/opt-auto-match.dat
  25. 2012/03/01 * Food
  26. Expenses:Food 10
  27. Equity:Unknown
  28. 2012/03/02 * Phone
  29. Expenses:Phone 10
  30. Equity:Unknown
  31. 2012/03/02 * Dining
  32. Expenses:Food 10
  33. Equity:Unknown
  34. end test
  35. test --input-date-format "%Y-%m-%d" --account Assets:Bank convert test/baseline/opt-auto-match.dat
  36. 2012/03/01 * Food
  37. Expenses:Unknown 10
  38. Assets:Bank
  39. 2012/03/02 * Phone
  40. Expenses:Unknown 10
  41. Assets:Bank
  42. 2012/03/02 * Dining
  43. Expenses:Unknown 10
  44. Assets:Bank
  45. end test
  46. test --input-date-format "%Y-%m-%d" --auto-match --account Assets:Bank convert test/baseline/opt-auto-match.dat
  47. 2012/03/01 * Food
  48. Expenses:Food 10
  49. Assets:Bank
  50. 2012/03/02 * Phone
  51. Expenses:Phone 10
  52. Assets:Bank
  53. 2012/03/02 * Dining
  54. Expenses:Food 10
  55. Assets:Bank
  56. end test