<commit_before>//
//  NetworkObjectsTests.swift
//  NetworkObjectsTests
//
//  Created by <NAME> on 9/12/14.
//  Copyright (c) 2014 ColemanCDA. All rights reserved.
//

#if os(iOS)
import UIKit
#endif
#if os(OSX)
import AppKit
#endif

import Foundation
import XCTest
import CoreData
import NetworkObjects
import ExSwift

class NetworkObjectsTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    func testFrameworkVersion() {
        
        let frameworkBundle = NSBundle(identifier: "com.ColemanCDA.NetworkObjects")!
        
        let shortFrameworkVersion = frameworkBundle.infoDictionary!["CFBundleShortVersionString"] as String
        
        let frameworkVersion = frameworkBundle.infoDictionary![kCFBundleVersionKey]! as String
        
        println("Testing NetworkObjects \(shortFrameworkVersion) Build \(frameworkVersion)")
        
        XCTAssert(shortFrameworkVersion != "1", "Short framework version (\(shortFrameworkVersion)) should be greater than 1")
    }
    
    func testStoreInit() {
        // This is an example of a functional test case.
        
        let store = Store(managedObjectModel: NSManagedObjectModel(), managedObjectContextConcurrencyType: NSManagedObjectContextConcurrencyType.MainQueueConcurrencyType, serverURL: NSURL(string: "http://localhost:8080")!, prettyPrintJSON: true, resourceIDAttributeName: "id", dateCachedAttributeName: "dateCached", searchPath: "search")
        
        XCTAssert(store.dynamicType === Store.self, "Store should have been initialized")
    }
    
    func testServerInit() {
        // This is an example of a functional test case.
        
        
        
        XCTAssert(true, "Pass")<commit_msg>updated unit test for version number<commit_after>//
//  NetworkObjectsTests.swift
//  NetworkObjectsTests
//
//  Created by <NAME> on 9/12/14.
//  Copyright (c) 2014 ColemanCDA. All rights reserved.
//

#if os(iOS)
import UIKit
#endif
#if os(OSX)
import AppKit
#endif

import Foundation
import XCTest
import CoreData
import NetworkObjects
import ExSwift

class NetworkObjectsTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    func testFrameworkVersion() {
        
        let frameworkBundle = NSBundle(identifier: "com.ColemanCDA.NetworkObjects")!
        
        let shortFrameworkVersion = frameworkBundle.infoDictionary!["CFBundleShortVersionString"] as String
        
        let frameworkVersion = frameworkBundle.infoDictionary![kCFBundleVersionKey]! as String
        
        println("Testing NetworkObjects \(shortFrameworkVersion) Build \(frameworkVersion)")
        
        XCTAssert(shortFrameworkVersion != "1", "Short framework version (\(shortFrameworkVersion)) should not equal 1")
        
        XCTAssert(frameworkVersion.toUInt()! > 1, "Framework version (\(frameworkVersion)) should be greater than 1")
    }
    
    func testStoreInit() {
        // This is an example of a functional test case.
        
        let store = Store(managedObjectModel: NSManagedObjectModel(), managedObjectContextConcurrencyType: NSManagedObjectContextConcurrencyType.MainQueueConcurrencyType, serverURL: NSURL(string: "http://localhost:8080")!, prettyPrintJSON: true, resourceIDAttributeName: "id", dateCachedAttributeName: "dateCached", searchPath: "search")
        
        XCTAssert(store.dynamicType === Store.self, "Store should have been initialized")
    }
    
    func testServerInit() {
        // This is an example of a functional test case.
        
        
        
        XCTAssert(true, "Pass")
{'fraction_non_alphanumeric': 0.0862151777137368, 'fraction_numerical': 0.007684918347742555, 'mean_word_length': 2.985645933014354, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1887868', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1080, 'n_words': 337}