summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJosh Blum2013-06-22 19:24:34 -0700
committerJosh Blum2013-06-22 19:24:34 -0700
commit1cebdcfb645ca6abefaa5e2d8feac8140e95e5ad (patch)
treea4c67de25d394cec0e839c73a9454c3673f82d9c /tests
parent407a198a07dc1a333bda8b5c2e731ce0ee793ebf (diff)
downloadsandhi-1cebdcfb645ca6abefaa5e2d8feac8140e95e5ad.tar.gz
sandhi-1cebdcfb645ca6abefaa5e2d8feac8140e95e5ad.tar.bz2
sandhi-1cebdcfb645ca6abefaa5e2d8feac8140e95e5ad.zip
gras: various fixes for new time tag class
Diffstat (limited to 'tests')
-rw-r--r--tests/time_tags_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/time_tags_test.py b/tests/time_tags_test.py
index 7d0221f..08a59d3 100644
--- a/tests/time_tags_test.py
+++ b/tests/time_tags_test.py
@@ -24,6 +24,10 @@ class TimeTagsTest(unittest.TestCase):
t3 = gras.TimeTag.from_ticks(time_ns_now, 1e9)
self.assertEqual(t3.to_ticks(1e9), time_ns_now)
+ time_us_now = long(time.time()*1e6)
+ t4 = gras.TimeTag.from_ticks(time_us_now, 1e6)
+ self.assertEqual(t4.to_ticks(1e6), time_us_now)
+
def test_time_tag_compare(self):
t0 = gras.TimeTag.from_ticks(42)
t1 = gras.TimeTag.from_ticks(-1000)