]> SALOME platform Git repositories - tools/paravisaddons_common.git/commitdiff
Salome HOME
Missing file in CMakeFile + better test
authorYoann Audouin <yoann.audouin@edf.fr>
Mon, 12 Jul 2021 12:30:44 +0000 (14:30 +0200)
committerYoann Audouin <yoann.audouin@edf.fr>
Mon, 12 Jul 2021 12:30:59 +0000 (14:30 +0200)
src/SerafinReader/Test/CMakeLists.txt
src/SerafinReader/Test/test_SerafinReader.py

index cc8821ae5ec634b0ee16c5c077c1cfce5a2d2262..d99657f9be7c8e5016e00f9d6606436118257d9e 100644 (file)
@@ -24,6 +24,7 @@ SET(test_SerafinReader_src
   geo_dp_le.slf
   geo_sp.slf
   geo_sp_le.slf
+  result.slf
   test_SerafinReader.py
   )
 
index ed0c02a6ae03878c93fcc7a1da1c447a16f8ae18..ded3620088253cc5ff333d04166245b03c218cac 100644 (file)
@@ -47,5 +47,6 @@ reader_ds = servermanager.Fetch(reader)
 anim = GetAnimationScene()
 tk = anim.TimeKeeper
 times = tk.TimestepValues
-ref_times = [i*1.0 for i in range(10)]
-assert(times == ref_times)
+ref_times = np.array([i*1.0 for i in range(10)])
+diff = np.abs(ref_times - times)
+assert(np.all(diff <= 1e-6))