From 4193346c26b27ecf204de72d6fedf9581adb8146 Mon Sep 17 00:00:00 2001 From: Victor Ma Date: Thu, 25 Sep 2025 22:57:18 -0400 Subject: [PATCH] Use string parameter in macro function --- src/clue-matches-tests.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/clue-matches-tests.c b/src/clue-matches-tests.c index dc283545..d1431aad 100644 --- a/src/clue-matches-tests.c +++ b/src/clue-matches-tests.c @@ -189,7 +189,7 @@ test_duplicate_words_ipuz (Fixture *fixture, gconstpointer user_data) #define ADD_IPUZ_TEST(test_name, file_name) \ g_test_add ("/clue_matches/" #test_name, \ Fixture, \ - "tests/clue-matches/" #file_name, \ + "tests/clue-matches/" file_name, \ fixture_set_up, \ test_name, \ fixture_tear_down) @@ -200,14 +200,14 @@ main (int argc, char **argv) { g_test_init (&argc, &argv, NULL); - ADD_IPUZ_TEST (test_simple_across_ipuz, simple-across.ipuz); - ADD_IPUZ_TEST (test_simple_down_ipuz, simple-down.ipuz); - ADD_IPUZ_TEST (test_valid_intersection_ipuz, valid-intersection.ipuz); - ADD_IPUZ_TEST (test_invalid_intersection_ipuz, invalid-intersection.ipuz); - ADD_IPUZ_TEST (test_dense_ipuz, dense.ipuz); - ADD_IPUZ_TEST (test_block_cells_ipuz, block-cells.ipuz); - ADD_IPUZ_TEST (test_null_cells_ipuz, null-cells.ipuz); - ADD_IPUZ_TEST (test_rebus_ipuz, rebus.ipuz); + ADD_IPUZ_TEST (test_simple_across_ipuz, "simple-across.ipuz"); + ADD_IPUZ_TEST (test_simple_down_ipuz, "simple-down.ipuz"); + ADD_IPUZ_TEST (test_valid_intersection_ipuz, "valid-intersection.ipuz"); + ADD_IPUZ_TEST (test_invalid_intersection_ipuz, "invalid-intersection.ipuz"); + ADD_IPUZ_TEST (test_dense_ipuz, "dense.ipuz"); + ADD_IPUZ_TEST (test_block_cells_ipuz, "block-cells.ipuz"); + ADD_IPUZ_TEST (test_null_cells_ipuz, "null-cells.ipuz"); + ADD_IPUZ_TEST (test_rebus_ipuz, "rebus.ipuz"); return g_test_run (); } -- GitLab