annotate tests/test_sigmoid.py @ 18:e92fc4a17336

add failing test
author Jeff Hammel <k0scist@gmail.com>
date Sun, 03 Sep 2017 19:40:29 -0700
parents
children cd43ce453358
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/usr/bin/env python
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 test sigmoid related funcationality
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 """
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 import os
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 import unittest
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 from tvii.sigmoid import sigmoid
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 class TestSigmoid(unittest.TestCase):
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 def test_basic(self):
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 """test two points of the sigmoid function"""
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 answer = sigmoid([0,2])
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 assert len(answer(2))
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 if __name__ == '__main__':
e92fc4a17336 add failing test
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 unittest.main()