\i Infrastructure-TestHeader.sql

\echo '$Id: 0-integrity-StraightPartyOverrides.sql 212 2007-07-02 18:25:14Z dflater $'
\echo
\echo 'Verify that straight party overrides are detected by the integrity'
\echo 'check.  The "All results should be empty" notice does not apply to'
\echo 'this test case.  Refer instead to the "Expected results" printed at'
\echo 'the bottom.'

\i 0-integrity-common.sql

insert into VoterInput (BallotId, ChoiceId, Value) values
  (1, 9, 1),
  (2, 10, 1);

\i Infrastructure-IntegrityChecks.sql

\echo 'Expected results:'
\echo '        Straight Party Overrides'
\echo ' ballotid | contestid | choiceid | value'
\echo '----------+-----------+----------+-------'
\echo '        2 |         1 |        1 |     1'
\echo '        2 |         2 |        4 |     1'
\echo '(2 rows)'

\i Infrastructure-TestFooter.sql
