Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

Commit

Permalink
Add integration tests for number of localizations
Browse files Browse the repository at this point in the history
This proves the issue described in FormatterKit#219.
  • Loading branch information
yas375 committed Aug 30, 2016
1 parent 7d45cac commit dcd21df
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IntegrationTests/Carthage-OSX/ExampleTests/ExampleTests.swift
Expand Up @@ -14,4 +14,8 @@ class ExampleTests: XCTestCase {
let a = AppDelegate()
XCTAssertEqual(a.foo(), "il y a 1 heure")
}

func testNumberOfLocalizations() {
XCTAssertEqual(NSBundle.mainBundle().localizations.count, 3) // Base, fr, en
}
}
4 changes: 4 additions & 0 deletions IntegrationTests/Carthage-iOS/ExampleTests/ExampleTests.swift
Expand Up @@ -14,4 +14,8 @@ class ExampleTests: XCTestCase {
let a = AppDelegate()
XCTAssertEqual(a.foo(), "hace 3 semanas")
}

func testNumberOfLocalizations() {
XCTAssertEqual(NSBundle.mainBundle().localizations.count, 2)
}
}
Expand Up @@ -14,4 +14,8 @@ class ExampleTests: XCTestCase {
let a = AppDelegate()
XCTAssertEqual(a.foo(), "hace 3 semanas")
}

func testNumberOfLocalizations() {
XCTAssertEqual(NSBundle.mainBundle().localizations.count, 2)
}
}
Expand Up @@ -14,4 +14,8 @@ class ExampleTests: XCTestCase {
let a = AppDelegate()
XCTAssertEqual(a.foo(), "il y a 1 heure")
}

func testNumberOfLocalizations() {
XCTAssertEqual(NSBundle.mainBundle().localizations.count, 3) // Base, en, es
}
}
Expand Up @@ -20,4 +20,8 @@ - (void)testFoo {
XCTAssertEqualObjects(a.foo, @"vor 1 Stunde");
}

- (void)testNumberOfLocalizations {
XCTAssertEqual([NSBundle mainBundle].localizations.count, 2);
}

@end
Expand Up @@ -14,4 +14,8 @@ class ExampleTests: XCTestCase {
let a = AppDelegate()
XCTAssertEqual(a.foo(), "hace 3 semanas")
}

func testNumberOfLocalizations() {
XCTAssertEqual(NSBundle.mainBundle().localizations.count, 2)
}
}
Expand Up @@ -14,4 +14,8 @@ class ExampleTests: XCTestCase {
let a = AppDelegate()
XCTAssertEqual(a.foo(), "hace 3 semanas")
}

func testNumberOfLocalizations() {
XCTAssertEqual(NSBundle.mainBundle().localizations.count, 2)
}
}

0 comments on commit dcd21df

Please sign in to comment.