Lew Rossman
cc22eefeae
Fixed compilation errors
2019-04-18 07:11:17 -04:00
Lew Rossman
1583bea154
Return object index from EN_addnode and EN_addlink (issue #432 )
...
Adds an output argument to EN_addnode and EN_addlink that returns the index of the newly added object.
Also refactors the validity check on object ID names.
2019-04-18 07:00:07 -04:00
Michael Tryby
ce12b2297e
Updating unit tests
2019-04-12 15:22:38 -04:00
Michael Tryby
9c4665a661
Fixes memory leak in EN_addnode() ( #455 )
...
* Fixing memory leak in EN_addnode()
* Separating test_net_builder from test_toolkit
Making test_net_builder a standalone test
* Removing BOOST_TEST_MAIN
* Work in progress
2019-04-11 18:04:20 -04:00
Michael Tryby
927cf9770e
merging upstream dev
2019-04-03 16:40:58 -04:00
Michael Tryby
84bf6f98d0
Cleaning up include statements adding crtdbg.h
2019-04-03 15:55:23 -04:00
Michael Tryby
efd86c3ddd
Fixing memory problems with test_toolkit
...
Fixes memory leaks and some minor refactoring.
2019-04-03 14:05:41 -04:00
Lew Rossman
af825005d4
Fixed failure to update test_net_builder.cpp
2019-04-03 10:43:19 -04:00
Michael Tryby
48facd89d0
Fixing test build on gcc
2019-03-21 18:08:05 -04:00
Michael Tryby
0c56df4041
Reorganizing tests
...
Adding test_net_builder and test_reent to cmake build script.
2019-03-21 13:44:31 -04:00
Michael Tryby
5687c63548
Reorganizing unit tests
...
Unit tests for the toolkit are consolidated into one test module with a separate test suite for related API functions.
2019-03-21 13:11:10 -04:00
Michael Tryby
260bdef2cf
Update test_net_builder.cpp
...
Removing strings and adding test fixture
2019-03-19 14:10:29 -04:00
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
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
Lew Rossman
24d90a530d
Replaced EN_ProjectHandle with EN_Project in unit tests
2018-11-27 15:16:12 -05:00
Elad Salomons
dad11cce8d
Add option to get\set default demand pattern
...
also updates the net builder test
2018-09-15 14:22:20 +03:00
Michael Tryby
bec729a669
Fixing compiler warnings
2018-09-13 10:48:55 -04:00
Elad Salomons
735811dd60
Revert "Fixing char casting in test file"
...
This reverts commit 8d5d20f542 .
2018-09-13 16:17:06 +03:00
Elad Salomons
8d5d20f542
Fixing char casting in test file
2018-09-13 15:33:12 +03:00
Elad Salomons
7cf8d53356
Explicitly set demant patterns for junctions
...
This is since there is currently no way to set the default demand pattern. Should be fixed in #280 and then the test can be changed.
2018-09-06 12:07:14 +03:00
Elad Salomons
102ac90a98
Adding last test
2018-09-05 13:56:59 +03:00
Elad Salomons
d46dd1a182
Added documentation
2018-09-05 13:56:18 +03:00
Elad Salomons
ad3b26d727
Fail the test...
2018-09-05 09:37:21 +03:00
Elad Salomons
8687af337f
Initial net builder test
2018-09-05 09:33:21 +03:00