Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (18 sloc) 622 Bytes
//
// ZincFileManagerTest.m
// Zinc-iOS
//
// Created by Andy Mroczkowski on 12/30/11.
// Copyright (c) 2011 MindSnacks. All rights reserved.
//
#import "ZincFileManagerTest.h"
#import "NSFileManager+Zinc.h"
@implementation ZincFileManagerTest
- (void)testSha1
{
NSString* path = [TEST_RESOURCE_ROOT_PATH stringByAppendingPathComponent:@"360px-Grey_square_optical_illusion.png"];
NSString* sha = [[NSFileManager defaultManager] zinc_sha1ForPath:path];
STAssertNotNil(sha, @"sha is nil");
STAssertEqualObjects(sha, @"f0d25f7505e777633104888e88c68e9b9655f62f", @"sha is wrong");
}
@end
Something went wrong with that request. Please try again.