From ec2b635a1a62b43bce8363d37795e14c3613e163 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 27 Nov 2024 07:09:28 -0800 Subject: [PATCH] refactor: use fixture files for C, C++, and Elixir test content --- tests/basic/test_repomap.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/tests/basic/test_repomap.py b/tests/basic/test_repomap.py index 1742ce52e..e8daa7f0c 100644 --- a/tests/basic/test_repomap.py +++ b/tests/basic/test_repomap.py @@ -335,26 +335,17 @@ class TestRepoMapAllLanguages(unittest.TestCase): language_files = { "c": ( "test.c", - ( - '#include \n\nint main() {\n printf("Hello, World!\\n");\n ' - " return 0;\n}\n" - ), + "", # Now reads from fixture file "main", # Key symbol to check ), "cpp": ( "test.cpp", - ( - '#include \n\nint main() {\n std::cout << "Hello, World!" <<' - " std::endl;\n return 0;\n}\n" - ), + "", # Now reads from fixture file "main", # Key symbol to check ), "elixir": ( "test.ex", - ( - 'defmodule Greeter do\n def hello(name) do\n IO.puts("Hello, #{name}!")\n ' - " end\nend\n" - ), + "", # Now reads from fixture file "Greeter", # Key symbol to check ), "java": (