# HG changeset patch # User Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> # Date 1612113806 -3600 # Node ID a17ccf20f4a335b94f0c82c4050996b67c9c7261 # Parent 57e5196feb08e857bffbfa14e0e5191b4fe2a6b0 Delete tests diff -r 57e5196feb08 -r a17ccf20f4a3 LazyBear.xcodeproj/project.pbxproj --- 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 = ""; }; - 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 = ""; @@ -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 */, diff -r 57e5196feb08 -r a17ccf20f4a3 LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate Binary file LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed diff -r 57e5196feb08 -r a17ccf20f4a3 lazybear/LazyBearApp.swift --- 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 - } } diff -r 57e5196feb08 -r a17ccf20f4a3 lazybear/Tests/BarChartTutorial.swift --- 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.. [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() - } -}