diff options
author | Craig Earls <enderw88@gmail.com> | 2014-04-19 21:56:14 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-04-19 21:56:14 -0700 |
commit | fd18f58392833d6e1b1c06a7700f8afc37711c87 (patch) | |
tree | 895daa013b63caeed47bd944daba89003e9b34ce /test | |
parent | 7faaeb301fe524422c694e54fa36248ffedfa9b8 (diff) | |
parent | a0c5addbbdaf472d26ae25c86ff826e509b3ee17 (diff) | |
download | fork-ledger-fd18f58392833d6e1b1c06a7700f8afc37711c87.tar.gz fork-ledger-fd18f58392833d6e1b1c06a7700f8afc37711c87.tar.bz2 fork-ledger-fd18f58392833d6e1b1c06a7700f8afc37711c87.zip |
Merge commit 'a0c5addbbdaf472d26ae25c86ff826e509b3ee17'
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 23 | ||||
-rw-r--r-- | test/baseline/feat-balance_assert_split.test | 60 |
2 files changed, 72 insertions, 11 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 796ef0a2..97da8b24 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -38,16 +38,17 @@ add_subdirectory(manual) add_subdirectory(baseline) add_subdirectory(regress) -if(PYTHONINTERP_FOUND) - set(_class DocTests) - file(GLOB ${_class}_TESTS ${PROJECT_SOURCE_DIR}/doc/*.texi) - foreach(TestFile ${${_class}_TESTS}) - get_filename_component(TestFile_Name ${TestFile} NAME_WE) - add_test(${_class}Test_${TestFile_Name} - ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/DocTests.py - --ledger ${LEDGER_LOCATION} --file ${TestFile}) - set_target_properties(check PROPERTIES DEPENDS ${_class}Test_${TestFile_Name}) - endforeach() -endif() +# jww (2014-04-17): This is temporary until we find a fix. +#if(PYTHONINTERP_FOUND) +# set(_class DocTests) +# file(GLOB ${_class}_TESTS ${PROJECT_SOURCE_DIR}/doc/*.texi) +# foreach(TestFile ${${_class}_TESTS}) +# get_filename_component(TestFile_Name ${TestFile} NAME_WE) +# add_test(${_class}Test_${TestFile_Name} +# ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/DocTests.py +# --ledger ${LEDGER_LOCATION} --file ${TestFile}) +# set_target_properties(check PROPERTIES DEPENDS ${_class}Test_${TestFile_Name}) +# endforeach() +#endif() ### CMakeLists.txt ends here diff --git a/test/baseline/feat-balance_assert_split.test b/test/baseline/feat-balance_assert_split.test new file mode 100644 index 00000000..2d9cce9f --- /dev/null +++ b/test/baseline/feat-balance_assert_split.test @@ -0,0 +1,60 @@ +;; a.dat + +2012-01-01 Test + Expenses:Unknown $100.00 + Liabilities:MasterCard + +2012-01-02 Test + Expenses:Unknown $100.00 + Liabilities:MasterCard + +2012-01-03 Test + Expenses:Unknown $100.00 + Liabilities:MasterCard + +2012-01-04 Test + ; UUID: foo + Liabilities:MasterCard $150.00 = $-300 + <Assets:Checking> + +2012-01-04 Test + ; UUID: bar + Liabilities:MasterCard $150.00 = $0 + <Assets:Checking> + +2012-01-04 Test + ; UUID: baz + Liabilities:MasterCard $150.00 = $0 + <Assets:Checking> + +;; b.dat + +2012-01-01 Test + Assets:Checking $150.00 + Income + +2012-01-02 Test + Assets:Checking $150.00 + Income + +2012-01-03 Test + Assets:Checking $150.00 + Income + +2012-01-04 Test + ; UUID: foo + Liabilities:MasterCard $150.00 + Assets:Checking $-150.00 = $300.00 + +2012-01-04 Test + ; UUID: bar + Liabilities:MasterCard $150.00 + Assets:Checking $-150.00 = $150.00 + +test balance + $300.00 Expenses:Unknown + $-450.00 Income + $150.00 Liabilities:MasterCard +-------------------- + 0 +end test |