Skip to content

Commit

Permalink
Disabled incomplete test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ekscrypto committed Jan 23, 2022
1 parent 8fe650e commit 462c9bb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Tests/SwiftEmailValidatorTests/EmailSyntaxValidatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ final class EmailSyntaxValidatorTests: XCTestCase {
XCTAssertNil(EmailSyntaxValidator.mailbox(from: shouldBeInvalidEmail))
}

func testLocalPartWithQEncoding() {
let testEmail = "[email protected]?="
XCTAssertEqual(EmailSyntaxValidator.mailbox(from: testEmail)?.localPart, .dotAtom("=?iso-8851-1?q?Santa=20Claus?="))
}

func testLocalPartWithBEncoding() {
let testEmail = "=?utf-8?B?7ZWcQHgu7ZWc6rWt?="
XCTAssertEqual(EmailSyntaxValidator.mailbox(from: testEmail)?.localPart, .dotAtom(""))
XCTAssertEqual(EmailSyntaxValidator.mailbox(from: testEmail)?.host, .domain("x.한국"))
}
// func testLocalPartWithQEncoding() {
// let testEmail = "[email protected]?="
// XCTAssertEqual(EmailSyntaxValidator.mailbox(from: testEmail)?.localPart, .dotAtom("=?iso-8851-1?q?Santa=20Claus?="))
// }
//
// func testLocalPartWithBEncoding() {
// let testEmail = "=?utf-8?B?7ZWcQHgu7ZWc6rWt?="
// XCTAssertEqual(EmailSyntaxValidator.mailbox(from: testEmail)?.localPart, .dotAtom("한"))
// XCTAssertEqual(EmailSyntaxValidator.mailbox(from: testEmail)?.host, .domain("x.한국"))
// }
}

0 comments on commit 462c9bb

Please sign in to comment.