From f3426f1f53e9fd7df9d8312cbf8b912fbca88236 Mon Sep 17 00:00:00 2001 From: "Alon Baker (realSycoBak)" <66329736+AlonBaker@users.noreply.github.com> Date: Wed, 7 Oct 2026 12:59:36 -0400 Subject: [PATCH] Add test case to tables where join returns none when no values match. --- tests/test_tables.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_tables.py b/tests/test_tables.py index 453e4ca8..543b401b 100644 --- a/tests/test_tables.py +++ b/tests/test_tables.py @@ -1603,6 +1603,13 @@ def test_join_no_rows(): assert t3 == None t4 = t2.join('letter', t1) assert t4 == None + +def test_join_no_matching_values(): + t1 = Table().with_columns('letter', make_array('a', 'b'), 'x', make_array(1, 2)) + t2 = Table().with_columns('letter', make_array('c', 'd'), 'y', make_array(3, 4)) + assert t1.join('letter', t2) is None + t3 = Table().with_columns('letter', make_array('a', 'b'), 'x', make_array(9, 9)) + assert t1.join(['letter', 'x'], t3) is None def test_percentile(numbers_table): assert_equal(numbers_table.percentile(76), """