Skip to content

Commit

Permalink
✨feat(swift): examples added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeioth committed Feb 2, 2024
1 parent c07a275 commit cd53332
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/examples/languages/swift/build-and-run/helper.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
func sayHello() {
print("Hello, World!")
}
2 changes: 2 additions & 0 deletions tests/examples/languages/swift/build-and-run/main.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sayHello()

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
func sayHello() {
print("Hello, World!")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sayHello()

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
func sayHello() {
print("Hello, World!")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sayHello()

10 changes: 10 additions & 0 deletions tests/examples/languages/swift/solution/.solution.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[HelloWorld]
entry_point = "./project1/main.swift"
output = "./bin/hello_world1"

[HelloWorld2]
entry_point = "./project2/main.swift"
output = "./bin/hello_world2"

[SOLUTION]
executable = "./bin/hello_world1"
3 changes: 3 additions & 0 deletions tests/examples/languages/swift/solution/project1/helper.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
func sayHello() {
print("Hello, World!")
}
2 changes: 2 additions & 0 deletions tests/examples/languages/swift/solution/project1/main.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sayHello()

3 changes: 3 additions & 0 deletions tests/examples/languages/swift/solution/project2/helper.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
func sayHello() {
print("Hello, World!")
}
2 changes: 2 additions & 0 deletions tests/examples/languages/swift/solution/project2/main.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sayHello()

0 comments on commit cd53332

Please sign in to comment.