From b96d2f5cbf0cb0f648ea9a1d3cf3474d19d593df Mon Sep 17 00:00:00 2001 From: Ayush Gupta Date: Sun, 31 Mar 2024 02:56:30 +0530 Subject: [PATCH] Added unit tests --- CICDPipelineTests/CICDPipelineTests.swift | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/CICDPipelineTests/CICDPipelineTests.swift b/CICDPipelineTests/CICDPipelineTests.swift index dc77285..75862b5 100644 --- a/CICDPipelineTests/CICDPipelineTests.swift +++ b/CICDPipelineTests/CICDPipelineTests.swift @@ -18,19 +18,11 @@ final class CICDPipelineTests: XCTestCase { // Put teardown code here. This method is called after the invocation of each test method in the class. } - func testExample() throws { - // This is an example of a functional test case. - // Use XCTAssert and related functions to verify your tests produce the correct results. - // Any test you write for XCTest can be annotated as throws and async. - // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. - // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + func testAddition() { + XCTAssertEqual(50+50, 100) } - - func testPerformanceExample() throws { - // This is an example of a performance test case. - self.measure { - // Put the code you want to measure the time of here. - } + + func testMultiplication() { + XCTAssertEqual(50*50, 2500) } - }