Skip to content

Commit

Permalink
Correct a long-broken test because expectFailureMessageRegex has been…
Browse files Browse the repository at this point in the history
… a no-op for ages
  • Loading branch information
younata committed Sep 12, 2024
1 parent 9f8a4cf commit e79eca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/NimbleObjectiveCTests/ObjCBeEmptyTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ - (void)testItDoesNotMatchNil {
}

- (void)testItReportsTypesItMatchesAgainst {
expectFailureMessageRegex(@"expected to be empty (only works for NSArrays, NSSets, NSIndexSets, NSDictionaries, NSHashTables, and NSStrings), got [_a-zA-Z]+Number type", ^{
expectFailureMessageRegex(@"expected to be empty \\(only works for NSArrays, NSSets, NSIndexSets, NSDictionaries, NSHashTables, and NSStrings\\), got [_a-zA-Z]+Number type", ^{
expect(@1).to(beEmpty());
});
expectFailureMessageRegex(@"expected to not be empty (only works for NSArrays, NSSets, NSIndexSets, NSDictionaries, NSHashTables, and NSStrings), got [_a-zA-Z]+Number type", ^{
expectFailureMessageRegex(@"expected to not be empty \\(only works for NSArrays, NSSets, NSIndexSets, NSDictionaries, NSHashTables, and NSStrings\\), got [_a-zA-Z]+Number type", ^{
expect(@1).toNot(beEmpty());
});
}
Expand Down

0 comments on commit e79eca8

Please sign in to comment.