From: Yoann Audouin Date: Mon, 12 Jul 2021 12:30:44 +0000 (+0200) Subject: Missing file in CMakeFile + better test X-Git-Tag: V9_8_0a1~1^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c845b4bcb506d4bc79effc3063a99a9d46fa6c6;p=tools%2Fparavisaddons_common.git Missing file in CMakeFile + better test --- diff --git a/src/SerafinReader/Test/CMakeLists.txt b/src/SerafinReader/Test/CMakeLists.txt index cc8821a..d99657f 100644 --- a/src/SerafinReader/Test/CMakeLists.txt +++ b/src/SerafinReader/Test/CMakeLists.txt @@ -24,6 +24,7 @@ SET(test_SerafinReader_src geo_dp_le.slf geo_sp.slf geo_sp_le.slf + result.slf test_SerafinReader.py ) diff --git a/src/SerafinReader/Test/test_SerafinReader.py b/src/SerafinReader/Test/test_SerafinReader.py index ed0c02a..ded3620 100644 --- a/src/SerafinReader/Test/test_SerafinReader.py +++ b/src/SerafinReader/Test/test_SerafinReader.py @@ -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))