void function ( ) { vtList . addPref ( 2 ) ; vtList . addPref ( 1 ) ; vtList . addPref ( 3 ) ; vtList . addPref ( 4 ) ; vtList . addPref ( 5 ) ; asgn1Election . Vote loc0 = vtList . invertVote ( ) ; String loc1 = loc0 . toString ( ) ; String loc2 = "srini_string" ; assertEquals ( 0 , loc1 . compareTo ( loc2 ) ) ; }
test method for asgn1election.votelist #invertvote . concode_field_sep asgn1Election.VoteList vtList concode_field_sep void testGetPreferenceInvalidDataOverFlow concode_elem_sep void testGetPreferenceInvalidDataZero concode_elem_sep void testGetPreferenceInvalidDataFive concode_elem_sep void testGetPreference concode_elem_sep void testCopyVoteEmptyVote concode_elem_sep void testIterator concode_elem_sep void testAddPrefOverFlow concode_elem_sep void testAddPref concode_elem_sep void testToString concode_elem_sep void steUp concode_elem_sep void testInvertVoteNoData concode_elem_sep void testToStringEmptyVote concode_elem_sep void testVotelist concode_elem_sep void testVoteListVoteInitialisation concode_elem_sep void testCopyVote