From 8a191e9614bb972d52d66e8c5ea8679f7b00b383 Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Sun, 1 Aug 2021 18:43:50 +0100
Subject: [PATCH] changed some tests

---
 binarycpython/tests/test_custom_logging.py    | 2 +-
 binarycpython/tests/test_spacing_functions.py | 2 +-
 binarycpython/utils/grid_options_defaults.py  | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/binarycpython/tests/test_custom_logging.py b/binarycpython/tests/test_custom_logging.py
index 717b4a750..62c5be370 100644
--- a/binarycpython/tests/test_custom_logging.py
+++ b/binarycpython/tests/test_custom_logging.py
@@ -129,7 +129,7 @@ class test_custom_logging(unittest.TestCase):
 
         input_2 = "version"
         output_2 = from_binary_c_config(BINARY_C_CONFIG, input_2)
-        self.assertEqual(output_2, "2.1.7", msg="binary_c version doesnt match")
+        self.assertIn(output_2, ["2.1.7", "2.2pre1"], msg="binary_c version doesnt match")
 
     def test_return_compilation_dict(self):
         with Capturing() as output:
diff --git a/binarycpython/tests/test_spacing_functions.py b/binarycpython/tests/test_spacing_functions.py
index a61f72512..7920a63b1 100644
--- a/binarycpython/tests/test_spacing_functions.py
+++ b/binarycpython/tests/test_spacing_functions.py
@@ -25,7 +25,7 @@ class test_spacing_functions(unittest.TestCase):
 
         const_return = const(1, 10, 10)
         self.assertTrue(
-            (const_return == np.linspace(1, 10, 10)).all(),
+            (const_return == np.linspace(1, 10, 10+1)).all(),
             msg="Output didn't contain SINGLE_STAR_LIFETIME",
         )
 
diff --git a/binarycpython/utils/grid_options_defaults.py b/binarycpython/utils/grid_options_defaults.py
index 4fb5fe1b7..7f80a0e4f 100644
--- a/binarycpython/utils/grid_options_defaults.py
+++ b/binarycpython/utils/grid_options_defaults.py
@@ -786,8 +786,8 @@ def write_grid_options_to_rst_file(output_file: str) -> None:
         # Moe & di Stefano options:
         print_option_descriptions(
             f,
-            moe_distefano_default_options,
-            moe_distefano_default_options_description,
+            moe_di_stefano_default_options,
+            moe_di_stefano_default_options_description,
             "Moe & di Stefano sampler options",
             "The following options are meant to be changed by the user.",
         )
-- 
GitLab