mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
test: Add Swift test case to TestRepoMapAllLanguages
This commit is contained in:
parent
315f8093c6
commit
189d64dc3d
2 changed files with 19 additions and 0 deletions
18
tests/fixtures/languages/swift/test.swift
vendored
Normal file
18
tests/fixtures/languages/swift/test.swift
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Swift greeting example
|
||||
class Greeter {
|
||||
let name: String
|
||||
|
||||
init(name: String) {
|
||||
self.name = name
|
||||
}
|
||||
|
||||
func greet() -> String {
|
||||
return "Hello, \(name)!"
|
||||
}
|
||||
}
|
||||
|
||||
// Example usage
|
||||
func exampleGreeting() {
|
||||
let greeter = Greeter(name: "World")
|
||||
print(greeter.greet())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue