<commit_before>import XCTest
@testable import Peppermint

class KeyPathConstraintTests: XCTestCase {
    
    struct FakeData {
        var integer: Int
        var string: String
    }
    
    func testDynamicLookupExtension() {
        let data = FakeData(integer: 10, string: "ten")
        let sut: KeyPathConstraint<FakeData, Int, FakeError> = .keyPath(\.integer) {
            .block {
                $0 == 10
            } errorBuilder: {
                .Invalid
            }
        }
        
        let result = sut.evaluate(with: data)
        
        switch result {
        case .success:
            XCTAssertTrue(true)
        default: XCTFail()
        }
    }
}<commit_msg>Fix failing KeyPathConstraintTests on Linux<commit_after>import XCTest
@testable import Peppermint

class KeyPathConstraintTests: XCTestCase {
    
    struct FakeData {
        var integer: Int
        var string: String
    }
    
    func testDynamicLookupExtension() {
        let data = FakeData(integer: 10, string: "ten")
        let sut: KeyPathConstraint<FakeData, Int, FakeError> = .keyPath(\.integer) {
            BlockConstraint {
                $0 == 10
            } errorBuilder: {
                .Invalid
            }
        }
        
        let result = sut.evaluate(with: data)
        
        switch result {
        case .success:
            XCTAssertTrue(true)
        default: XCTFail()
        }
    }
}
{'fraction_non_alphanumeric': 0.08315863032844165, 'fraction_numerical': 0.0069881201956673656, 'mean_word_length': 1.5848375451263539, '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': '6884641', 'n_tokens_mistral': 416, 'n_tokens_neox': 396, 'n_words': 96}