changeset 102:a17ccf20f4a3

Delete tests
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Sun, 31 Jan 2021 18:23:26 +0100
parents 57e5196feb08
children 37079599f9c8
files LazyBear.xcodeproj/project.pbxproj LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate lazybear/LazyBearApp.swift lazybear/Tests/BarChartTutorial.swift lazybear/Tests/LineChartTutorial.swift
diffstat 5 files changed, 0 insertions(+), 111 deletions(-) [+]
line wrap: on
line diff
--- a/LazyBear.xcodeproj/project.pbxproj	Sun Jan 31 18:16:26 2021 +0100
+++ b/LazyBear.xcodeproj/project.pbxproj	Sun Jan 31 18:23:26 2021 +0100
@@ -10,8 +10,6 @@
 		95002580256D17D9008FFD28 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9500257F256D17D9008FFD28 /* StoreKit.framework */; };
 		95078FD125BF4E640004FA75 /* CloudKitManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95078FD025BF4E640004FA75 /* CloudKitManager.swift */; };
 		950B79F625B1CB7A00E5DB5B /* CompanyList.swift in Sources */ = {isa = PBXBuildFile; fileRef = 950B79F525B1CB7A00E5DB5B /* CompanyList.swift */; };
-		9520F0AB25C7074D00692610 /* LineChartTutorial.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9520F0AA25C7074D00692610 /* LineChartTutorial.swift */; };
-		9520F0AE25C7115100692610 /* BarChartTutorial.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9520F0AD25C7115100692610 /* BarChartTutorial.swift */; };
 		9520F0B225C712D000692610 /* LineChartShape.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9520F0B125C712D000692610 /* LineChartShape.swift */; };
 		9520F0B525C7131300692610 /* LineChart.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9520F0B425C7131300692610 /* LineChart.swift */; };
 		9537923625BDF85D0001F82B /* LogoApi.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9537923525BDF85D0001F82B /* LogoApi.swift */; };
@@ -54,8 +52,6 @@
 		9500257F256D17D9008FFD28 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
 		95078FD025BF4E640004FA75 /* CloudKitManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = CloudKitManager.swift; path = LazyBear/CloudKitManager.swift; sourceTree = SOURCE_ROOT; };
 		950B79F525B1CB7A00E5DB5B /* CompanyList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompanyList.swift; sourceTree = "<group>"; };
-		9520F0AA25C7074D00692610 /* LineChartTutorial.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = LineChartTutorial.swift; path = lazybear/Tests/LineChartTutorial.swift; sourceTree = SOURCE_ROOT; };
-		9520F0AD25C7115100692610 /* BarChartTutorial.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = BarChartTutorial.swift; path = lazybear/Tests/BarChartTutorial.swift; sourceTree = SOURCE_ROOT; };
 		9520F0B125C712D000692610 /* LineChartShape.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = LineChartShape.swift; path = lazybear/Views/LineChartShape.swift; sourceTree = SOURCE_ROOT; };
 		9520F0B425C7131300692610 /* LineChart.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = LineChart.swift; path = lazybear/Views/LineChart.swift; sourceTree = SOURCE_ROOT; };
 		9537923525BDF85D0001F82B /* LogoApi.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = LogoApi.swift; path = LazyBear/Network/LogoApi.swift; sourceTree = SOURCE_ROOT; };
@@ -121,8 +117,6 @@
 		952F791C2598B1CD00FF929F /* Tests */ = {
 			isa = PBXGroup;
 			children = (
-				9520F0AA25C7074D00692610 /* LineChartTutorial.swift */,
-				9520F0AD25C7115100692610 /* BarChartTutorial.swift */,
 			);
 			path = Tests;
 			sourceTree = "<group>";
@@ -314,8 +308,6 @@
 				95FE646B25C30B880052832E /* ApiModel.swift in Sources */,
 				95F6C30525BAF599003CF389 /* CompanyHeader.swift in Sources */,
 				95612C512598D48200F7698F /* SearchBar.swift in Sources */,
-				9520F0AE25C7115100692610 /* BarChartTutorial.swift in Sources */,
-				9520F0AB25C7074D00692610 /* LineChartTutorial.swift in Sources */,
 				95E411BE25BEEA6C00A9C23F /* WatchlistRow.swift in Sources */,
 				95AD892425C5D8A200BCE8E4 /* AddWatchlist.swift in Sources */,
 				950B79F625B1CB7A00E5DB5B /* CompanyList.swift in Sources */,
Binary file LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed
--- a/lazybear/LazyBearApp.swift	Sun Jan 31 18:16:26 2021 +0100
+++ b/lazybear/LazyBearApp.swift	Sun Jan 31 18:23:26 2021 +0100
@@ -19,14 +19,4 @@
                 .environmentObject(apiAccess)  // Api info (url and token)
         }
     }
-    
-    // Line chart tutorial
-    func randomSample() -> [Double] {
-        var randomArray = [Double]()
-        for _ in 0..<100 {
-            randomArray.append(Double.random(in: 1...100))
-        }
-        
-        return randomArray
-    }
 }
--- a/lazybear/Tests/BarChartTutorial.swift	Sun Jan 31 18:16:26 2021 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-//
-//  BarChartTutorial.swift
-//  LazyBear
-//
-//  Created by Dennis Concepción Martín on 31/1/21.
-//
-
-import SwiftUI
-
-struct DataPoint2: Identifiable {
-    let id: Int
-    let values: Double
-    let color: Color
-    let title: String
-    
-    init(value: Double, color: Color, title: String = "") {
-        self.id = Int.random(in: 1..<Int.max)
-        self.values = value
-        self.color = color
-        self.title = title
-    }
-    
-    init(id: Int, value: Double, color: Color, title: String = "") {
-        self.id = Int.random(in: 1..<Int.max)
-        self.values = value
-        self.color = color
-        self.title = title
-    }
-}
-
-struct BarChartTutorial: View {
-    var body: some View {
-        Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
-    }
-}
-
-struct BarChartTutorial_Previews: PreviewProvider {
-    static var previews: some View {
-        BarChartTutorial()
-    }
-}
--- a/lazybear/Tests/LineChartTutorial.swift	Sun Jan 31 18:16:26 2021 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-//
-//  LineChartTutorial.swift
-//  LazyBear
-//
-//  Created by Dennis Concepción Martín on 31/1/21.
-//
-
-import SwiftUI
-
-struct LineChartTutorial: View {
-    @State private var data = makeDataPoints()
-    
-    var body: some View {
-        LineChart(dataPoints: data, lineColor: .blue, lineWidth: 5, pointColor: .red, pointSize: 10)
-            .frame(width: 300, height: 200)
-            .onTapGesture {
-                data = Self.makeDataPoints()
-            }
-    }
-    
-    // Generate random data usefull for representation
-    static func makeDataPoints() -> [DataPoint] {
-        var isGoingUp = true
-        var currentValue = 50.0
-        
-        return (1...50).map { _ in
-            if isGoingUp {
-                currentValue += Double.random(in: 1...10)
-            } else {
-                currentValue -= Double.random(in: 1...10)
-            }
-            
-            if isGoingUp {
-                if Int.random(in: 0..<10) == 0 {
-                    isGoingUp.toggle()
-                }
-            } else {
-                if Int.random(in: 0..<7) == 0 {
-                    isGoingUp.toggle()
-                }
-            }
-            
-            return DataPoint(value: abs(currentValue))
-        }
-    }
-}
-
-struct LineChartTutorial_Previews: PreviewProvider {
-    static var previews: some View {
-        LineChartTutorial()
-    }
-}