<commit_before>//
//  NSDataTrimTests.swift
//  bmap
//
//  Created by <NAME> on 12/14/15.
//  Copyright © 2015 Intrepid. All rights reserved.
//

import XCTest
@testable import SwiftWisdom


class NSDataTrimTests: XCTestCase {
    
    func testTrimRange() {
        let data = "aa 11 11 11 11 11 bb".ip_dataFromHexadecimalString()!
        let mutable = NSMutableData(data: data as Data)
        mutable.ip_trimRange(0...3)
        XCTAssert(mutable as NSData == data.ip_suffixFrom(4))
        
        
        let endMutable = NSMutableData(data: data as Data)
        endMutable.ip_trimRange(3...100)
        XCTAssert(endMutable == data.ip_prefixThrough(2))<commit_msg>isolating trim-range tests.<commit_after>//
//  NSDataTrimTests.swift
//  bmap
//
//  Created by <NAME> on 12/14/15.
//  Copyright © 2015 Intrepid. All rights reserved.
//

import XCTest
@testable import SwiftWisdom


class NSDataTrimTests: XCTestCase {
    
    func testTrimRange() {
        let data = "aa 11 11 11 11 11 bb".ip_dataFromHexadecimalString()!
        let mutable = NSMutableData(data: data as Data)
        mutable.ip_trimRange(0...3)
        XCTAssert(mutable == "11 11 bb".ip_dataFromHexadecimalString()!)
        
        
        let endMutable = NSMutableData(data: data as Data)
        endMutable.ip_trimRange(3...100)
        XCTAssert(endMutable == "aa 11 11".ip_dataFromHexadecimalString()!)
{'fraction_non_alphanumeric': 0.11055276381909548, 'fraction_numerical': 0.04450825556353195, 'mean_word_length': 2.658792650918635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5699553', 'n_tokens_mistral': 538, 'n_tokens_neox': 458, 'n_words': 111}