<commit_before>import XCTest
@testable import Vapor

class CookieTests: XCTestCase {
    static let allTests = [
        ("testInit_setsNameCorrectly", testInit_setsNameCorrectly),
        ("testInit_setsValueCorrectly", testInit_setsValueCorrectly),
        ("testInit_setsExpiresCorrectly", testInit_setsExpiresCorrectly),
        ("testInit_setsMaxAgeCorrectly", testInit_setsMaxAgeCorrectly),
        ("testInit_setsDomainCorrectly", testInit_setsDomainCorrectly),
        ("testInit_setsPathCorrectly", testInit_setsPathCorrectly),
        ("testInit_defaultsToInsecure", testInit_defaultsToInsecure),
        ("testInit_setsSecureCorrectly", testInit_setsSecureCorrectly),
        ("testInit_defaultsToNonHTTPOnly", testInit_defaultsToNonHTTPOnly),
        ("testInit_setsHTTPOnlyCorrectly", testInit_setsHTTPOnlyCorrectly),
        ("testHashValue_usesNamesHash", testHashValue_usesNamesHash),
        ("testEquality_reliesSolelyOnName", testEquality_reliesSolelyOnName)
    ]

    func testInit_setsNameCorrectly() {
        let subject = Cookie(name: "Foo", value: "Bar")
        XCTAssertEqual(subject.name, "Foo")
    }

    func testInit_setsValueCorrectly() {
        let subject = Cookie(name: "Foo", value: "Bar")
        XCTAssertEqual(subject.value, "Bar")
    }

    func testInit_setsExpiresCorrectly() {
        let subject = Cookie(name: "Foo", value: "Bar", expires: "2999-12-30 :23:59:59")
        XCTAssertEqual(subject.expires, "2999-12-30 :23:59:59")
    }<commit_msg>Tweak cookie Expires test to match RFC<commit_after>import XCTest
@testable import Vapor

class CookieTests: XCTestCase {
    static let allTests = [
        ("testInit_setsNameCorrectly", testInit_setsNameCorrectly),
        ("testInit_setsValueCorrectly", testInit_setsValueCorrectly),
        ("testInit_setsExpiresCorrectly", testInit_setsExpiresCorrectly),
        ("testInit_setsMaxAgeCorrectly", testInit_setsMaxAgeCorrectly),
        ("testInit_setsDomainCorrectly", testInit_setsDomainCorrectly),
        ("testInit_setsPathCorrectly", testInit_setsPathCorrectly),
        ("testInit_defaultsToInsecure", testInit_defaultsToInsecure),
        ("testInit_setsSecureCorrectly", testInit_setsSecureCorrectly),
        ("testInit_defaultsToNonHTTPOnly", testInit_defaultsToNonHTTPOnly),
        ("testInit_setsHTTPOnlyCorrectly", testInit_setsHTTPOnlyCorrectly),
        ("testHashValue_usesNamesHash", testHashValue_usesNamesHash),
        ("testEquality_reliesSolelyOnName", testEquality_reliesSolelyOnName)
    ]

    func testInit_setsNameCorrectly() {
        let subject = Cookie(name: "Foo", value: "Bar")
        XCTAssertEqual(subject.name, "Foo")
    }

    func testInit_setsValueCorrectly() {
        let subject = Cookie(name: "Foo", value: "Bar")
        XCTAssertEqual(subject.value, "Bar")
    }

    func testInit_setsExpiresCorrectly() {
        let subject = Cookie(name: "Foo", value: "Bar", expires: "Wed, 20 Jul 2016 13:20:15 GMT")
        XCTAssertEqual(subject.expires, "Wed, 20 Jul 2016 13:20:15 GMT")
    }
{'fraction_non_alphanumeric': 0.10029693170570769, 'fraction_numerical': 0.017156054107555264, 'mean_word_length': 4.542961608775137, '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': '6247945', 'n_tokens_mistral': 1020, 'n_tokens_neox': 913, 'n_words': 152}