diff tests/test_histogram.py @ 68:07362c531a7e

stub histogram tests
author Jeff Hammel <k0scist@gmail.com>
date Sat, 28 Feb 2015 16:13:14 -0800
parents
children 8e93d7357c6b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test_histogram.py	Sat Feb 28 16:13:14 2015 -0800
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+"""
+unit tests for histograms
+"""
+
+import os
+import sys
+import unittest
+from numerics.histogram import Histogram
+
+# globals
+here = os.path.dirname(os.path.abspath(__file__))
+
+class HistogramUnitTest(unittest.TestCase):
+
+    def test_histogram(self):
+        """basic histogram test"""
+
+        # make some test data
+        data = [0,0,1,1,2,3,4,5,6,7,8,8,8]
+        bins = range(0,10)
+
+        # make a histogram
+        h = Histogram(bins)
+
+if __name__ == '__main__':
+    unittest.main()
+