From 94b09031e8988ee006add35389e2f9d1d2b87376 Mon Sep 17 00:00:00 2001
From: Tamas Gal <himself@tamasgal.com>
Date: Wed, 3 Jul 2024 11:43:39 +0200
Subject: [PATCH] Extend tests for orientations

---
 test/calibration.jl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/calibration.jl b/test/calibration.jl
index 6f82a5ca..e736d688 100644
--- a/test/calibration.jl
+++ b/test/calibration.jl
@@ -26,8 +26,13 @@ end
 
 @testset "orientations" begin
     o = read(datapath("calib", "KM3NeT_00000133_D_1.0.0_00017397_00017496_1.orientations.root"), Orientations)
+    @show o
     module_id = 817589211
     min_t, max_t = extrema(o.times[module_id])
+    Δt = max_t - min_t
     @test [0.8260205110995139, 0.003912907129683348, -0.004395551387888641, -0.5636093359133512] == o(module_id, min_t)
     @test [0.8289446524907407, 0.004590185819553083, -0.0007479055911552097, -0.5593113032456739] == o(module_id, max_t)
+    @test [0.8297266567631056, 0.002991865243189534, -0.004798371006076004, -0.5581412898494195] == o(module_id, min_t + Δt/2)
+    @test [0.8305219131347711, 0.003947997911424212, -0.0042572917986734805, -0.5569556899628482] == o(module_id, min_t + Δt/3)
+
 end
-- 
GitLab