.. _Example2:
.. raw:: html
.. |--| unicode:: U+2013 .. en dash
.. |---| unicode:: U+2014 .. em dash, trimming surrounding whitespace
:trim:
.. This file is part of the OpenDSA eTextbook project. See
.. http://algoviz.org/OpenDSA for more details.
.. Copyright (c) 2012-2016 by the OpenDSA Project Contributors, and
.. distributed under an MIT open source license.
.. avmetadata::
:author: Cliff Shaffer
:requires: Testing Introduction
:satisfies:
:topic: Testing
Another Example
===============
Another Example
---------------
Here is another example to let you practice testing.
This is testing a bowling game.
Each frame starts with 10 pins, the user enters the number of pins hit
by each roll of the ball.
Hitting all 10 points with one roll is a strike.
Knocking down all 10 points on two rolls is a spare.
Try to get at least 75% code coverage.
.. avembed:: AV/Testing/Bowling/BowlingApplet.html pe
:module: Example2
:points: 2.0
:required: False
:threshold: 0.9
:id: 179081
:exer_opts: JXOP-debug=true&JOP-lang=en&JXOP-code=java
:long_name: Bowling Testing Without Code