oficina / base Public

Clone
git clone https://amadan.net/oficina/base

Plain git — no account needed to clone.

Download

Download this file

1@testable import BaseKit
2import XCTest
3
4final class CatalogTests: XCTestCase {
5 /// The catalog is in the bundle and answers by copy review's ids.
6 func testCatalogAnswersByID() {
7 XCTAssertEqual(BaseText.text("native.signin.title"), "Sign in to Base")
8 XCTAssertEqual(BaseText.format("native.signin.code.lede", ["email": "ana@fennel.ie"]), "We sent a code to ana@fennel.ie.")
9 }
10}
11
12final class PluralTests: XCTestCase {
13 /// Copy review's plural: one = "1 job needs you", other = "{count} jobs need you".
14 func testTheBadgesPlural() {
15 XCTAssertEqual(BaseText.plural("native.sidebar.ask.badge_a11y", 1), "1 job needs you")
16 XCTAssertEqual(BaseText.plural("native.sidebar.ask.badge_a11y", 3), "3 jobs need you")
17 }
18}
19