Skip to content

Add tests for casemapping equality/comparisons #10

@kylef

Description

@kylef

Comparing nicknames, channel names etc in various case mappings could be introduced into this test suite.

class CaseMappingTests: XCTestCase {
  func testRFC1459EqualCompare() {
    let casemap = CaseMapping.rfc1459

    XCTAssertEqual(casemap.compare("hello{}|", "HELLO[]\\"), .orderedSame)
  }

  func testRFC1459Compare() {
    let casemap = CaseMapping.rfc1459

    XCTAssertEqual(casemap.compare("hello{}|1", "HELLO[]\\2"), .orderedAscending)
  }

/// etc ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions