ethz-asl / curves

A library of curves for estimation.
BSD 3-Clause "New" or "Revised" License
74 stars 28 forks source link

Add the possibility to run the same unit tests for different curve representations #51

Closed rdube closed 7 years ago

mikebosse commented 9 years ago

there should be templated unit tests where you can make a test that is called for each template type in a list. perhaps @HannesSommer or @simonlynen can elaborate

simonlynen commented 9 years ago

https://code.google.com/p/googletest/wiki/AdvancedGuide#Typed_Tests

HannesSommer commented 9 years ago

Yes that works pretty good. You can find examples in our code as well.

E.g. https://github.com/ethz-asl/aslam_optimizer/blob/master/aslam_backend_expressions/test/FixedPointNumberTest.cpp

HannesSommer commented 9 years ago

We should really have this one example repository, where one can find tiny examples of our current best practice. That would be great as the canonic place to look for examples.

rdube commented 9 years ago

Thanks for the links. Yes definitely!