//
//  TestUtil.m
//  OminoGobo
//
//  Created by David Van Brink on 1/22/14.
//  Copyright (c) 2014 omino. All rights reserved.
//

#import "TestUtil.h"
#import "OmTestView.h"
#import "Util.h"

@implementation TestUtil

- (void) testX
{
    ASSERT_EQUALS_INT(1, 1, "WOOT");
    
    NSString *contents = @"abcdefghijklmnopqrstuvwxyz";
    
    [Util writeFileToDocumentsDirectory:@"temp.txt" contents:contents];
    
    long len1 = [Util fileSize:@"temp.txt"];
    long len2 = [Util fileSize:@"nosuchfile.txt"];
    
    ASSERT_EQUALS_INT(26, len1, "length of alphabet");
    ASSERT_EQUALS_INT(0, len2, "length of nonexistent file");
}
@end
