changeset 18:e92fc4a17336

add failing test
author Jeff Hammel <k0scist@gmail.com>
date Sun, 03 Sep 2017 19:40:29 -0700
parents bf8bd42f8cd7
children cd43ce453358
files tests/test_sigmoid.py
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test_sigmoid.py	Sun Sep 03 19:40:29 2017 -0700
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+"""
+test sigmoid related funcationality
+"""
+
+import os
+import unittest
+from tvii.sigmoid import sigmoid
+
+
+class TestSigmoid(unittest.TestCase):
+
+    def test_basic(self):
+        """test two points of the sigmoid function"""
+
+        answer = sigmoid([0,2])
+        assert len(answer(2))
+        
+
+if __name__ == '__main__':
+    unittest.main()