# This patch was submitted upstream to: https://bugs.gnucash.org/show_bug.cgi?id=797008. From c20d74bebca516d0e391724202aad511967fe109 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 2 Jan 2019 14:46:28 -0500 Subject: [PATCH] tests: Fix a test failure in test-transaction.scm. With the New Year upon us, a test which was hard-coded to use 2018 now failed. Fixes issue #797008 (see: https://bugs.gnucash.org/show_bug.cgi?id=797008). * gnucash/report/standard-reports/test/test-transaction.scm: (trep-tests): Use the current year in the test string instead of a static one. --- gnucash/report/standard-reports/test/test-transaction.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnucash/report/standard-reports/test/test-transaction.scm b/gnucash/report/standard-reports/test/test-transaction.scm index 755aba298..ae3fbd5c1 100644 --- a/gnucash/report/sta
aboutsummaryrefslogtreecommitdiff
"Debit (USD)" "Credit (USD)" "Debit" "Credit") @@ -652,7 +654,8 @@ (list "Grand Total" "$2,280.00" "$2,280.00") (get-row-col sxml -1 #f)) (test-equal "dual amount column, first transaction correct" - (list "01/03/18" "$103 income" "Root.Asset.Bank" "$103.00" "$103.00") + (list (string-append "01/03/" current-year) "$103 income" + "Root.Asset.Bank" "$103.00" "$103.00") (get-row-col sxml 1 #f))) ) -- 2.19.0