import unittest
from ahupythonpackage import standard_deviation
from ahupythonpackage import standard_error

class MyTest(unittest.TestCase):
	def test_valid_cases_1(self):
		self.assertEqual(standard_deviation([0]), 0)
		self.assertEqual(standard_error([0]), 0)

	def test_valid_cases_2(self):
		self.assertEqual(standard_deviation([1]), 0)
		self.assertEqual(standard_error([1]), 0)

	def test_valid_cases_3(self):
		self.assertEqual(standard_deviation([0,0,0]), 0)
		self.assertEqual(standard_error([0,0,0]), 0)

	def test_valid_cases_4(self):
		self.assertEqual(standard_deviation([1,1,1]), 0)
		self.assertEqual(standard_error([1,1,1]), 0)

	def test_valid_cases_5(self):
		self.assertEqual(standard_deviation([0,1,2]), 0.816496580927726)
		self.assertEqual(standard_error([0,1,2]), 0.47140452079103173)

	def test_valid_cases_6(self):
		self.assertEqual(standard_deviation([0,-1,-2]), 0.816496580927726)
		self.assertEqual(standard_error([0,-1,-2]), 0.47140452079103173)
		
	def test_valid_cases_7(self):
		list = []
		for i in range(10000):
			list.append(i)

		self.assertEqual(standard_deviation(list), 2886.751331514372)
		self.assertEqual(standard_error(list), 28.867513315143718)
		
	def test_valid_cases_8(self):
		list = []
		for i in range(9999999):
			list.append(i)
		
		self.assertEqual(standard_deviation(list), 2886751.0572787286)
		self.assertEqual(standard_error(list), 912.8708835335426)

	def test_error_cases_1(self):
		self.assertRaises(ZeroDivisionError, standard_deviation, [])
		self.assertRaises(ZeroDivisionError, standard_error, [])
		
	def test_error_cases_2(self):
		self.assertRaises(TypeError, standard_deviation, [""])
		self.assertRaises(TypeError, standard_error, [""])
		
	def test_error_cases_3(self):
		self.assertRaises(TypeError, standard_deviation, [0,""])
		self.assertRaises(TypeError, standard_error, [0,""])
		
	def test_error_cases_4(self):
		self.assertRaises(TypeError, standard_deviation, None)
		self.assertRaises(TypeError, standard_error, None)
		
	def test_error_cases_5(self):
		self.assertRaises(ZeroDivisionError, standard_deviation, "")
		self.assertRaises(ZeroDivisionError, standard_error, "")
		
	def test_error_cases_6(self):
		self.assertRaises(ZeroDivisionError, standard_deviation, {})
		self.assertRaises(ZeroDivisionError, standard_error, {})

if __name__ == '__main__':
    unittest.main()
@@ -171,32 +171,38 @@
 ):%0A%09%09self.assert
+Almost
 Equal(standard_d
@@ -224,32 +224,38 @@
 0)%0A%09%09self.assert
+Almost
 Equal(standard_e
@@ -305,32 +305,38 @@
 ):%0A%09%09self.assert
+Almost
 Equal(standard_d
@@ -358,32 +358,38 @@
 0)%0A%09%09self.assert
+Almost
 Equal(standard_e
@@ -439,32 +439,38 @@
 ):%0A%09%09self.assert
+Almost
 Equal(standard_d
@@ -496,32 +496,38 @@
 0)%0A%09%09self.assert
+Almost
 Equal(standard_e
@@ -581,32 +581,38 @@
 ):%0A%09%09self.assert
+Almost
 Equal(standard_d
@@ -638,32 +638,38 @@
 0)%0A%09%09self.assert
+Almost
 Equal(standard_e
@@ -723,32 +723,38 @@
 ):%0A%09%09self.assert
+Almost
 Equal(standard_d
@@ -764,20 +764,26 @@
 ation(%5B0
-,1,2
+.0,1.0,2.0
 %5D), 0.81
@@ -802,32 +802,38 @@
 6)%0A%09%09self.assert
+Almost
 Equal(standard_e
@@ -843,12 +843,18 @@
 r(%5B0
+.0
 ,1
-,2
+.0,2.0
 %5D), 
@@ -911,32 +911,38 @@
 ):%0A%09%09self.assert
+Almost
 Equal(standard_d
@@ -952,22 +952,28 @@
 ation(%5B0
+.0
 ,-1
+.0
 ,-2
+.0
 %5D), 0.81
@@ -992,32 +992,38 @@
 6)%0A%09%09self.assert
+Almost
 Equal(standard_e
@@ -1033,14 +1033,20 @@
 r(%5B0
+.0
 ,-1
+.0
 ,-2
+.0
 %5D), 
@@ -1161,32 +1161,38 @@
 )%0A%0A%09%09self.assert
+Almost
 Equal(standard_d
@@ -1231,32 +1231,38 @@
 2)%0A%09%09self.assert
+Almost
 Equal(standard_e
@@ -1392,32 +1392,38 @@
 %09%09%0A%09%09self.assert
+Almost
 Equal(standard_d
@@ -1471,16 +1471,22 @@
 f.assert
+Almost
 Equal(st

test case update