diff options
Diffstat (limited to 'bindings/objc/test/SwordLocaleManagerTest.swift')
-rw-r--r-- | bindings/objc/test/SwordLocaleManagerTest.swift | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bindings/objc/test/SwordLocaleManagerTest.swift b/bindings/objc/test/SwordLocaleManagerTest.swift new file mode 100644 index 0000000..7360af3 --- /dev/null +++ b/bindings/objc/test/SwordLocaleManagerTest.swift @@ -0,0 +1,30 @@ +// +// SwordLocaleManagerTest.swift +// ObjCSword +// +// Created by Manfred Bergmann on 02.10.16. +// +// + +import XCTest + +class SwordLocaleManagerTest: XCTestCase { + + override func setUp() { + super.setUp() + } + + override func tearDown() { + super.tearDown() + } + + func testDefaultLocalSetup() { + let locMgr = SwordLocaleManager.default() + locMgr?.initLocale() + + let defaultLocName = locMgr?.getDefaultLocaleName() + print(defaultLocName) + XCTAssert(defaultLocName != nil) + XCTAssert(defaultLocName == "de") + } +} |