Jump to content

Template:Basketballbox/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 Basketballbox as well as Basketballbox/sandbox.

Test_case 0: no bg

[edit]
{{Basketballbox}}
April 27
2:00 pm
Brooklyn Nets 134–142 (3OT) Chicago Bulls
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Deron Williams 2
Rebs: Reggie Evans 13
Asts: Deron Williams 10
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis
{{Basketballbox/sandbox}}
April 27
2:00 pm
134–142 (3OT)
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis

Test_case 1: reasonable data w/ bg

[edit]
{{Basketballbox}}
April 27
2:00 pm
Brooklyn Nets 134–142 (3OT) Chicago Bulls
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Deron Williams 2
Rebs: Reggie Evans 13
Asts: Deron Williams 10
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis
{{Basketballbox/sandbox}}
April 27
2:00 pm
134–142 (3OT)
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis

Test_case 2: reasonable data w/ bg (no wikitable class)

[edit]

{{Basketballbox}}

April 27
2:00 pm
Brooklyn Nets 134–142 (3OT) Chicago Bulls
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Deron Williams 2
Rebs: Reggie Evans 13
Asts: Deron Williams 10
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis

{{Basketballbox/sandbox}}

April 27
2:00 pm
134–142 (3OT)
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis

Test_case 3: reasonable data w/ bg (default test_case format)

[edit]

{{Basketballbox}}

April 27
2:00 pm
Brooklyn Nets 134–142 (3OT) Chicago Bulls
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Deron Williams 2
Rebs: Reggie Evans 13
Asts: Deron Williams 10
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis

{{Basketballbox/sandbox}}

April 27
2:00 pm
134–142 (3OT)
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis


Test_case 4: reasonable data w/ bg (test_case _format=columns)

[edit]
Using column formatting to simulate narrow bounding box
{{Basketballbox}}{{Basketballbox/sandbox}}
April 27
2:00 pm
Brooklyn Nets 134–142 (3OT) Chicago Bulls
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Deron Williams 2
Rebs: Reggie Evans 13
Asts: Deron Williams 10
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis
April 27
2:00 pm
134–142 (3OT)
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Nate Robinson 34
Rebs: Joakim Noah 100
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis

Test cases created manually

[edit]

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

Manual Tests

[edit]

Test 1: Original testcase

[edit]

Main:

April 27
2:00 pm
Brooklyn Nets 134–142 (3OT) Chicago Bulls
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Deron Williams 32
Rebs: Reggie Evans 13
Asts: Deron Williams 10
Pts: Nate Robinson 34
Rebs: Joakim Noah 13
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis

Sandbox:

April 27
2:00 pm
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Nate Robinson 34
Rebs: Joakim Noah 13
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis

Test 1: Original testcase w/ bg specified but empty

[edit]

Main:

April 27
2:00 pm
Brooklyn Nets 134–142 (3OT) Chicago Bulls
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Deron Williams 32
Rebs: Reggie Evans 13
Asts: Deron Williams 10
Pts: Nate Robinson 34
Rebs: Joakim Noah 13
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis

Sandbox:

April 27
2:00 pm
Scoring by quarter: 26–25, 29–33, 29–18, 27–35
Pts: Nate Robinson 34
Rebs: Joakim Noah 13
Asts: Kirk Hinrich 14
United Center, Chicago, Illinois
Attendance: 21,758
Referees: Tony Brothers, Ron Garretson, Eric Lewis