Files
cappuccino/Tests/Foundation
Malte Tancred 26bb54472f Fixed: preserve type of boolean values when parsing CPPredicate format
When parsing a predicate format that contains a constant boolean expression
(e.g., 'key = YES') the value of the returned constant value expression has
the wrong type. Instead of using native types as values, the parser uses
[CPNumber +numberWithBool:].

This commit changes the format parser (CPPredicateScanner) to use native
booleans for constant value expression.

There's a test case that checks the parse result and an additional test
that ensures boolean expressions evaluate as expected with different kinds
of objects. The latter test passed before the fix but was added to ensure
compliance with Cocoa.
2015-08-12 17:05:56 +02:00
..
2014-07-10 11:39:43 -07:00
2015-02-26 22:07:15 -05:00
2010-12-02 11:44:42 -08:00
2014-11-01 09:26:37 -04:00
2013-01-24 00:08:47 +00:00
2013-01-24 09:01:54 +08:00
2011-05-04 19:07:06 +02:00
2015-02-03 16:46:49 -08:00
2012-03-12 20:14:11 +00:00
2014-12-16 21:43:19 +01:00
2010-11-13 02:29:04 +01:00
2015-02-03 16:46:49 -08:00
2013-01-19 02:11:37 +00:00