Skip to content

Commit

Permalink
fix non-portable code in testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Jun 23, 2024
1 parent 1d473e5 commit c79b984
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/base/NSPredicate/basic.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ void testExpressions(void)
id value = [expression expressionValueWithObject: nil context: nil];
PASS(value != nil, "Expression evaluation returns a value");

NSExpression *expression2 = [NSExpression expressionWithFormat: @"%f*%f" argumentArray:@[@3.4,@3.1]];
NSExpression *expression2 = [NSExpression expressionWithFormat: @"%f*%f"
argumentArray: [NSArray arrayWithObjects:
[NSNumber numberWithFloat: 3.4], [NSNumber numberWithFloat: 3.1], nil]];
PASS(expression2 != nil, "expressionWithFormat:argumentArray: returns an initialized expression");

id value2 = [expression2 expressionValueWithObject: nil context: nil];
Expand Down

0 comments on commit c79b984

Please sign in to comment.