This document and associated files have been prepared by the National Institute
of Standards and Technology (NIST) and represent draft test materials for the
Election Assistance Commission's next iteration of the VVSG.  It is a
preliminary draft and does not represent a consensus view or recommendation
from NIST, nor does it represent any policy positions of NIST.

######################################################################

           BEGIN TEST CASE OUTPUT   2009-03-19 10:07:32-04

######################################################################

$Id: 1-basic-Primary-RankedOrder.sql 452 2008-01-09 14:24:56Z dflater $

Small primary election with ranked order voting, no write-ins,
no rejected ballots.
Ballot styles:  2
Reporting contexts:  3


$Id: Infrastructure-VoteSchema.sql 475 2008-02-21 20:49:51Z dflater $
$Id: Infrastructure-TestHook.sql 453 2008-01-09 14:38:46Z dflater $
$Id: Infrastructure-IntegrityChecks.sql 281 2007-07-19 15:32:59Z dflater $

----- Begin integrity check output -- All results should be empty -----

  Out Of Range Voter Inputs
 ballotid | choiceid | value 
----------+----------+-------
(0 rows)

Out Of Range Endorsements
 party | choiceid | value 
-------+----------+-------
(0 rows)

      Extraneous Inputs
 ballotid | choiceid | value 
----------+----------+-------
(0 rows)

Unreported Ballots
 ballotid 
----------
(0 rows)

           Double Votes
 ballotid | choiceid | count | sum 
----------+----------+-------+-----
(0 rows)

                             Cross Contest Aliases
 aliasid | aliasname | aliascontestid | choiceid | choicename | choicecontestid 
---------+-----------+----------------+----------+------------+-----------------
(0 rows)

 Double Indirect Aliases
 aliasid | aliasedaliasid 
---------+----------------
(0 rows)

Ballot Styles With More Than One Straight Party Contest
 styleid 
---------
(0 rows)

Non-Existent Parties In Straight Party Contest
 contestid | name 
-----------+------
(0 rows)

Circular Straight Party Endorsements
 party | choiceid 
-------+----------
(0 rows)

     Endorsed Aliases
 party | choiceid | value 
-------+----------+-------
(0 rows)

        Straight Party Overrides
 ballotid | contestid | choiceid | value 
----------+-----------+----------+-------
(0 rows)

          Too Many Write-Ins
 ballotid | contestid | writeinscount 
----------+-----------+---------------
(0 rows)

----- End integrity check output ---- All results should be empty -----

$Id: ReportGenerator.cc 460 2008-01-14 15:10:24Z dflater $
Materializing views (for large tests, this may take a while).
2009-03-19 10:07:32-0400 Materialization begun
2009-03-19 10:07:32-0400 FilteredContextChoiceAssociation
2009-03-19 10:07:32-0400 ReportingContextAssociationMerge
2009-03-19 10:07:32-0400 EffectiveInput
2009-03-19 10:07:32-0400 BallotCounts
2009-03-19 10:07:32-0400 BallotCountsByConfiguration
2009-03-19 10:07:32-0400 BallotCountsByCategory
2009-03-19 10:07:32-0400 BallotCountsByCategoryAndConfiguration
2009-03-19 10:07:32-0400 BlankBallot
2009-03-19 10:07:32-0400 BlankBallotCounts
2009-03-19 10:07:32-0400 BlankBallotCountsByConfiguration
2009-03-19 10:07:32-0400 S
2009-03-19 10:07:32-0400 SPrime
2009-03-19 10:07:32-0400 T
2009-03-19 10:07:32-0400 TSum
2009-03-19 10:07:32-0400 VotesByContestAndContext
2009-03-19 10:07:32-0400 O
2009-03-19 10:07:32-0400 U
2009-03-19 10:07:32-0400 K
2009-03-19 10:07:32-0400 Balance
2009-03-19 10:07:32-0400 Materialization finished

-------------------------------------------------------------------------------
Report for context Precinct 1 generated 2009-03-19 10:07:32-0400

                                 BALLOT COUNTS

Configuration                                  Read    Counted
-------------                                  ----    -------
Total                                            25         25
                                   Blank          0          0
