Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic support for extra time and penalties
- Loading branch information
Showing
10 changed files
with
282 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// UploadTests.swift | ||
// TheGreatGame | ||
// | ||
// Created by Oleg Dreyman on 13.06.17. | ||
// Copyright 漏 2017 The Great Game. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
import Shallows | ||
import Alba | ||
@testable import TheGreatKit | ||
|
||
class EventTests: XCTestCase { | ||
|
||
override func setUp() { | ||
super.setUp() | ||
// Put setup code here. This method is called before the invocation of each test method in the class. | ||
} | ||
|
||
override func tearDown() { | ||
// Put teardown code here. This method is called after the invocation of each test method in the class. | ||
super.tearDown() | ||
} | ||
|
||
func testAdditionalEventFE() { | ||
let event = Match.Event(kind: .halftime_start, text: "FEtest", realMinute: 115, matchMinute: 90) | ||
XCTAssertEqual(event.kind, .end_and_extra) | ||
XCTAssertEqual(event.text, "test") | ||
} | ||
|
||
func testAdditionalEventET() { | ||
let event = Match.Event(kind: .halftime_end, text: "ETtest", realMinute: 115, matchMinute: 90) | ||
XCTAssertEqual(event.kind, .extra_start) | ||
XCTAssertEqual(event.text, "test") | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.