Running ‘testthat.R’ [29s/32s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > 
  > all.pkgs <- c("testthat", "dplyr", "dtplyr", "data.table", "magrittr", "survey", "zoo")
  > 
  > 
  > if (all(vapply(all.pkgs, requireNamespace, logical(1L), quietly = TRUE))) {
  +   
  +   library(testthat)
  +   library(grattan)
  +   library(hutils)
  +   library(data.table)
  +   library(magrittr)
  +   
  +   if (identical(Sys.getenv("CIRCLECI"), "true")) {
  +     test_check("grattan",
  +                reporter = JunitReporter$new(file = "junit_result.xml"))
  +   } else {
  +     test_check("grattan")
  +   }
  + }
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • ABS not available (1)
  • ABS unavbl (3)
  • All fys have full quarters in this release. (2)
  • Government calculator using wrong thresholds (1)
  • Government calculator wrong at 2017-02-18 (1)
  • Govt calculator using wrong thresholds (1)
  • Issue 50 unresolved (1)
  • Not yet implemented (2)
  • On CRAN (57)
  • identical(date2fy(Sys.Date()), "2019-20") is not TRUE (1)
  • taxstats cannot be loaded (43)
  • threshold on https://www.humanservices.gov.au/individuals/enablers/personal-income-test-austudy-and-youth-allowance/30411 contradicts taper rates (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_rent_assistance.R:4:3): Error handling ──────────────────────────
  Error: `fy.year = 2021-22` was not within the allowed range: 1999-00 <= fy.year <= 2020-21
  Backtrace:
      █
   1. ├─testthat::expect_message(rent_assistance(), regexp = "`fy.year` not set") test_rent_assistance.R:4:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─grattan::rent_assistance()
   7.   └─fy::validate_fys_permitted(fy.year, permitted_fys)
   8.     └─fy:::stopn(...)
  ── Error (test_rent_assistance.R:37:3): Per ────────────────────────────────────
  Error: `fy.year = 2021-22` was not within the allowed range: 1999-00 <= fy.year <= 2020-21
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test_rent_assistance.R:37:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─grattan::rent_assistance(per = "fortnight")
   5.   └─fy::validate_fys_permitted(fy.year, permitted_fys)
   6.     └─fy:::stopn(...)
  ── Error (test_rent_assistance.R:44:3): Sharer's Provision ─────────────────────
  Error: `fy.year = 2021-22` was not within the allowed range: 1999-00 <= fy.year <= 2020-21
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test_rent_assistance.R:44:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─grattan::rent_assistance(...)
   5.   └─fy::validate_fys_permitted(fy.year, permitted_fys)
   6.     └─fy:::stopn(...)
  ── Error (test_rent_assistance.R:68:3): Parents of (strictly) integer children not NA ──
  Error: `fy.year = 2021-22` was not within the allowed range: 1999-00 <= fy.year <= 2020-21
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test_rent_assistance.R:68:2
   2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─grattan::rent_assistance(100, n_dependants = c(0, 1, 1, 3, 3))
   5.   └─fy::validate_fys_permitted(fy.year, permitted_fys)
   6.     └─fy:::stopn(...)
  ── Error (test_unemployment_benefit.R:45:3): Error handling ────────────────────
  Error: `fy.year = 2021-22` was not within the allowed range: 2000-01 <= fy.year <= 2020-21
  Backtrace:
      █
   1. ├─testthat::expect_message(unemployment_benefit(), regexp = "`fy.year` not set") test_unemployment_benefit.R:45:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─grattan::unemployment_benefit()
   7.   └─fy::validate_fys_permitted(fy.year, permitted_fys)
   8.     └─fy:::stopn(...)
  ── Failure (test_youth_allowance.R:240:3): Partners (standard) ─────────────────
  length(...) not equal to 1L.
  1/1 mismatches
  [1] 0 - 1 == -1
  ── Failure (test_youth_allowance.R:245:3): Partners (standard) ─────────────────
  length(...) not equal to 6L.
  1/1 mismatches
  [1] 0 - 6 == -6
  ── Failure (test_youth_allowance.R:251:3): Partners (standard) ─────────────────
  ...[] not equal to youth_allowance(...).
  Lengths differ: 1 is not 0
  ── Failure (test_youth_allowance.R:261:3): Partners (standard) ─────────────────
  ...[] not equal to youth_allowance(...).
  Lengths differ: 1 is not 0
  
  [ FAIL 9 | WARN 0 | SKIP 114 | PASS 773 ]
  Error: Test failures
  Execution halted