summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/DDHotKeyTests/DDHotKeyTests.swift18
-rw-r--r--Tests/DDHotKeyTests/XCTestManifests.swift9
-rw-r--r--Tests/LinuxMain.swift7
3 files changed, 34 insertions, 0 deletions
diff --git a/Tests/DDHotKeyTests/DDHotKeyTests.swift b/Tests/DDHotKeyTests/DDHotKeyTests.swift
new file mode 100644
index 0000000..5e523af
--- /dev/null
+++ b/Tests/DDHotKeyTests/DDHotKeyTests.swift
@@ -0,0 +1,18 @@
+import XCTest
+import Carbon
+@testable import DDHotKey
+
+final class DDHotKeyTests: XCTestCase {
+
+ func testExample() {
+ // This is an example of a functional test case.
+ // Use XCTAssert and related functions to verify your tests produce the correct
+ // results.
+ let s = string(for: kVK_ANSI_A)
+ print("\(s)")
+ }
+
+ static var allTests = [
+ ("testExample", testExample),
+ ]
+}
diff --git a/Tests/DDHotKeyTests/XCTestManifests.swift b/Tests/DDHotKeyTests/XCTestManifests.swift
new file mode 100644
index 0000000..70843ac
--- /dev/null
+++ b/Tests/DDHotKeyTests/XCTestManifests.swift
@@ -0,0 +1,9 @@
+import XCTest
+
+#if !canImport(ObjectiveC)
+public func allTests() -> [XCTestCaseEntry] {
+ return [
+ testCase(DDHotKeyTests.allTests),
+ ]
+}
+#endif
diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift
new file mode 100644
index 0000000..ebc7760
--- /dev/null
+++ b/Tests/LinuxMain.swift
@@ -0,0 +1,7 @@
+import XCTest
+
+import DDHotKeyTests
+
+var tests = [XCTestCaseEntry]()
+tests += DDHotKeyTests.allTests()
+XCTMain(tests)