Permalink
Browse files

fixed test issues

  • Loading branch information...
1 parent c73a326 commit 293853898077185313e4b68c4c245f18f13059ec @T-002 committed Sep 12, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 bin/helper/generate-bindings.py
  2. +0 −1 pycast/errors/baseerrormeasure.py
  3. +2 −1 pycast/tests/errormeasuretest.py
@@ -33,7 +33,7 @@
pycastC_optimization = pycastC.add_cpp_namespace("optimization")
## pycast.errors
-pycastC_errors.add_include('"pycast/errors/baseerrormeasure.h"')
+pycastC_errors.add_include('"pycast/errors/opt/baseerrormeasure.h"')
pycastC_errors_baseerrormeasure = pycastC_errors.add_cpp_namespace("baseerrormeasure")
pycastC_errors_baseerrormeasure_BaseErrorMeasure = pycastC_errors_baseerrormeasure.add_cpp_namespace("BaseErrorMeasure")
@@ -253,7 +253,6 @@ def confidence_interval(self, confidenceLevel):
overestimation = 0.0
underestimation = 0.0
- raise Exception
if overIdx >= 0:
overestimation = overestimations[overIdx]
else:
@@ -527,4 +527,5 @@ def confidence_interval_test(self):
else:
assert False, "ValueError not raised." # pragma: no cover
- assert (-9.0, 18.0) == self.msd.confidence_interval(.5)
+ res = self.msd.confidence_interval(0.5)
+ assert (-9.0, 0.0) == res, res

0 comments on commit 2938538

Please sign in to comment.