-
-
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.
đŸ§¹Problem 003 refactoring and clean ups
- Loading branch information
Showing
10 changed files
with
65 additions
and
89 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 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
12 changes: 0 additions & 12 deletions
12
Tests/ProblemsTests/002 - Add Two Numbers/AddTwoNumbersProblemTests.swift
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...Without Repeating Characters/LongestSubstringWithoutRepeatingCharactersProblemTests.swift
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...Without Repeating Characters/LongestSubstringWithUniqueCharsBruteForceSolutionTests.swift
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// LongestSubstringWithUniqueCharsBruteForceSolutionTests.swift | ||
// LeetSwift | ||
// | ||
// Created by Jobert on 10/07/2024. | ||
// | ||
|
||
import XCTest | ||
@testable import Problems | ||
@testable import Solutions | ||
@testable import TestSupport | ||
|
||
final class LongestSubstringWithUniqueCharsBruteForceSolutionTests: XCTestCase { | ||
|
||
let solution: LongestSubstringWithUniqueCharsDefinition = LongestSubstringWithUniqueCharsBruteForceSolution() | ||
|
||
func testSolution() { | ||
for testData in data { | ||
let input = testData.input | ||
|
||
let output = solution.lengthOfLongestSubstring(input) | ||
|
||
XCTAssertEqual(output, testData.expectedOutput) | ||
} | ||
} | ||
} | ||
|
||
extension LongestSubstringWithUniqueCharsBruteForceSolutionTests: LongestSubstringWithUniqueCharsTestCaseProvider { } |
28 changes: 28 additions & 0 deletions
28
...hout Repeating Characters/LongestSubstringWithUniqueCharsSlidingWindowSolutionTests.swift
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// LongestSubstringWithUniqueCharsSlidingWindowSolutionTests.swift | ||
// LeetSwift | ||
// | ||
// Created by Jobert on 10/07/2024. | ||
// | ||
|
||
import XCTest | ||
@testable import Problems | ||
@testable import Solutions | ||
@testable import TestSupport | ||
|
||
final class LongestSubstringWithUniqueCharsSlidingWindowSolutionTests: XCTestCase { | ||
|
||
let solution: LongestSubstringWithUniqueCharsDefinition = LongestSubstringWithUniqueCharsSlidingWindowSolution() | ||
|
||
func testSolution() { | ||
for testData in data { | ||
let input = testData.input | ||
|
||
let output = solution.lengthOfLongestSubstring(input) | ||
|
||
XCTAssertEqual(output, testData.expectedOutput) | ||
} | ||
} | ||
} | ||
|
||
extension LongestSubstringWithUniqueCharsSlidingWindowSolutionTests: LongestSubstringWithUniqueCharsTestCaseProvider { } |
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
28 changes: 0 additions & 28 deletions
28
...ing Characters/LongestSubstringWithoutRepeatingCharactersSlidingWindowSolutionTests.swift
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
...ithout Repeating Characters/LongestSubstringWithoutRepeatingCharactersSolutionTests.swift
This file was deleted.
Oops, something went wrong.