annotate tests/test_dot.py @ 49:111997fa04d1

[doc] references to ML projects
author Jeff Hammel <k0scist@gmail.com>
date Sun, 17 Sep 2017 14:21:58 -0700
parents bb8b6b06ca83
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/usr/bin/env python
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 test dot product
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 """
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 import unittest
7
bb8b6b06ca83 dot product
Jeff Hammel <k0scist@gmail.com>
parents: 5
diff changeset
8 from tvii.dot import dot
5
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 class TestDot(unittest.TestCase):
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 def test_simple(self):
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 """simple dot product test"""
7
bb8b6b06ca83 dot product
Jeff Hammel <k0scist@gmail.com>
parents: 5
diff changeset
14
bb8b6b06ca83 dot product
Jeff Hammel <k0scist@gmail.com>
parents: 5
diff changeset
15 a = [1, 2, 3]
bb8b6b06ca83 dot product
Jeff Hammel <k0scist@gmail.com>
parents: 5
diff changeset
16 b = [4, 5, 6]
bb8b6b06ca83 dot product
Jeff Hammel <k0scist@gmail.com>
parents: 5
diff changeset
17 expected = 32
5
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 if __name__ == '__main__':
382ab19fb052 [test] stub test for dot product
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 unittest.main()