Mercurial > hg > tvii
comparison tests/test_dot.py @ 7:bb8b6b06ca83
dot product
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Thu, 31 Aug 2017 08:50:36 -0700 |
parents | 382ab19fb052 |
children |
comparison
equal
deleted
inserted
replaced
6:be09c8fc58b8 | 7:bb8b6b06ca83 |
---|---|
3 """ | 3 """ |
4 test dot product | 4 test dot product |
5 """ | 5 """ |
6 | 6 |
7 import unittest | 7 import unittest |
8 | 8 from tvii.dot import dot |
9 | 9 |
10 class TestDot(unittest.TestCase): | 10 class TestDot(unittest.TestCase): |
11 | 11 |
12 def test_simple(self): | 12 def test_simple(self): |
13 """simple dot product test""" | 13 """simple dot product test""" |
14 # TODO | 14 |
15 a = [1, 2, 3] | |
16 b = [4, 5, 6] | |
17 expected = 32 | |
15 | 18 |
16 if __name__ == '__main__': | 19 if __name__ == '__main__': |
17 unittest.main() | 20 unittest.main() |