python api unit tests for Op (#6785)
authoryoni206 <yoni206@users.noreply.github.com>
Tue, 22 Jun 2021 23:02:00 +0000 (16:02 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Jun 2021 23:02:00 +0000 (23:02 +0000)
commit39f90ff035a5e5024fe0cd11b965f1103d83e88d
tree8aebfebd2801837e5ee79b902820ede73c674b0c
parent40bee7cad0f2b6a5f9eac7e8fda2199e582e18d1
python api unit tests for Op (#6785)

Unit tests are translated from https://github.com/cvc5/cvc5/blob/master/test/unit/api/op_black.cpp
to python.

The only thing that is not faithfully translated is that the `cpp` tests expect the template function `[getIndices](https://github.com/cvc5/cvc5/blob/master/src/api/cpp/cvc5.h#L841)` to fail when an inappropriate type is given to it, while in the [`python` API](https://github.com/cvc5/cvc5/blob/90d19f7cdbaf41e389bdcbd099471f658a35ce98/src/api/python/cvc5.pxi#L343) this function is not a template, but just tries every supported type.

For example, the following line is not translated:
https://github.com/cvc5/cvc5/blob/90d19f7cdbaf41e389bdcbd099471f658a35ce98/test/unit/api/op_black.cpp#L206
src/api/python/cvc5.pxd
src/api/python/cvc5.pxi
test/python/CMakeLists.txt
test/python/unit/api/test_op.py [new file with mode: 0644]