comparison SimoleonTests/SimoleonTests.swift @ 187:13d5a8deb6c2

add AboutView and FavoritesView
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Thu, 23 Dec 2021 16:12:22 +0100
parents 1ebd1c5dd302
children
comparison
equal deleted inserted replaced
186:1ebd1c5dd302 187:13d5a8deb6c2
41 ) 41 )
42 42
43 let quoteCurrencies = currencyList.getCurrencies() 43 let quoteCurrencies = currencyList.getCurrencies()
44 XCTAssertEqual(quoteCurrencies.count, 18, "Quote currencies does not match") 44 XCTAssertEqual(quoteCurrencies.count, 18, "Quote currencies does not match")
45 } 45 }
46
47 func testGetCurrencyFlagName() throws {
48 let currency = SupportedCurrencyResult(code: "EUR", name: "Euro", isCrypto: 0)
49 let flagName = getFlagName(currency: currency)
50
51 XCTAssertEqual(flagName, "EU", "Flag name does not match")
52 }
53
54 func testGetCryptoFlagName() throws {
55 let currency = SupportedCurrencyResult(code: "BTC", name: "Bitcoin", isCrypto: 1)
56 let flagName = getFlagName(currency: currency)
57
58 XCTAssertEqual(flagName, "", "Flag name does not match")
59 }
60 46
61 func testPerformanceExample() throws { 47 func testPerformanceExample() throws {
62 // This is an example of a performance test case. 48 // This is an example of a performance test case.
63 self.measure { 49 self.measure {
64 // Put the code you want to measure the time of here. 50 // Put the code you want to measure the time of here.