mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
15 lines
388 B
Plaintext
15 lines
388 B
Plaintext
@import <Foundation/CPCache.j>
|
|
|
|
|
|
@implementation CPCacheItemTest : OJTestCase
|
|
|
|
- (void)testCacheItemWithObjectCostPosition
|
|
{
|
|
var cacheItem = [_CPCacheItem cacheItemWithObject:"Hello Cappuccino!" cost:50 position:1];
|
|
[self assert:[cacheItem object] equals:"Hello Cappuccino!"];
|
|
[self assert:[cacheItem cost] equals:50];
|
|
[self assert:[cacheItem position] equals:1];
|
|
}
|
|
|
|
@end
|