mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix test cases for Shortcut (#1258)
This commit is contained in:
parent
dc57290775
commit
3ef3e7241e
@ -57,15 +57,15 @@ final class ShortcutTests: XCTestCase {
|
||||
func testShortcutSymbols () {
|
||||
|
||||
// test modifier symbols
|
||||
XCTAssertEqual(Shortcut(keySpecChars: "^$a").description, " A")
|
||||
XCTAssertEqual(Shortcut(keySpecChars: "~@b").description, " B")
|
||||
XCTAssertEqual(Shortcut(keySpecChars: "^$a").description, "^ ⇧ A")
|
||||
XCTAssertEqual(Shortcut(keySpecChars: "~@b").description, "⌥ ⌘ B")
|
||||
|
||||
// test unprintable keys
|
||||
let f10 = String(UnicodeScalar(NSF10FunctionKey)!)
|
||||
XCTAssertEqual(Shortcut(keySpecChars: "@" + f10).description, " F10")
|
||||
XCTAssertEqual(Shortcut(keySpecChars: "@" + f10).description, "⌘ F10")
|
||||
|
||||
let delete = String(UnicodeScalar(NSDeleteCharacter)!)
|
||||
XCTAssertEqual(Shortcut(keySpecChars: "@" + delete).description, " ")
|
||||
XCTAssertEqual(Shortcut(keySpecChars: "@" + delete).description, "⌘ ⌦")
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user