lib/**/*
, because it would include cmake files as well)basic_spec.rb
files are not added to the gem.lib/symengine/CMakeLists.txt
to ext/symengine/
expand2d
in sympy/symengine#470
-DNDEBUG
? Can you post the full output of cmake command
NDEBUG
flag controls the compilation of assert()
statements, I suggested Sumith to investigate if it would make sense to enable it for Sympy in release mode
gem.test_files
lib/symengine/CMakeLists.txt
to ext/symengine
, will I need to change this line too?symengine
, we have the CMake variable SYMENGINE_ASSERT
which uses asserts if turned on
asserts
Piranha
uses Boost
-DNDEBUG
only for the symengine library.
-DNDEBUG
can be passed only to the library
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG")
gmp
has ASSERT
. ginac has GINAC_ASSERT
etc. MySQL has DBUG_ASSERT
piranha
change it's macro piranha_assert
to use a define other than NDEBUG
piranha_assert
lib/symengine/CMakeLists.txt
to ext/symengine
, you will need to change that line. Also, you will need to specify the install directory of the library symengine.so
using set_target_properties
piranha_assert
is just a wrapper that adds a few extra info to a standard assert
(like line number and file, IIRC)
NDEBUG
?
piranha_throw
... turns out it's just a standard assert
piranha_assert
, how about a flag for that?
NDEBUG
macro
NDEBUG
then I think we should add it to symengine
if SYMENGINE_ASSERT
is turned off.
assert
should be used for detecting logical errors in a program, I am not keen on using it in unit testing
assert
s, but nobody really looked into it. sympy/symengine#282
googletest
. Will be nice to know a few other names.
assert
that we are currently using
Catch
is a simple header that we can include in the project tree itself.
Catch
seems simple
ASSERT
and I am pretty confident they are not the same as the C ones
assert
statement in the language: https://docs.python.org/2/reference/simple_stmts.html#grammar-token-assert_stmt
Pyranha
Catch
Catch
has so much in a single header that it is difficult to believe that this is a testing framework.
Catch
can be added to SymEngine. Let me try it out.
Catch
Catch
Boost
and Google
, but I would like your opinion
Catch
shouldn't take much time too.
NDEBUG
compiler flags?
assert
.
assert
catch.hpp
?