Commit Graph

216 Commits

Author SHA1 Message Date
Michael Tryby
29cfe43e5a Cleaning up tests
Fixing memory leak associated with using string objects to pass filepath arguments to toolkit
2019-03-19 13:27:07 -04:00
Michael Tryby
ed9a89763b Reorganizing tests to improve build performance 2019-03-18 16:06:21 -04:00
Lew Rossman
18f65eb8b0 Replace fixed-sized comment strings with dynamic strings 2019-03-17 19:54:51 -04:00
Michael Tryby
e70ce35e60 Cleaning up tests 2019-03-15 17:25:59 -04:00
Michael Tryby
d61a1aa786 Minor cleanup 2019-03-12 15:07:52 -04:00
Michael Tryby
32091830c6 Adding test for EN_getnodevalue 2019-03-12 13:35:24 -04:00
Michael Tryby
516ae498c3 Changing DLLEXPORT to EXPORT_OUT_API and creating epanet_output_enums.h 2019-03-11 17:11:47 -04:00
Michael Tryby
0b76cfb2df Adding test for EN_getnodevalue 2019-03-08 18:15:47 -05:00
Michael Tryby
9cff84582f Adding test for output file access prior to project close 2019-03-08 14:09:53 -05:00
Michael Tryby
73a6c1c847 Separating header for test_output 2019-03-01 17:55:45 -05:00
Michael Tryby
4bbf4e2b1e Adding include paths for tests build 2019-03-01 16:41:03 -05:00
Michael Tryby
b558234715 Moving fixture from output test to shared header. Fixing build 2019-03-01 16:05:03 -05:00
Michael Tryby
9f1b46b66a Fixing bug in gettimeparam 2019-03-01 15:16:27 -05:00
Michael Tryby
fca0df7a7b Moving custom testing predicates to shared header 2019-03-01 14:14:09 -05:00
Michael Tryby
b3a9701863 Adding test for getoption 2019-03-01 12:12:10 -05:00
Michael Tryby
612c898bd2 Renaming files, adding test for getstatistics 2019-03-01 11:45:39 -05:00
Michael Tryby
07dfac6198 Adding test for stepQ and proj save/reopen 2019-03-01 10:45:50 -05:00
Michael Tryby
41f810395a Fixing windows bulid 2019-02-28 17:49:40 -05:00
Michael Tryby
8640c860d2 Including pthread in build 2019-02-28 17:31:16 -05:00
Michael Tryby
0d30d2c6a8 including boost system in build 2019-02-28 17:12:22 -05:00
Michael Tryby
b248e181b3 Fixing bug 2019-02-28 16:58:33 -05:00
Michael Tryby
854168d88a Fixing bug 2019-02-28 16:51:20 -05:00
Michael Tryby
f8f95a4a6b Working on depends on decorator 2019-02-28 16:17:14 -05:00
Michael Tryby
a626ef941c Adding test for saveH 2019-02-28 11:35:12 -05:00
Michael Tryby
a4b2e53768 Adding tests for save and use hydraulics file 2019-02-28 11:14:15 -05:00
Michael Tryby
91120b8e71 Creating header for sharing fixtures, reorganizing tests 2019-02-28 10:12:25 -05:00
Michael Tryby
97ae763d1a Moving getcount in epanet.py and adding test 2019-02-28 09:17:16 -05:00
Michael Tryby
c7d533c6e4 Adding tests for gettitle and saveinpfile 2019-02-28 08:11:59 -05:00
Lew Rossman
fcbbbf9b2e Adds new pattern, curve and reporting functions to API 2019-02-20 12:43:32 -05:00
Lew Rossman
0cfa45e52e New updates to address compiler warnings (issue #370)
In addition to addressing compiler warnings, argument names in the API function prototypes were made more consistent and descriptive. Also additional Doxygen comments were added in preparation for producing a more thorough documentation of the API.
2019-01-19 16:56:19 -05:00
Lew Rossman
dd376692ad Floating pt. args in thread-safe API changed to doubles (Issue #365) 2019-01-09 15:14:10 -05:00
Lew Rossman
628fffc718 Added additional network building features (#367) 2019-01-02 10:33:58 -05:00
Michael Tryby
b0c7714d72 Keeping legacy api in epanet2.h epanet2.c and moving new api to epanet2_2.h epanet.c 2018-11-29 12:51:47 -05:00
Michael Tryby
333e87b026 Fixing tests 2018-11-29 12:20:13 -05:00
Michael Tryby
be2ca0a9f6 Implmenting Toolkit API versioning 2018-11-29 11:57:51 -05:00
Lew Rossman
d3a50dc490 Fixed refactoring bug in EN_setlinkid 2018-11-27 19:25:01 -05:00
Lew Rossman
b7a7cdc5ee Another update to test_setid.cpp 2018-11-27 16:45:13 -05:00
Lew Rossman
7c21b9c740 Update test_setid.cpp 2018-11-27 16:10:39 -05:00
Lew Rossman
24d90a530d Replaced EN_ProjectHandle with EN_Project in unit tests 2018-11-27 15:16:12 -05:00
Michael Tryby
b34c2ede81 Fixing build error on Travis 2018-11-16 14:06:29 -05:00
Michael Tryby
a4c9973d47 Adding test_save_reopen, minor refactoring. 2018-11-16 13:49:45 -05:00
Lew Rossman
6397a01363 Merge branch 'dev' into lrossman-dev 2018-11-07 23:19:16 -05:00
Lew Rossman
7443cea9d4 Fixes #172 (adjust controls when node/link is deleted) & EN_addrule added
- Deleting controls with node/link deletion made conditional.
- New EN_addrule function added along with a test file.
- Rule structures re-named & rules.c heavily modified.
- Issue with exceeding limit on number of temporary file names fixed.
- VB declaration and DEF files updated.
2018-11-07 23:09:47 -05:00
Michael Tryby
bfec6d608b Merging upstream dev 2018-11-05 10:12:24 -05:00
Michael Tryby
5f0ca809d7 Fixing bug in check_cdd 2018-11-05 10:05:30 -05:00
Lew Rossman
8514929622 Rewrite of EN_setlinktype function (#305)
- Complete rewrite of EN_setlinktype with link index argument passed by reference
- New unit test of EN_setlinktype added
- New function EN_setlinknodes added
2018-10-28 16:58:43 -04:00
Lew Rossman
f7346cef5f Modified re-factored version of hash.c 2018-10-19 10:36:39 -04:00
Lew Rossman
0041772aa0 Corrected test_setid unit test code 2018-10-18 10:16:47 -04:00
Lew Rossman
60a79de4a9 Fixed bug in hash.c
A bug in the delete function in hash.c was preventing the unit test of the new set ID API functions from running properly. In fixing this bug the entire hash table code was refactored to make it look more like the mempool service routines. Also the need to copy the string passed into the table's insert function was eliminated.
2018-10-18 10:03:09 -04:00
Lew Rossman
b3e84e0c42 Added unit test for ENsetnodeid and ENsetlinkid functions 2018-10-17 10:17:00 -04:00