Skip to content

Commit

Permalink
Update project to match current template
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux committed Dec 9, 2024
1 parent 66c4f3d commit 88bd21a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Tests/HelloSkipTests/HelloSkipTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ let logger: Logger = Logger(subsystem: "HelloSkip", category: "Tests")

@available(macOS 13, *)
final class HelloSkipTests: XCTestCase {

func testHelloSkip() throws {
logger.log("running testHelloSkip")
XCTAssertEqual(1 + 2, 3, "basic test")

}

func testDecodeType() throws {
// 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("HelloSkip", testData.testModuleName)
}

}

struct TestData : Codable, Hashable {
var testModuleName: String
}
}

0 comments on commit 88bd21a

Please sign in to comment.