mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
fixes for #47618
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40462 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
073fb54804
commit
1f786ad7a8
3 changed files with 49 additions and 29 deletions
|
@ -205,6 +205,11 @@ int main()
|
|||
p = [NSPredicate predicateWithFormat: @"SELF == 'aaa'"];
|
||||
PASS([p evaluateWithObject: @"aaa"], "SELF equality works");
|
||||
|
||||
d = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
@"2", @"foo", nil];
|
||||
p = [NSPredicate predicateWithFormat: @"SELF.foo <= 2"];
|
||||
PASS([p evaluateWithObject: d], "SELF.foo <= 2");
|
||||
|
||||
p = [NSPredicate predicateWithFormat:
|
||||
@"%K like %@+$b+$c", @"$single", @"b\""];
|
||||
PASS_EQUAL([p predicateFormat], @"$single LIKE (\"b\\\"\" + $b) + $c",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue