<commit_before>//
//  UserDefaultTests.swift
//  EZSwiftExtensions
//
//  Created by <NAME> on 8/25/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import XCTest

class UserDefaultTests: XCTestCase {

    

}
<commit_msg><Description> : Adding test for subscript extension of UserDefault class.<commit_after>//
//  UserDefaultTests.swift
//  EZSwiftExtensions
//
//  Created by <NAME> on 8/25/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import XCTest
@testable import EZSwiftExtensions

class UserDefaultTests: XCTestCase {

    override func setUp() {
        super.setUp()
    }
    
    override func tearDown() {
        super.tearDown()
    }
    
    func testSubscript() {
        let testUserDefaults = UserDefaults(suiteName: "TEST")
        testUserDefaults?.set("bar", forKey: "foo")
        XCTAssertEqual(testUserDefaults?["foo"] as! String, "bar")
        XCTAssertNil(testUserDefaults?["wrongkey"])
    }
}

{'fraction_non_alphanumeric': 0.12579281183932348, 'fraction_numerical': 0.019027484143763214, 'mean_word_length': 2.8811475409836067, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '2970056', 'n_tokens_mistral': 327, 'n_tokens_neox': 298, 'n_words': 73}