mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 14:07:03 +00:00
19 lines
423 B
Plaintext
19 lines
423 B
Plaintext
@import <Foundation/Foundation.j>
|
|
|
|
@implementation Cucumber (CuCapp)
|
|
|
|
- (CPString)valueIsEqual:(CPArray)params
|
|
{
|
|
var obj = cucumber_objects[params[0]],
|
|
value = params[1];
|
|
|
|
if (!obj)
|
|
return '{"result" : "__CUKE_ERROR__"}';
|
|
|
|
if ([obj respondsToSelector:@selector(stringValue)] && value === [obj stringValue])
|
|
return '{"result" : "OK"}';
|
|
|
|
return '{"result" : "__CUKE_ERROR__"}';
|
|
}
|
|
|
|
@end |