gnucash/libgnucash/scm
Christopher Lam d9623b0ad1 [test-utilities] initial commit
Add tests for libgnucash/scm/utilities.scm functions

- tests for list<->vec
- tests for gnc:substring-replace
- tests for gnc:substring-replace-from-to

  The latter confirms that the comment before the function definition
  is *incorrect* - it describes that substring-replace-from-to will
  start from the 2nd substring for the first substitution, and
  performs 2 substitutions. However the comment illustrates only 1
  substitution. The test suite performs the test according to code
  behaviour, rather than the comment. This issue is moot in practice
  because the end-after is always called with negative in the code
  base.

  original comment:

;;  gnc:substring-replace-from-to
;;  same as gnc:substring-replace extended by:
;;  start: from which occurrence onwards the replacement shall start
;;  end-after: max. number times the replacement should executed
;;
;;  Example: (gnc:substring-replace-from-to "foobarfoobarfoobar" "bar" "xyz" 2 2)
;;           returns "foobarfooxyzfoobar".
2019-04-23 18:52:36 +08:00
..
test [test-utilities] initial commit 2019-04-23 18:52:36 +08:00
CMakeLists.txt Bug 794617 - Can't compile with -DWITH_GNUCASH=NO due to scm-gnome-utils 2018-06-07 14:17:49 -07:00
price-quotes.scm I18N: Review of price-quotes.scm 2019-04-08 17:37:33 +02:00
utilities.scm [utilities] add supporting functions for guile-json use 2019-04-04 19:44:00 +08:00