-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
27 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
// This is free software: you can redistribute and/or modify it | ||
// under the terms of the GNU General Public License 3.0 | ||
// as published by the Free Software Foundation https://fsf.org | ||
|
||
public class AppDroidModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
// This is free software: you can redistribute and/or modify it | ||
// under the terms of the GNU General Public License 3.0 | ||
// as published by the Free Software Foundation https://fsf.org | ||
|
||
import XCTest | ||
import OSLog | ||
import Foundation | ||
import SkipBridge | ||
@testable import AppDroidModel | ||
|
||
let logger: Logger = Logger(subsystem: "AppDroidModel", category: "Tests") | ||
|
||
@available(macOS 13, *) | ||
final class AppDroidModelTests: XCTestCase { | ||
override func setUp() { | ||
#if SKIP | ||
loadPeerLibrary(packageName: "skipapp-appdroid", moduleName: "AppDroidModel") | ||
#endif | ||
} | ||
|
||
func testAppDroidModel() throws { | ||
logger.log("running testAppDroidModel") | ||
XCTAssertEqual(1 + 2, 3, "basic test") | ||
|
||
// load the TestData.json file from the Resources folder and decode it into a struct | ||
let resourceURL: URL = try XCTUnwrap(Bundle.module.url(forResource: "TestData", withExtension: "json")) | ||
let testData = try JSONDecoder().decode(TestData.self, from: Data(contentsOf: resourceURL)) | ||
XCTAssertEqual("AppDroidModel", testData.testModuleName) | ||
#if SKIP | ||
XCTAssertEqual("/", getJavaSystemProperty("file.separator")) | ||
#else | ||
throw XCTSkip("getJavaSystemProperty only works in transpiled test") | ||
#endif | ||
} | ||
} | ||
|
||
struct TestData : Codable, Hashable { | ||
var testModuleName: String | ||
} | ||
func testClosure() { | ||
XCTAssertEqual("value = 1", swiftClosure1Var(1)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters