@@ -0,0 +1,922 @@
+import unittest%0Afrom spotpy import objectivefunctions as of%0Aimport numpy as np%0A%0A#https://docs.python.org/3/library/unittest.html%0A%0Aclass TestObjectiveFunctions(unittest.TestCase):%0A%0A    # How many digits to match in case of floating point answers%0A    tolerance = 10%0A%0A    def setUp(self):%0A        np.random.seed(42)%0A        self.simulation = np.random.randn(10)%0A        self.evaluation = np.random.randn(10)%0A%0A        print(self.simulation)%0A        print(self.evaluation)%0A%0A    def test_bias(self):%0A        res = of.bias(self.evaluation, self.simulation)%0A        self.assertAlmostEqual(res, 1.2387193462811703, self.tolerance)%0A%0A    def test_length_mismatch_return_nan(self):%0A        all_funcs = of._all_functions%0A%0A        for func in all_funcs:%0A            res = func(%5B0%5D, %5B0, 1%5D)%0A            self.assertIs(res, np.nan, %22Expected np.nan in length mismatch, Got %7B%7D%22.format(res))%0A%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Add tests for bias and length mismatch