gnucash maint: [test-libgnucash-scm-utilities] amend info to explain comment fix
Christopher Lam
clam at code.gnucash.org
Wed Apr 24 23:21:09 EDT 2019
Updated via https://github.com/Gnucash/gnucash/commit/0cf49f12 (commit)
from https://github.com/Gnucash/gnucash/commit/7d15e6e4 (commit)
commit 0cf49f124402f1748fa47f9e8414a00bf1472e45
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Thu Apr 25 11:20:11 2019 +0800
[test-libgnucash-scm-utilities] amend info to explain comment fix
diff --git a/libgnucash/scm/test/test-libgnucash-scm-utilities.scm b/libgnucash/scm/test/test-libgnucash-scm-utilities.scm
index cd426c5db..b5db94b24 100644
--- a/libgnucash/scm/test/test-libgnucash-scm-utilities.scm
+++ b/libgnucash/scm/test/test-libgnucash-scm-utilities.scm
@@ -31,8 +31,8 @@
"fooxyzfooxyz"
(gnc:substring-replace "foobarfoobar" "bar" "xyz"))
- ;; note the following 2 tests show the code was not coded according
- ;; to the example in the comments.
+ ;; note the following 2 tests illustrate code behaviour: start from
+ ;; 2nd matched substring, and perform either 2 or 1 substitution.
(test-equal "gnc:substring-replace-from-to ... ... 2 2"
"foobarfooxyzfooxyz"
(gnc:substring-replace-from-to "foobarfoobarfoobar" "bar" "xyz" 2 2))
Summary of changes:
libgnucash/scm/test/test-libgnucash-scm-utilities.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list