Open
Description
I've seen in the wild servers send host mask components in the incorrect order. We should include a test to ensure that the support in wrong order is correct.
class NickTests: XCTestCase {
// ...
func testNickInitializationFromHostmaskWithWrongOrder() {
let nick = Nick(hostmask: "kyle@hostname!ident")
XCTAssertEqual(nick.nickname, "kyle")
XCTAssertEqual(nick.ident, "ident")
XCTAssertEqual(nick.hostname, "hostname!ident")
}
}
Metadata
Metadata
Assignees
Labels
No labels