Skip to content

Commit

Permalink
🎨 Renamed AddTwoNumbers solution
Browse files Browse the repository at this point in the history
Renamed to AddTwoNumbersIterativeSolution to be clearer about this specific solution
  • Loading branch information
jobearrr committed Jul 4, 2024
1 parent f3f7328 commit 1be8bec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AddTwoNumbersSolution.swift
// AddTwoNumbersIterativeSolution.swift
// LeetSwift
//
// Created by Jobert Sá on 02/07/2024.
Expand All @@ -9,7 +9,7 @@ import Core
import Foundation
import Problems

final class AddTwoNumbersSolution: AddTwoNumbersDefinition {
final class AddTwoNumbersIterativeSolution: AddTwoNumbersDefinition {

func addTwoNumbers(_ l1: ListNode?, _ l2: ListNode?) -> ListNode? {
let dummyHead = ListNode(0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AddTwoNumbersSolutionTests.swift
// AddTwoNumbersIterativeSolution.swift
// LeetSwift
//
// Created by Jobert Sá on 02/07/2024.
Expand All @@ -11,9 +11,9 @@ import XCTest
@testable import Solutions
@testable import TestSupport

final class AddTwoNumbersSolutionTests: XCTestCase {
final class AddTwoNumbersIterativeSolutionTests: XCTestCase {

let solution: AddTwoNumbersDefinition = AddTwoNumbersSolution()
let solution: AddTwoNumbersDefinition = AddTwoNumbersIterativeSolution()

func testSolution() {
for testData in data {
Expand All @@ -26,7 +26,7 @@ final class AddTwoNumbersSolutionTests: XCTestCase {
}
}

extension AddTwoNumbersSolutionTests: TestCaseProviding {
extension AddTwoNumbersIterativeSolutionTests: TestCaseProviding {

func validateInput(_ input: (l1: ListNode?, l2: ListNode?)) -> Bool {
// TODO: Implement validation
Expand Down

0 comments on commit 1be8bec

Please sign in to comment.