<commit_before>//
//  SwiftArmyExampleFloatTests.swift
//  SwiftArmyExample
//
//  Created by <NAME>. on 5/29/15.
//  Copyright (c) 2015 @apradanas. All rights reserved.
//

import SwiftArmy
import Quick
import Nimble

class SwiftArmyExampleFloatTests: QuickSpec {

    override func spec() {
        
        describe("instance methods") {
            
            it("ceil") {
                expect(Float(0).ceil()) == Float(0)
                
                expect(Float(99.999999).ceil()).to(beCloseTo(100, within: 0.0001))
                expect(Float(99.001).ceil()).to(beCloseTo(100, within: 0.0001))
                expect(Float(99.5).ceil()).to(beCloseTo(100, within: 0.0001))
                
                expect(Float(-99.999999).ceil()).to(beCloseTo(-99, within: 0.0001))
                expect(Float(-99.001).ceil()).to(beCloseTo(-99, within: 0.0001))
                expect(Float(-99.5).ceil()).to(beCloseTo(-99, within: 0.0001))
            }
            
            it("floor") {
                expect(Float(0).floor()) == Float(0)
                
                expect(Float(99.999999).floor()).to(beCloseTo(99, within: 0.0001))
                expect(Float(99.001).floor()).to(beCloseTo(99, within: 0.0001))
                expect(Float(99.5).floor()).to(beCloseTo(99, within: 0.0001))
                
                expect(Float(-99.999999).floor()).to(beCloseTo(-100, within: 0.0001))
                expect(Float(-99.001).floor()).to(beCloseTo(-100, within: 0.0001))
                expect(Float(-99.5).floor()).to(beCloseTo(-100, within: 0.0001))
            }
        }
    }
}<commit_msg>Fix float tests<commit_after>//
//  SwiftArmyExampleFloatTests.swift
//  SwiftArmyExample
//
//  Created by <NAME>. on 5/29/15.
//  Copyright (c) 2015 @apradanas. All rights reserved.
//

import SwiftArmy
import Quick
import Nimble

class SwiftArmyExampleFloatTests: QuickSpec {

    override func spec() {
        
        describe("instance methods") {
            
            it("ceil") {
                expect(Float(0).ceil()) == Float(0)
                
                expect(Float(99.999999).ceil()).to(beCloseTo(100, within: 0.0001))
                expect(Float(99.001).ceil()).to(beCloseTo(100, within: 0.0001))
                expect(Float(99.5).ceil()).to(beCloseTo(100, within: 0.0001))
                
                expect(Float(-99.99999).ceil()).to(beCloseTo(-99, within: 0.0001))
                expect(Float(-99.001).ceil()).to(beCloseTo(-99, within: 0.0001))
                expect(Float(-99.5).ceil()).to(beCloseTo(-99, within: 0.0001))
            }
            
            it("floor") {
                expect(Float(0).floor()) == Float(0)
                
                expect(Float(99.99999).floor()).to(beCloseTo(99, within: 0.0001))
                expect(Float(99.001).floor()).to(beCloseTo(99, within: 0.0001))
                expect(Float(99.5).floor()).to(beCloseTo(99, within: 0.0001))
                
                expect(Float(-99.999999).floor()).to(beCloseTo(-100, within: 0.0001))
                expect(Float(-99.001).floor()).to(beCloseTo(-100, within: 0.0001))
                expect(Float(-99.5).floor()).to(beCloseTo(-100, within: 0.0001))
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.1724137931034483, 'fraction_numerical': 0.1022167487684729, 'mean_word_length': 1.8081244598098531, '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': '5010925', 'n_tokens_mistral': 1245, 'n_tokens_neox': 985, 'n_words': 144}