Jump to content

Template:Baseballbox/testcases

From Wikipedia, the free encyclopedia


Test cases using the Test_case template

[edit]

This section uses the Template:Test_case to stage the test cases in an effort to eliminate potential for error in test creation (e.g., typos between main & sandbox, missed parameters, etc).

The Test_case template will automatically display both the Main template for Baseballbox as well as Baseballbox/sandbox.


Test_case 0: Reasonable Data

[edit]
{{Baseballbox}}
May 25, 2014
4:30 p.m.
Championship Game
LSU 2–0 Florida Hoover Metropolitan Stadium
Attendance: 10,188
Umpires: Scott Erby (HP), Tony Walsh (1B), A. J. Lostaglio (2B), Paul Guillie (3B), David Savage (RF), Jack Cox (LF)
WP: Person
Sv: McCune
Boxscore LP: Harris
HR: McMullen
{{Baseballbox/sandbox}}
May 25, 2014
4:30 p.m.
Championship Game
LSU 2–0 Florida
TV: ESPN2
Hoover Metropolitan Stadium
Attendance: 10,188
Umpires: Scott Erby (HP), Tony Walsh (1B), A. J. Lostaglio (2B), Paul Guillie (3B), David Savage (RF), Jack Cox (LF)
WP: Person
Sv: McCune
Boxscore LP: Harris
HR: McMullen


Test_case 0: Missing Data

[edit]
{{Baseballbox}}
{{{date}}} LSU 2–0 Florida Hoover Metropolitan Stadium
Attendance: 10,188
Umpires: Scott Erby (HP), Tony Walsh (1B), A. J. Lostaglio (2B), Paul Guillie (3B), David Savage (RF), Jack Cox (LF)
WP: Person
Sv: McCune
Boxscore LP: Harris
HR: McMullen
{{Baseballbox/sandbox}}
{{{date}}} LSU 2–0 Florida
TV: ESPN2
Hoover Metropolitan Stadium
Attendance: 10,188
Umpires: Scott Erby (HP), Tony Walsh (1B), A. J. Lostaglio (2B), Paul Guillie (3B), David Savage (RF), Jack Cox (LF)
WP: Person
Sv: McCune
Boxscore LP: Harris
HR: McMullen


Test cases created manually

[edit]

This section has test cases created by-hand (without the use of the Test_case template).

Manual Tests

[edit]
May 25, 2014
4:30 p.m.
Championship Game
LSU 2–0 Florida
TV: ESPN2
Hoover Metropolitan Stadium
Attendance: 10,188
Umpires: Scott Erby (HP), Tony Walsh (1B), A. J. Lostaglio (2B), Paul Guillie (3B), David Savage (RF), Jack Cox (LF)
WP: Person
Sv: McCune
Boxscore LP: Harris
HR: McMullen
May 25, 2014
4:30 p.m.
Championship Game
LSU 2–0 Florida Hoover Metropolitan Stadium
Attendance: 10,188
Umpires: Scott Erby (HP), Tony Walsh (1B), A. J. Lostaglio (2B), Paul Guillie (3B), David Savage (RF), Jack Cox (LF)
WP: Person
Sv: McCune
Boxscore LP: Harris
HR: McMullen