mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: Add CommonLisp language support to TestRepoMapAllLanguages
This commit is contained in:
parent
7c1d2d75e0
commit
544d58ddbd
2 changed files with 18 additions and 0 deletions
|
@ -306,6 +306,7 @@ class TestRepoMapAllLanguages(unittest.TestCase):
|
|||
"hcl": ("tf", "aws_vpc"),
|
||||
"arduino": ("ino", "setup"),
|
||||
"chatito": ("chatito", "intent"),
|
||||
"commonlisp": ("lisp", "greet"),
|
||||
}
|
||||
|
||||
fixtures_dir = Path(__file__).parent.parent / "fixtures" / "languages"
|
||||
|
|
17
tests/fixtures/languages/commonlisp/test.lisp
vendored
Normal file
17
tests/fixtures/languages/commonlisp/test.lisp
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
;;; Simple Common Lisp example
|
||||
|
||||
(defun greet (name)
|
||||
"Return a greeting string for NAME."
|
||||
(format nil "Hello, ~a!" name))
|
||||
|
||||
(defvar *greeting-style* 'formal
|
||||
"Style to use for greetings.")
|
||||
|
||||
(defclass person ()
|
||||
((name :initarg :name :accessor person-name)
|
||||
(age :initarg :age :accessor person-age))
|
||||
(:documentation "A class representing a person."))
|
||||
|
||||
(defmethod print-object ((obj person) stream)
|
||||
(print-unreadable-object (obj stream :type t)
|
||||
(format stream "~a, age ~a" (person-name obj) (person-age obj))))
|
Loading…
Add table
Add a link
Reference in a new issue