Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for casemapping equality/comparisons #10

Open
kylef opened this issue Oct 30, 2017 · 1 comment
Open

Add tests for casemapping equality/comparisons #10

kylef opened this issue Oct 30, 2017 · 1 comment

Comments

@kylef
Copy link

kylef commented Oct 30, 2017

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 ...
}
@DanielOaks
Copy link
Member

Very good idea, will be doing this for sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants