无法弄清楚这里发生了什么。. .
我有一个简单的单元测试,旨在测试解析器。测试用例如下所示:
[parser didStartElement:@"mobileresponse" attributes:[NSDictionary dictionaryWithObject:@"http://www.espn.com/" forKey:@"rooturl"]];
[parser didStartElement:@"content" attributes:[NSDictionary dictionaryWithObject:@"/soccer" forKey:@"mobileFriendlyUrl"]];
NSString *mobileFriendlyURL = [parser valueForKey:@"mobile_friendly_url"];
STAssertEqualObjects(@"http://www.espn.com/soccer", mobileFriendlyURL, @"url path should be appended to root url");
现在每次都失败,但这是输出
'http://www.espn.com/soccer' should be equal to 'http://www.espn.com/soccer' url path should be appended to root url
我要疯了还是完全一样?有谁知道为什么这会引发错误?