Skip to content

Commit

Permalink
fix: MemorialHouse에 있던 Equatable 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyxxn committed Nov 24, 2024
1 parent b65fe03 commit e4c461b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public struct MemorialHouse: Equatable, Sendable {
public struct MemorialHouse: Sendable {
public let name: String
public let categories: [String]
public let bookCovers: [BookCover]
Expand All @@ -12,10 +12,4 @@ public struct MemorialHouse: Equatable, Sendable {
self.categories = categories
self.bookCovers = bookCovers
}

public static func == (lhs: MemorialHouse, rhs: MemorialHouse) -> Bool {
lhs.name == rhs.name
&& lhs.categories == rhs.categories
&& lhs.bookCovers == rhs.bookCovers
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ struct MemorialHouseUseCaseTest {
let result = await sut.execute()

// Assert 검증 단계: 결과와 기대치를 비교해서 검증하기
#expect(result == dummyMemorialHouse)
#expect(result.name == dummyMemorialHouse.name)
#expect(result.categories == dummyMemorialHouse.categories)
#expect(result.bookCovers == dummyMemorialHouse.bookCovers)
}

@Test mutating func test세글자_이상인_경우_글자_사이에_공백추가() async throws {
Expand Down

0 comments on commit e4c461b

Please sign in to comment.