Skip to content

Commit 3615a31

Browse files
danielleiwoodDaniWood
authored andcommitted
Test #204
1 parent 0232e2d commit 3615a31

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/testthat/test_awote.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ test_that("AWOTE fy", {
2121
expect_equal(awote_fy("2014-15", isMale = NA, isAdult = TRUE, isOrdinary = TRUE),
2222
awote(fy.year = "2014-15"))
2323
})
24+
25+
test_that("AWOTE unsorted, issue #204", {
26+
ufys <- yr2fy(2014:2015)
27+
# Reversing inputs same as referring outputs
28+
expect_equal(awote(fy.year = rev(ufys)),
29+
rev(awote(fy.year = ufys)))
30+
})
31+

0 commit comments

Comments
 (0)