Skip to content

Commit

Permalink
remove not necessary func
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Oct 13, 2023
1 parent add0b33 commit d577cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions DXFeedFramework/Native/Feed/EventCode+Native.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,4 @@ extension EventCode {
return DXFG_EVENT_OPTION_SALE
}
}

static func differentCodesAfterConversation() -> [EventCode] {
let convertedSet = Set(EventCode.allCases.map { $0.nativeCode() }.compactMap { EventCode.convert($0) })
return Array(Set(EventCode.allCases).symmetricDifference(convertedSet))
}
}
3 changes: 2 additions & 1 deletion DXFeedFrameworkTests/EventsTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import XCTest

final class EventsTest: XCTestCase {
func testConversion() throws {
let difValues = EventCode.differentCodesAfterConversation()
let convertedSet = Set(EventCode.allCases.map { $0.nativeCode() }.compactMap { EventCode.convert($0) })
let difValues = Array(Set(EventCode.allCases).symmetricDifference(convertedSet))
XCTAssert(difValues.count == 0, "Not equal enums. Please, take a look on \(difValues)")
}
}

0 comments on commit d577cba

Please sign in to comment.