<commit_before>//
//  StringExtensionsTests.swift
//  RGAppToolsTests
//
//  Created by RAIN on 2020/1/21.
//  Copyright © 2020 Smartech. All rights reserved.
//

import XCTest
@testable import RGAppTools

class StringExtensionTests: XCTestCase {

    func testStringTrans() {
        let s = "5"
        XCTAssertEqual(s.rat.intValue, 5)
    }

}<commit_msg>test (String Extension Test) : add test item<commit_after>//
//  StringExtensionsTests.swift
//  RGAppToolsTests
//
//  Created by RAIN on 2020/1/21.
//  Copyright © 2020 Smartech. All rights reserved.
//

import XCTest
@testable import RGAppTools

class StringExtensionTests: XCTestCase {

    func testStringTrans() {
        let s = "5"
        XCTAssertEqual(s.rat.intValue, 5)
        
        let lh = UILabel.rat.defaultHeight
        XCTAssertEqual(lh, 21.0)
        
        let bh = UIButton.rat.defaultHeight
        XCTAssertEqual(bh, 44.0)
    }

}
{'fraction_non_alphanumeric': 0.10543478260869565, 'fraction_numerical': 0.034782608695652174, 'mean_word_length': 2.4886363636363638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3214506', 'n_tokens_mistral': 340, 'n_tokens_neox': 304, 'n_words': 76}