diff SimoleonTests/SimoleonTests.swift @ 120:cd801949925b

Remove 1000 from default currency conversion
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sun, 15 Aug 2021 11:10:39 +0100
parents 879e20d2a837
children bdedd0cc6cd1
line wrap: on
line diff
--- a/SimoleonTests/SimoleonTests.swift	Sun Aug 15 09:58:17 2021 +0100
+++ b/SimoleonTests/SimoleonTests.swift	Sun Aug 15 11:10:39 2021 +0100
@@ -17,40 +17,6 @@
     override func tearDownWithError() throws {
         // Put teardown code here. This method is called after the invocation of each test method in the class.
     }
-    
-    func testMakeConversion() {
-        // Given
-        let testAmounts = ["iawuh", Int(100), Float(3450.30), Double(12530.43435)] as [Any]
-        
-        for var amountToConvert in testAmounts {
-            // When
-            if let amountToConvert = amountToConvert as? Double {
-                // Then
-                XCTAssertEqual(amountToConvert, amountToConvert, "Amount to convert is not returning correctly")
-            } else {
-                // Then
-                amountToConvert = Int(0)
-                XCTAssertEqual(amountToConvert as! Int, 0, "Amount to convert must be 0")
-            }
-        }
-    }
-    
-    func testFormatCurrency() {
-        // Given
-        let availableIdentifiers = Locale.availableIdentifiers
-        let amount: NSDecimalNumber = 1000
-        
-        for identifier in availableIdentifiers {
-            let locale = Locale(identifier: identifier)
-            
-            let formatter = NumberFormatter()
-            formatter.locale = locale
-            formatter.numberStyle = .currency
-            
-            XCTAssertTrue((formatter.string(from: amount as NSNumber) != nil))
-        }
-        
-    }
 
     func testPerformanceExample() throws {
         // This is an example of a performance test case.