R Under development (unstable) (2026-03-22 r89674 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(SafeVote) > > test_check("SafeVote") Results of Single transferable vote =================================== Number of valid votes: 20 Number of invalid votes: 0 Number of candidates: 5 Number of seats: 2 | | 1| 2-trans| 2| 3-trans| 3| 4-trans| 4| |:------------|---------:|-------:|-----:|-------:|------:|-------:|-------:| |Quota | 6.668| | 6.667| | 6.667| | 5.278| |Oranges | 4.000| 0.000| 4.000| 2| 6.000| 0.000| 6.000| |Pears | 2.000| 0.000| 2.000| -2| | | | |Chocolate | 12.000| -5.332| | | | | | |Strawberries | 1.000| 3.555| 4.555| 0| 4.555| 0.000| 4.555| |Sweets | 1.000| 1.777| 2.777| 0| 2.777| -2.777| | |Elected | Chocolate| | | | | | Oranges| |Eliminated | | | Pears| | Sweets| | | Complete Ranking ================ | Rank|Candidate | Elected | |----:|:------------|:-------:| | 1|Chocolate | x | | 2|Oranges | x | | 3|Strawberries | | | 4|Sweets | | | 5|Pears | | Elected: Chocolate, Oranges Detected 29 invalid votes. Number of valid votes is 591 . Use invalid.votes(...) function to view discarded records. Results of Single transferable vote =================================== Number of valid votes: 591 Number of invalid votes: 29 Number of candidates: 10 Number of seats: 5 | | 1| 2-trans| 2| 3-trans| 3| 4-trans| 4| 5-trans| 5| 6-trans| 6| 7-trans| 7| 8-trans| 8| 9-trans| 9| |:----------|-------:|-------:|-------:|-------:|------:|-------:|------:|-------:|------:|-------:|-------:|-------:|------:|-------:|-------:|-------:|-------:| |Quota | 98.501| | 97.774| | 97.438| | 96.938| | 95.351| | 95.060| | 94.684| | 85.027| | 83.542| |Tilmann | 73.000| 0.496| 73.496| 0.793| 74.289| 2.016| 76.305| 4.194| 80.500| 3.097| 83.597| 0.271| 83.868| 13.023| 96.891| -11.864| | |Julie | 40.000| 1.652| 41.652| 2.137| 43.789| 6.330| 50.120| 2.347| 52.466| 6.000| 58.466| 3.650| 62.117| -62.117| | | | |Jasper | 118.000| -19.499| | | | | | | | | | | | | | | | |Li | 104.000| 4.296| 108.296| -10.523| | | | | | | | | | | | | | |Wang | 20.000| 0.661| 20.661| 0.226| 20.887| -20.887| | | | | | | | | | | | |Hillary | 61.000| 1.818| 62.818| 1.943| 64.761| 0.000| 64.761| 3.278| 68.039| 5.097| 73.137| 0.213| 73.350| 8.190| 81.540| 7.205| 88.745| |Claire | 53.000| 2.313| 55.313| 2.202| 57.515| 2.016| 59.531| 3.347| 62.878| 1.097| 63.975| 0.741| 64.716| 11.932| 76.648| 1.690| 78.338| |Oscar | 27.000| 0.165| 27.165| 0.194| 27.360| 1.194| 28.554| 0.000| 28.554| -28.554| | | | | | | | |Declan | 22.000| 1.487| 23.487| 0.566| 24.053| 2.000| 26.053| -26.053| | | | | | | | | | |Roisin | 73.000| 2.974| 75.974| 1.117| 77.091| 5.330| 82.422| 6.541| 88.963| 12.097| 101.060| -6.000| | | | | | |Elected | Jasper| | Li| | | | | | | | Roisin| | | | Tilmann| | Hillary| |Eliminated | | | | | Wang| | Declan| | Oscar| | | | Julie| | | | | Complete Ranking ================ | Rank|Candidate | Elected | |----:|:---------|:-------:| | 1|Jasper | x | | 2|Li | x | | 3|Roisin | x | | 4|Tilmann | x | | 5|Hillary | x | | 6|Claire | | | 7|Julie | | | 8|Oscar | | | 9|Declan | | | 10|Wang | | Elected: Jasper, Li, Roisin, Tilmann, Hillary Results of Single transferable vote =================================== Number of valid votes: 20 Number of invalid votes: 0 Number of candidates: 5 Number of seats: 3 | | 1| 2-trans| 2| 3-trans| 3| 4-trans| 4| |:------------|---------:|-------:|------------:|-------:|-----:|-------:|-------:| |Quota | 5.001| | 5.001| | 4.668| | 4.668| |Oranges | 4.000| 0.000| 4.000| 0.000| 4.000| 2| 6.000| |Pears | 2.000| 0.000| 2.000| 0.000| 2.000| -2| | |Chocolate | 12.000| -6.999| | | | | | |Strawberries | 1.000| 4.666| 5.666| -0.665| | | | |Sweets | 1.000| 2.333| 3.333| 0.000| 3.333| 0| 3.333| |Elected | Chocolate| | Strawberries| | | | Oranges| |Eliminated | | | | | Pears| | | Complete Ranking ================ | Rank|Candidate | Elected | |----:|:------------|:-------:| | 1|Chocolate | x | | 2|Strawberries | x | | 3|Oranges | x | | 4|Sweets | | | 5|Pears | | Elected: Chocolate, Strawberries, Oranges [ FAIL 0 | WARN 0 | SKIP 0 | PASS 6 ] > > proc.time() user system elapsed 12.00 0.59 12.57