mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Add extremely simple tests to make sure that each of the methods returns non-nil
This commit is contained in:
parent
f6eb49bdf7
commit
84e1ef9881
1 changed files with 15 additions and 0 deletions
|
@ -173,6 +173,21 @@ void testArray(void)
|
|||
PASS([predicate evaluateWithObject: array], "size is three")
|
||||
}
|
||||
|
||||
void testExpressions(void)
|
||||
{
|
||||
NSExpression *exp = nil;
|
||||
|
||||
// Add tests for new expressions here...
|
||||
exp = [NSExpression expressionWithFormat: @"key = %@", @"test"];
|
||||
PASS(exp != nil, "expressionWithFormat: returns non nil");
|
||||
|
||||
exp = [NSExpression expressionWithFormat: @"key = %@" arguments: @"test"];
|
||||
PASS(exp != nil, "expressionWithFormat:arguments: returns non nil");
|
||||
|
||||
exp = [NSExpression expressionWithFormat: @"key = %@" argumentArray: [NSArray arrayWithObject: @"test"]];
|
||||
PASS(exp != nil, "expressionWithFormat:argumentArray: returns non nil");
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
NSArray *filtered;
|
||||
|
|
Loading…
Reference in a new issue