Skip to content

Commit

Permalink
Name was forgotten. (#9)
Browse files Browse the repository at this point in the history
I didn't seem to test my example.
*smacks hand* bad developer.
  • Loading branch information
bmbowdish authored Feb 27, 2018
1 parent 164df10 commit 4538901
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Sources/Swiftfall/Swiftfall.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,18 @@ public class Swiftfall {
}

var mtgo_id:Int?
public func getmtgoID() -> Int?
{
public func getmtgoID() -> Int?{
return self.mtgo_id
}

var mtgo_foil_id:Int?
public func getmtgofoilID() -> Int?
{
public func getmtgofoilID() -> Int?{
return self.mtgo_foil_id
}

var name:String?
public func getName(){

public func getName() -> String?{
return self.name
}

var uri:String
Expand Down
5 changes: 5 additions & 0 deletions Tests/Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ class Tests: XCTestCase {
cardlist?.simplePrint()
}

func testGetter(){
let card = Swiftfall.getRandomCard()
print(card?.getName())
}

func testPerformanceExample() {
// This is an example of a performance test case.
self.measure {
Expand Down

0 comments on commit 4538901

Please sign in to comment.