view tests/test_dot.py @ 21:0149be5a984c

[iterable] add function to tell True/False if argument is an iterable
author Jeff Hammel <k0scist@gmail.com>
date Mon, 04 Sep 2017 08:37:06 -0700
parents bb8b6b06ca83
children
line wrap: on
line source

#!/usr/bin/env python

"""
test dot product
"""

import unittest
from tvii.dot import dot

class TestDot(unittest.TestCase):

    def test_simple(self):
        """simple dot product test"""

        a = [1, 2, 3]
        b = [4, 5, 6]
        expected = 32

if __name__ == '__main__':
    unittest.main()