Mercurial > public > simoleon
comparison SimoleonTests/SimoleonTests.swift @ 185:2fc95efcb1ee
connect backend
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 22 Dec 2021 16:12:23 +0100 |
parents | d2398f02e1ce |
children | 1ebd1c5dd302 |
comparison
equal
deleted
inserted
replaced
184:7cb2b0b2b3f3 | 185:2fc95efcb1ee |
---|---|
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, "BTC", "Flag name does not match") | |
59 } | |
46 | 60 |
47 func testPerformanceExample() throws { | 61 func testPerformanceExample() throws { |
48 // This is an example of a performance test case. | 62 // This is an example of a performance test case. |
49 self.measure { | 63 self.measure { |
50 // Put the code you want to measure the time of here. | 64 // Put the code you want to measure the time of here. |