Mercurial > hg > tvii
annotate tests/test_sigmoid.py @ 19:cd43ce453358
[numpy] of course we have to cast everything here too
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Sun, 03 Sep 2017 20:46:26 -0700 |
| parents | e92fc4a17336 |
| children | d6d2ecb33c95 |
| rev | line source |
|---|---|
| 18 | 1 #!/usr/bin/env python |
| 2 | |
| 3 """ | |
| 4 test sigmoid related funcationality | |
| 5 """ | |
| 6 | |
| 7 import os | |
| 8 import unittest | |
| 9 from tvii.sigmoid import sigmoid | |
| 10 | |
| 11 | |
| 12 class TestSigmoid(unittest.TestCase): | |
| 13 | |
| 14 def test_basic(self): | |
| 15 """test two points of the sigmoid function""" | |
| 16 | |
| 17 answer = sigmoid([0,2]) | |
|
19
cd43ce453358
[numpy] of course we have to cast everything here too
Jeff Hammel <k0scist@gmail.com>
parents:
18
diff
changeset
|
18 assert len(answer) == 2 |
| 18 | 19 |
| 20 if __name__ == '__main__': | |
| 21 unittest.main() |
