product: raise an exception if the dict are different

Fixes #132.

* python/spot.py (translate): Allow changing the dictionary.
* tests/python/prodexpt.py: New file.
* tests/Makefile.am: Add it.
* spot/twa/twaproduct.cc, spot/twaalgos/product.cc: Add them.
* NEWS: Mention the change.
This commit is contained in:
Alexandre Duret-Lutz 2016-01-23 21:24:53 +01:00
parent 78fd7beaaf
commit c4e9083f4e
6 changed files with 55 additions and 6 deletions

5
NEWS
View file

@ -1,5 +1,10 @@
New in spot 1.99.7a (not yet released)
Library:
* Building products with different dictionaries now raise an
exception instead of using an assertion that could be disabled.
Documentation:
* There is a new page giving informal illustrations (and extra