tadded return statement to test outcome - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 508d295126bc79d9ee2987d65f9676570a03a6d5
(DIR) parent 7fc10209dd3503e703c87cfe0007ec07fc032e3b
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 9 Oct 2013 13:16:53 +0200
added return statement to test outcome
Diffstat:
M tests/pytestutils.py | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/tests/pytestutils.py b/tests/pytestutils.py
t@@ -16,6 +16,7 @@ def compare(first, second, string):
print(string + passed())
else:
print(string + failed())
+ return(1)
def compareFloats(first, second, string, criterion=1e-5):
if abs(first-second) < criterion:
t@@ -25,12 +26,14 @@ def compareFloats(first, second, string, criterion=1e-5):
print("First: " + str(first))
print("Second: " + str(second))
print("Difference: " + str(second-first))
+ return(1)
def compareNumpyArrays(first, second, string):
if ((first == second).all()):
print(string + passed())
else :
print(string + failed())
+ return(1)
def cleanup(spherebin):