[Yt-svn] commit/yt: MatthewTurk: One fun thing about the answer testing is that *generating* new tests does not

Bitbucket commits-noreply at bitbucket.org
Thu Nov 3 06:31:37 PDT 2011


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/0b853a9d693b/
changeset:   0b853a9d693b
branch:      yt
user:        MatthewTurk
date:        2011-11-03 14:31:18
summary:     One fun thing about the answer testing is that *generating* new tests does not
exercise the machinery inside the compare() operations.  So API mismatches like
these don't show up.
affected #:  1 file

diff -r bb043939ae678eb0f07ddf0597084791e59461fb -r 0b853a9d693b36d2ea7bb8047e2eeeb37ced41f0 yt/utilities/answer_testing/boolean_region_tests.py
--- a/yt/utilities/answer_testing/boolean_region_tests.py
+++ b/yt/utilities/answer_testing/boolean_region_tests.py
@@ -24,7 +24,7 @@
         self.result = (x2, x)
     
     def compare(self, old_result):
-        self.compare_array_delta(self.result[0], self.result[1])
+        self.compare_array_delta(self.result[0], self.result[1], 1e-10)
     
     def plot(self):
         return []
@@ -47,7 +47,7 @@
         self.result = (x1, x)
     
     def compare(self, old_result):
-        self.compare_array_delta(self.result[0], self.result[1])
+        self.compare_array_delta(self.result[0], self.result[1], 1e-10)
     
     def plot(self):
         return []
@@ -79,7 +79,7 @@
         self.result = (x, xo)
     
     def compare(self, old_result):
-        self.compare_array_delta(self.result[0], self.result[1])
+        self.compare_array_delta(self.result[0], self.result[1], 1e-10)
     
     def plot(self):
         return []
@@ -103,7 +103,7 @@
         self.result = (x2, x)
     
     def compare(self, old_result):
-        self.compare_array_delta(self.result[0], self.result[1])
+        self.compare_array_delta(self.result[0], self.result[1], 1e-10)
     
     def plot(self):
         return []
@@ -126,7 +126,7 @@
         self.result = (x1, x)
     
     def compare(self, old_result):
-        self.compare_array_delta(self.result[0], self.result[1])
+        self.compare_array_delta(self.result[0], self.result[1], 1e-10)
     
     def plot(self):
         return []
@@ -158,7 +158,7 @@
         self.result = (x, xo)
     
     def compare(self, old_result):
-        self.compare_array_delta(self.result[0], self.result[1])
+        self.compare_array_delta(self.result[0], self.result[1], 1e-10)
     
     def plot(self):
         return []

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list