From 88bd21aebc9ff433533030708aa6f247cbffeff4 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Sun, 8 Dec 2024 22:11:31 -0500 Subject: [PATCH] Update project to match current template --- Tests/HelloSkipTests/HelloSkipTests.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tests/HelloSkipTests/HelloSkipTests.swift b/Tests/HelloSkipTests/HelloSkipTests.swift index e020e8c..6471f9d 100644 --- a/Tests/HelloSkipTests/HelloSkipTests.swift +++ b/Tests/HelloSkipTests/HelloSkipTests.swift @@ -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 -} \ No newline at end of file +}