From ab736ea23788e585038c51c36eac8cc39852dfd1 Mon Sep 17 00:00:00 2001 From: tanupoo Date: Mon, 31 Aug 2020 09:40:57 +0900 Subject: [PATCH] added a test referred to the semtech calculator.. --- test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test.py b/test.py index 656dcc3..e935e49 100644 --- a/test.py +++ b/test.py @@ -42,5 +42,12 @@ class TestUM(unittest.TestCase): n_cr=4, n_preamble=6)["t_packet"] self.assertEqual( toa, 10.816 ) + def test_99(self): + toa = get_toa(8, 12, n_bw=500, + enable_auto_ldro=False, enable_ldro=False, + enable_eh=False, enable_crc=True, + n_cr=1, n_preamble=6)["t_packet"] + self.assertEqual( toa, 190.464 ) + if __name__ == '__main__': unittest.main()