Skip to content

Commit

Permalink
added test for invalid UInt8 ascii construction trap
Browse files Browse the repository at this point in the history
Swift SVN r25217
  • Loading branch information
mxswd committed Feb 12, 2015
1 parent 1263fb4 commit 10fc6e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/1_stdlib/Character.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,10 @@ CharacterTests.test(
{ x in { String(Character(x)) < String(Character($0)) } } as PredicateFn)
}

CharacterTests.test("non-ascii should trap") {
expectCrashLater()
let theNumber229 = UInt8(ascii: "å")
}

runAllTests()

0 comments on commit 10fc6e2

Please sign in to comment.