mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
refactor: use fixture files for C, C++, and Elixir test content
This commit is contained in:
parent
7465b4bf91
commit
ec2b635a1a
1 changed files with 3 additions and 12 deletions
|
@ -335,26 +335,17 @@ class TestRepoMapAllLanguages(unittest.TestCase):
|
|||
language_files = {
|
||||
"c": (
|
||||
"test.c",
|
||||
(
|
||||
'#include <stdio.h>\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 <iostream>\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": (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue