Closed SpaceIm closed 2 years ago
Visual Studio fails in 2 more test files (2 are already disabled due to SEGFAULT).
dataframe_tester.cc
Testing gen_datetime_index() ...
Assertion failed: idx_vec1.size() == 768600, file C:\Repos\source\test\dataframe_tester.cc, line 2453
date_time_tester.cc
ERROR: 1547128583.123456987 != 1547146583.123456987
Assertion failed: dt1.long_time() == 1558538105123456789, file C:\Repos\source\test\date_time_tester.cc, line 832
@SpaceIm , There are two problems with these tests which is why I am not crazy about running them on all systems
@hosseinmoein understood, but original issue is still there: nothing is really tested in Release mode, which runs in CI. Try to change anything in assertion of the tests, tests are still successful.
That's a good point, although I always test stuff before merging into the master. Let me think about This. Maybe, I should separate all the algorithms that are nondeterministic into a separate program.
Current tests are based on assert, which is no-op in Release mode since NDEBUG definition is injected. CI files run the build in Release mode, so it doesn't really test the library, except that lib & program are able to compile, link and run.