Skip to content

duplicate test numbers #3538

Closed
Closed

Description

@MichaelChirico

There are some duplicate test numbers in tests.Rraw:

tests = readLines('inst/tests/tests.Rraw')
# not all tests start at line beginning,
#  some are commented,
#  ignore those in loops by requiring explicit numbering;
#  use , matching for semi-manual numbering like 123.4+i/1000 in a loop
tests = grep('^[^#]*test\\(\\s*[0-9.]+,', tests, value = TRUE)
tests = gsub('.*test\\(([0-9.]+),.*', '\\1', tests)
# test numbers are interpreted as numbers
#   so 17.1 and 17.10 and 17.100 should be considered the same
tests[duplicated(as.numeric(tests))]

These are duplicated:

 [1] "658.3"   "677.2"   "1039"    "1102.14" "1105"    "1134.3"  "1144.1" 
 [8] "1144.2"  "1144.3"  "1144.4"  "1355"    "1463.33" "1463.34" "1463.27"
[15] "1543.7"  "1545.2"  "1557.1"  "1557.2"  "1557.3"  "1557.4"  "1571.1" 
[22] "1571.2"  "1571.3"  "1571.5"  "1573"    "1574.1"  "1574.2"  "1574.3" 
[29] "1574.4"  "1579.6"  "1579.7"  "1579.8"  "1579.9"  "1579.10" "1579.11"
[36] "1579.12" "1579.13" "1626.63" "1655.4"  "1658.5"  "1658.23" "1658.24"
[43] "1658.41" "1658.42" "1658.43" "1686.1"  "1701.6"  "1714.1"  "1739.1" 
[50] "1839.6"  "1871.2"  "1962.41" "1962.41" "1992.1" 

investigating & de-duplicating...

^ there were about 2x as many when looking for numerical duplicates; those are all fixed in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions