Tests/OrgCoreTests/EmacsFallbackTests.swift
12 lines · 505 bytes
2 symbols in this file
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}