Tests/OrgCoreTests/EmacsFallbackTests.swift

design-themes-widgets
orgstar/Tests/OrgCoreTests/EmacsFallbackTests.swift history · blame · raw

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}