From 22e2bfd3b74e4feef99b81073f82f7e8cbe63edf Mon Sep 17 00:00:00 2001 From: Miranda Gorsuch Date: Thu, 4 Jul 2024 11:06:14 -0500 Subject: [PATCH] Added negative test to mean_mag function --- tests/test_models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_models.py b/tests/test_models.py index 4a9b6359b..1a37d421f 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -41,6 +41,12 @@ def test_max_mag(test_df, test_colname, expected): columns=list("abc")), "b", 0), + (pd.DataFrame(data=[[-7, -7, -3], + [-4, -3, -1], + [-1, -5, -3]], + columns=list("abc")), + "a", + -4), ]) def test_mean_mag(test_df, test_colname, expected): """Test mean function works for array of zeroes and positive integers."""