Tests/OrgCoreTests/EmacsFallbackTests.swift

5ab870e0abd4140b7b83076712bf63910aaa4ec0
orgstar/Tests/OrgCoreTests/EmacsFallbackTests.swift

12 lines · 505 bytes

 1import Testing
 2@testable import OrgCore
 3
 4struct EmacsFallbackWordingTests {
 5    /// The Developer ID and iOS apps keep pointing at Emacs; the App Store app doesn't.
 6    @Test func wording() {
 7        #expect(EmacsFallback.offered)
 8        #expect(EmacsFallback.wording("needs Emacs", "isn't supported") == "needs Emacs")
 9        #expect(EmacsFallback.wording("needs Emacs", "isn't supported", offered: false) == "isn't supported")
10        #expect(TableRecalculate.emacsMessage == "needs Emacs: ")
11    }
12}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form