Skip to content

Commit 5d146d1

Browse files
committed
removed hamcrest macro
1 parent b73ba20 commit 5d146d1

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Matchers/Test/Source/Matchers/Contraint_Anchor_Matcher_Test.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import Testing
1212

1313
@MainActor
1414
struct Contraint_Anchor_Matcher_Test {
15+
16+
init() async throws {
17+
HamcrestSwiftTesting.enable()
18+
}
1519

1620

1721
@Test func cell_separatorGuide() {
@@ -20,12 +24,12 @@ struct Contraint_Anchor_Matcher_Test {
2024
cell.contentConfiguration = configuration
2125

2226
let contentView = cell.contentView
23-
#assertThat(cell.contentView, present())
27+
assertThat(cell.contentView, present())
2428

2529
cell.separatorLayoutGuide.leadingAnchor.constraint(equalTo: contentView.leadingAnchor).isActive = true
2630

2731
// then
28-
#assertThat(contentView, hasAnchor(.leading, cell.separatorLayoutGuide))
32+
assertThat(contentView, hasAnchor(.leading, cell.separatorLayoutGuide))
2933
}
3034

3135
@Test func cell_label_separatorGuide() {
@@ -35,14 +39,14 @@ struct Contraint_Anchor_Matcher_Test {
3539
let label = UILabel()
3640

3741
let contentView = cell.contentView
38-
#assertThat(cell.contentView, present())
42+
assertThat(cell.contentView, present())
3943
contentView.addSubview(label)
4044

4145

4246
cell.separatorLayoutGuide.leadingAnchor.constraint(equalTo: label.leadingAnchor).isActive = true
4347

4448
// then
45-
#assertThat(label, hasAnchor(.leading, cell.separatorLayoutGuide))
49+
assertThat(label, hasAnchor(.leading, cell.separatorLayoutGuide))
4650
}
4751

4852
}

0 commit comments

Comments
 (0)