Skip to content

Commit

Permalink
Cleaned up Test code and removed comments in Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Eriksen committed Sep 29, 2020
1 parent 57fc926 commit 8e07c7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 44 deletions.
8 changes: 1 addition & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@ import PackageDescription
let package = Package(
name: "E.num",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "E.num",
targets: ["E.num"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
dependencies: [],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "E.num",
dependencies: []),
Expand Down
37 changes: 0 additions & 37 deletions Tests/E.numTests/E_numTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,7 @@ import XCTest
@testable import E_num

internal struct E_num {
var list: Variable = .array(
[
.bool(false),
.string("False"),
.int(0),
.dictionary(
[
.bool(false): .double(3.14)
]
)
]
)

var dictionary: Variable = .dictionary(
[
.bool(false): .double(3.14)
]
)

var text: Variable = .string("Hello, World!")

var stu = Function.void {
print("STFU")
}

func stupid() {
if case .string(let value) = text {
print("Stupid String: \(value)")
}

if case .array(let value) = list,
let firstValue = value.last,
case .int(let number) = firstValue {
print(number * 99)
}

stu()
}
}


Expand Down

0 comments on commit 8e07c7b

Please sign in to comment.