mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35: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 = {
|
language_files = {
|
||||||
"c": (
|
"c": (
|
||||||
"test.c",
|
"test.c",
|
||||||
(
|
"", # Now reads from fixture file
|
||||||
'#include <stdio.h>\n\nint main() {\n printf("Hello, World!\\n");\n '
|
|
||||||
" return 0;\n}\n"
|
|
||||||
),
|
|
||||||
"main", # Key symbol to check
|
"main", # Key symbol to check
|
||||||
),
|
),
|
||||||
"cpp": (
|
"cpp": (
|
||||||
"test.cpp",
|
"test.cpp",
|
||||||
(
|
"", # Now reads from fixture file
|
||||||
'#include <iostream>\n\nint main() {\n std::cout << "Hello, World!" <<'
|
|
||||||
" std::endl;\n return 0;\n}\n"
|
|
||||||
),
|
|
||||||
"main", # Key symbol to check
|
"main", # Key symbol to check
|
||||||
),
|
),
|
||||||
"elixir": (
|
"elixir": (
|
||||||
"test.ex",
|
"test.ex",
|
||||||
(
|
"", # Now reads from fixture file
|
||||||
'defmodule Greeter do\n def hello(name) do\n IO.puts("Hello, #{name}!")\n '
|
|
||||||
" end\nend\n"
|
|
||||||
),
|
|
||||||
"Greeter", # Key symbol to check
|
"Greeter", # Key symbol to check
|
||||||
),
|
),
|
||||||
"java": (
|
"java": (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue