gnucash maint: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Thu Jun 7 13:15:35 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/b431b648 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/b787baaa (commit)
	from  https://github.com/Gnucash/gnucash/commit/0b10b4b9 (commit)



commit b431b648a91ca03a1891b8562c8c011a8b8df423
Merge: 0b10b4b b787baa
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Jun 7 10:10:31 2018 -0700

    Merge Chris Lam's branch 'maint-test-transaction-amendments' into maint.


commit b787baaa8f0a763cd6162e5cb9fa945e8cc36784
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Jun 7 19:12:07 2018 +0800

    [test-transaction] modify test to be acceptable to MacOS
    
    This modification will convert string to number (using a customized
    function defined in same file) to obviate need to encode #pound sign
    in scheme.

diff --git a/gnucash/report/standard-reports/test/test-transaction.scm b/gnucash/report/standard-reports/test/test-transaction.scm
index 2abd884..7e4d0c7 100644
--- a/gnucash/report/standard-reports/test/test-transaction.scm
+++ b/gnucash/report/standard-reports/test/test-transaction.scm
@@ -172,7 +172,7 @@
 
     ;; Here we set foreign currencies
 
-    (gnc-commodity-set-user-symbol foreign2 "£")
+    (gnc-commodity-set-user-symbol foreign2 "#")
 
     (with-account
      gbp-bank
@@ -250,9 +250,9 @@
     ;; run in modern times, otherwise these transactions will be mixed
     ;; up with the old transactions above. The year end net bank balance
     ;; should be (* 12 (+ 103 109 -22)) = $2280.
-    ;; there will also be a £51 income monthly, tested at end of file
+    ;; there will also be a #51 income monthly, tested at end of file
     (for-each (lambda (m)
-                (env-transfer env 08 (1+ m) YEAR gbp-income gbp-bank 51 #:description "£51 income")
+                (env-transfer env 08 (1+ m) YEAR gbp-income gbp-bank 51 #:description "#51 income")
                 (env-transfer env 03 (1+ m) YEAR income bank  103 #:description "$103 income")
                 (env-transfer env 15 (1+ m) YEAR bank expense  22 #:description "$22 expense")
                 (env-transfer env 09 (1+ m) YEAR income bank  109 #:description "$109 income"))
@@ -585,7 +585,7 @@
         (test-equal "Other Account Name and Code displayed"
           (list "01-GBP GBP Bank")
           (get-row-col sxml 7 6))
-        (test-equal "GBP original currency totals = £4"
+        (test-equal "GBP original currency totals = #4"
           (list 4.0)
           (map str->num (get-row-col sxml 5 10)))
         (test-assert "USD original currency totals = $5"
@@ -808,8 +808,8 @@
                 "$190.00" "$190.00" "$190.00" "$190.00" "$190.00" "$190.00" "$2,280.00" "$190.00")
           (get-row-col sxml 1 #f))
         (test-equal "summary gbp bank-row is correct"
-          (list "GBP Bank" "£51.00" "£51.00" "£51.00" "£51.00" "£51.00" "£51.00"
-                "£51.00" "£51.00" "£51.00" "£51.00" "£51.00" "£51.00" "£612.00" "£51.00")
+          (list "GBP Bank" "#51.00" "#51.00" "#51.00" "#51.00" "#51.00" "#51.00"
+                "#51.00" "#51.00" "#51.00" "#51.00" "#51.00" "#51.00" "#612.00" "#51.00")
           (get-row-col sxml 2 #f))
         (test-equal "summary expense-row is correct"
           (list "Expenses" "$22.00" "$22.00" "$22.00" "$22.00" "$22.00" "$22.00"
@@ -821,11 +821,11 @@
                 "-$212.00" "-$2,544.00" "-$212.00")
           (get-row-col sxml 4 #f))
         (test-equal "summary gbp income-row is correct"
-          (list "Income-GBP" "-£51.00" "-£51.00" "-£51.00" "-£51.00" "-£51.00" "-£51.00"
-                "-£51.00" "-£51.00" "-£51.00" "-£51.00" "-£51.00" "-£51.00" "-£612.00" "-£51.00")
+          (list "Income-GBP" "-#51.00" "-#51.00" "-#51.00" "-#51.00" "-#51.00" "-#51.00"
+                "-#51.00" "-#51.00" "-#51.00" "-#51.00" "-#51.00" "-#51.00" "-#612.00" "-#51.00")
           (get-row-col sxml 5 #f))
         (test-equal "summary gbp total-row is correct"
-          (list "Grand Total" "£0.00" "£0.00")
+          (list "Grand Total" "#0.00" "#0.00")
           (get-row-col sxml 6 #f))
         (test-equal "summary total-row is correct"
           (list "$0.00" "$0.00")



Summary of changes:
 .../report/standard-reports/test/test-transaction.scm  | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)



More information about the gnucash-changes mailing list