Bipartisan Party Style                           11         11
Moderate Party Style                             14         14

                                  VOTE TOTALS

                             RANKED ORDER CONTESTS

NOTICE:  RANKED ORDER LOGIC IS NOT NORMATIVE.
The algorithm implemented by ReportGenerator is only one example of
conforming behavior.  The algorithm implemented by ReportGenerator is
not recommended or endorsed by the National Institute of Standards and
Technology for use in elections and it is not the best algorithm
available for the purpose.  It is used here only to provide output for
comparison in simple cases where the implementation-dependent details
have no impact.
  * The quota is Hagenbach-Bischoff plus epsilon.
  * Surpluses are transferred via the Gregory method using unlimited
    precision rational numbers.
  * No special cases are handled.  This means:  every choice must be
    ranked on every ballot; every choice must be assigned a different
    rank; only one choice is elected or eliminated at a time; and if a
    tie occurs, the algorithm halts.

Nonpartisan committee, rank in order of preference
Have 25 valid votes.
Quota is 25/3 plus epsilon.
Round 1 tallies:
Choice #2 nonpartisan committee                  11
Choice #4 nonpartisan committee                   6
Choice #1 nonpartisan committee                   5
Choice #3 nonpartisan committee                   3
Choice #2 nonpartisan committee is elected.
Round 2 tallies:
Choice #4 nonpartisan committee               82/11
Choice #1 nonpartisan committee              173/33
Choice #3 nonpartisan committee              131/33
Choice #3 nonpartisan committee is eliminated.
Round 3 tallies:
Choice #4 nonpartisan committee              344/33
Choice #1 nonpartisan committee              206/33
Choice #4 nonpartisan committee is elected.

Bipartisan Party subcommittee, rank in order of preference
Have 11 valid votes.
Quota is 11/4 plus epsilon.
Round 1 tallies:
Choice #3 Bipartisan Party subcommittee           8
Choice #5 Bipartisan Party subcommittee           3
Choice #1 Bipartisan Party subcommittee           0
Choice #2 Bipartisan Party subcommittee           0
Choice #4 Bipartisan Party subcommittee           0
Choice #3 Bipartisan Party subcommittee is elected.
Round 2 tallies:
Choice #5 Bipartisan Party subcommittee       69/16
Choice #1 Bipartisan Party subcommittee       63/32
Choice #4 Bipartisan Party subcommittee       21/16
Choice #2 Bipartisan Party subcommittee       21/32
Choice #5 Bipartisan Party subcommittee is elected.
Round 3 tallies:
Choice #1 Bipartisan Party subcommittee   5947/2208
Choice #4 Bipartisan Party subcommittee    1141/736
Choice #2 Bipartisan Party subcommittee   1387/1104
Choice #2 Bipartisan Party subcommittee is eliminated.
Round 4 tallies:
Choice #4 Bipartisan Party subcommittee   6197/2208
Choice #1 Bipartisan Party subcommittee   5947/2208
Choice #4 Bipartisan Party subcommittee is elected.

Moderate Party subcommittee, rank in order of preference
Have 14 valid votes.
Quota is 7/2 plus epsilon.
Round 1 tallies:
Choice #2 Moderate Party subcommittee             6
Choice #3 Moderate Party subcommittee             4
Choice #4 Moderate Party subcommittee             3
Choice #5 Moderate Party subcommittee             1
Choice #1 Moderate Party subcommittee             0
Choice #2 Moderate Party subcommittee is elected.
Round 2 tallies:
Choice #3 Moderate Party subcommittee          29/6
Choice #4 Moderate Party subcommittee          23/6
Choice #5 Moderate Party subcommittee         17/12
Choice #1 Moderate Party subcommittee          5/12
Choice #3 Moderate Party subcommittee is elected.
Round 3 tallies:
Choice #4 Moderate Party subcommittee       715/174
Choice #5 Moderate Party subcommittee       589/348
Choice #1 Moderate Party subcommittee       139/116
Choice #4 Moderate Party subcommittee is elected.
-------------------------------------------------------------------------------

Report total volume: 2641/12
  - Includes optional reporting of blank ballots.
  - Excludes separate reporting of ballots cast vs. read.

######################################################################

             END TEST CASE OUTPUT   2009-03-19 10:07:33-04

######################################################################
