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

import XCTest
@testable import EZSwiftExtensions

class UIViewTests: XCTestCase {

    func testRemoveSubviews() {
        
        let view = UIView()
        let sub1 = UIView()
        let sub2 = UIView()
        let sub3 = UIView()
        
        view.addSubview(sub1)
        view.addSubview(sub2)
        view.addSubview(sub3)
        
        XCTAssertEqual(view.subviews, [sub1, sub2, sub3])
        XCTAssertEqual(view.subviews.count, 3)
        XCTAssertEqual(view.subviews.contains(sub1) , true)
        XCTAssertEqual(view.subviews.contains(sub2) , true)
        XCTAssertEqual(view.subviews.contains(sub3) , true)

        view.removeSubviews()
        XCTAssertEqual(view.subviews.count, 0)
        XCTAssertEqual(view.subviews.contains(sub1) , false)
        XCTAssertEqual(view.subviews.contains(sub2) , false)
        XCTAssertEqual(view.subviews.contains(sub3) , false)<commit_msg>Simplified test<commit_after>//
//  UIViewTests.swift
//  EZSwiftExtensions
//
//  Created by <NAME> on 8/25/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import XCTest
@testable import EZSwiftExtensions

class UIViewTests: XCTestCase {

    func testRemoveSubviews() {
        
        let view = UIView()
        let sub1 = UIView()
        let sub2 = UIView()
        let sub3 = UIView()
        
        view.addSubview(sub1)
        view.addSubview(sub2)
        view.addSubview(sub3)
        
        XCTAssertEqual(view.subviews, [sub1, sub2, sub3])

        view.removeSubviews()
        XCTAssertEqual(view.subviews.count, 0)
{'fraction_non_alphanumeric': 0.1111764705882353, 'fraction_numerical': 0.026470588235294117, 'mean_word_length': 2.402, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3092307', 'n_tokens_mistral': 591, 'n_tokens_neox': 562, 'n_words': 108}