gnucash/src/engine/test
John Ralls 369171ceff Remove date exceptions.
GncDate can now handle all dates between 1 Jan 0001 and 31 Dec 9999
(proleptic Gregorian).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22614 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-01 22:43:44 +00:00
..
Makefile.am Add basic budget unit tests 2012-07-01 18:45:51 +00:00
README Dissolve the business-core module, by integrating its remaining bits in 2011-11-21 10:40:17 +00:00
test-account-object.c Correct -Wunused warnings 2012-05-26 23:47:34 +00:00
test-address.c Refactor safe_strcmp into the glib standard g_strcmp0 2012-08-07 17:24:55 +00:00
test-business.c Refactor safe_strcmp into the glib standard g_strcmp0 2012-08-07 17:24:55 +00:00
test-commodities.c Refactor safe_strcmp into the glib standard g_strcmp0 2012-08-07 17:24:55 +00:00
test-create-account David Hampton's make distcheck patch. 2002-02-28 08:31:32 +00:00
test-create-account.scm [Testing] Set GNC_BUILDDIR and GNC_UNINSTALLED where needed 2011-12-02 22:00:18 +00:00
test-customer.c Refactor safe_strcmp into the glib standard g_strcmp0 2012-08-07 17:24:55 +00:00
test-date.c Remove date exceptions. 2012-12-01 22:43:44 +00:00
test-employee.c Refactor safe_strcmp into the glib standard g_strcmp0 2012-08-07 17:24:55 +00:00
test-engine.c Add basic budget unit tests 2012-07-01 18:45:51 +00:00
test-group-vs-book.c Re-indentation of source code, next batch. 2010-02-18 05:31:54 +00:00
test-guid.c Correct -Wunused warnings 2012-05-26 23:47:34 +00:00
test-job.c Refactor safe_strcmp into the glib standard g_strcmp0 2012-08-07 17:24:55 +00:00
test-link.c Re-indentation of source code, next batch. 2010-02-18 05:31:54 +00:00
test-load-engine.c Re-indentation of source code, next batch. 2010-02-18 05:31:54 +00:00
test-lots.c Decrease number of test iterations in old engine tests - they take just way too long otherwise. 2010-10-02 14:59:05 +00:00
test-numeric.c Re-indentation of source code, next batch. 2010-02-18 05:31:54 +00:00
test-object.c Refactor safe_strcmp into the glib standard g_strcmp0 2012-08-07 17:24:55 +00:00
test-query.c Replace more obsolete #define'd function names by their current names. 2010-12-14 20:22:48 +00:00
test-querynew.c Refactor safe_strcmp into the glib standard g_strcmp0 2012-08-07 17:24:55 +00:00
test-recurrence.c Fix some static warnings and errors as a result of Eclipse's static code 2011-12-08 17:11:21 +00:00
test-scm-query-import Integration of the new Query subsystem, to replace the old Query 2002-06-05 21:59:35 +00:00
test-scm-query-import.scm [Testing] Set GNC_BUILDDIR and GNC_UNINSTALLED where needed 2011-12-02 22:00:18 +00:00
test-scm-query.c Revert "[Testing] Make engine/test-scm-query work." 2011-12-05 00:42:51 +00:00
test-split-vs-account.c Re-indentation of source code, next batch. 2010-02-18 05:31:54 +00:00
test-transaction-reversal.c Correct -Wunused warnings 2012-05-26 23:47:34 +00:00
test-transaction-voiding.c Re-indentation of source code, next batch. 2010-02-18 05:31:54 +00:00
test-vendor.c Refactor safe_strcmp into the glib standard g_strcmp0 2012-08-07 17:24:55 +00:00
utest-Account.c Correct -Wunused warnings 2012-05-26 23:47:34 +00:00
utest-Budget.c Add basic budget unit tests 2012-07-01 18:45:51 +00:00
utest-Invoice.c Correct -Wunused warnings 2012-05-26 23:47:34 +00:00
utest-Split.c Correct -Wunused warnings 2012-05-26 23:47:34 +00:00

This directory contains unit test cases to exercise basic 
GnuCash engine functions.

To run the tests, just do 'make check'


Notes on test of dirty/clean flag:
---------------------------------
This test is currently performed in part in
test-customer
test-employee
test-job
test-vendor

The test cases will check if the dirty flag is unset on creation
of an object and if the dirty flag is set when the object
is modified.

There used to be a test also to check if the dirty flag is
cleared again upon committing the change.
This test has been removed, because it can only be successful
if a backend is set up. That's because the 'dirty' flag is
supposed to be cleared by the backend only.

We are in the engine test code however. In here it's not possible
to load a backend without creating some circular dependencies
between gnucash modules.

Just for completeness, this was said on the dirty flag tests before
these test cases got moved to the engine:
"An object cannot be marked 'clean' unless it has actually
been saved to a file or sql db.  (Or, in the case of the file 
backend, the 'dirtiness' of the data has been duly noted, and
will be taken care of for the next file save. 
Until its saved, it lives in perpetual dirtiness.  Thus, the 
test cases need to specify a backend, then do the commit, 
then test the dirty flag.

Actually, the use of the dirty flag in gnucash is, at this time,
mildly ambiguous, and its semantics are not clearly defined."