mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
fix non-portable code in testcase
This commit is contained in:
parent
1d473e573a
commit
c79b9844bd
1 changed files with 3 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue