<commit_before>#if _runtime(_ObjC)
    
import XCTest
import Nimble

class ThrowAssertionTest: XCTestCase {
    
    func testPositiveMatch() {
        expect { () throws -> Void in fatalError() }.to(throwAssertion())
    }
    
    func testErrorThrown() {
        expect { throw NSError(domain: "test", code: 0, userInfo: nil) }.toNot(throwAssertion())
    }
    
    func testPostAssertionCodeNotRun() {
        var reachedPoint1 = false
        var reachedPoint2 = false
        
        expect {
            reachedPoint1 = true
            precondition(false, "condition message")
            reachedPoint2 = true
            }.to(throwAssertion())
        
        expect(reachedPoint1) == true
        expect(reachedPoint2) == false
    }
    
    func testNegativeMatch() {
        var reachedPoint1 = false
        
        expect { reachedPoint1 = true }.toNot(throwAssertion())
        
        expect(reachedPoint1) == true
    }<commit_msg>Updated closure signature again, making it Void? instead of Void, still trying to fix non-SwiftPM Circle builds (introduces a warning)<commit_after>#if _runtime(_ObjC)
    
import XCTest
import Nimble

class ThrowAssertionTest: XCTestCase {
    
    func testPositiveMatch() {
        expect { () throws -> Void? in fatalError() }.to(throwAssertion())
    }
    
    func testErrorThrown() {
        expect { throw NSError(domain: "test", code: 0, userInfo: nil) }.toNot(throwAssertion())
    }
    
    func testPostAssertionCodeNotRun() {
        var reachedPoint1 = false
        var reachedPoint2 = false
        
        expect {
            reachedPoint1 = true
            precondition(false, "condition message")
            reachedPoint2 = true
            }.to(throwAssertion())
        
        expect(reachedPoint1) == true
        expect(reachedPoint2) == false
    }
    
    func testNegativeMatch() {
        var reachedPoint1 = false
        
        expect { reachedPoint1 = true }.toNot(throwAssertion())
        
        expect(reachedPoint1) == true
    }
{'fraction_non_alphanumeric': 0.09211822660098522, 'fraction_numerical': 0.009852216748768473, 'mean_word_length': 2.1684867394695786, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6029591', 'n_tokens_mistral': 588, 'n_tokens_neox': 571, 'n_words': 139}