tests/testthat/_snaps/vec_check.md

vec_grade() checks classes

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your result should be a vector of integers (class `integer`), but it
    is a vector of text (class `character`).
  >
Code
  grade_int
Output
  <gradethis_graded: [Incorrect]
    Your result should be a vector of integers (class `integer`), but it
    is a vector of numbers (class `numeric`).
  >

vec_grade() checks the first three values

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    The first 3 values of your result should be `a`, `b`, and `c`, not
    `z`, `y`, and `x`.
  >

vec_grade() checks multiple classes

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your result should be an object with classes `test`, `class`, and
    `integer`, but it is a vector of integers (class `integer`).
  >

vec_grade() checks for value differences beyond the first 3

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    I didn't expect your result to include the values `5`, `6`, and `7`.
  >

max_diffs modifies the number of values to print

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    The first 5 values of your result should be `z`, `y`, `x`, `w`, and
    `v`, not `a`, `b`, `c`, `d`, and `e`.
  >

max_diffs doesn't overflow

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    The first 2 values of your result should be `b` and `a`, not `a` and
    `b`.
  >

checks that vectors have the same length

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your result should contain 4 values, but it has 3 values. I expected
    your result to include the value `d`.
  >

checks that vectors have the same names

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your result should have the names `a`, `b`, and `c`. Your result
    should not have the names `x`, `y`, or `z`.
  >

number of levels

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your result should have 3 levels, but it has 2 levels.
  >

level labels

Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your result should have levels named `x`, `y`, and `z`. Your result
    should not have levels named `a`, `b`, or `c`.
  >

level order

Code
  grade_reverse
Output
  <gradethis_graded: [Incorrect]
    The order of the levels in your result are the reverse of the
    expected order.
  >
Code
  grade_diffs
Output
  <gradethis_graded: [Incorrect]
    Your result's levels were not in the expected order. The first 3
    levels of your result should be `c`, `a`, and `b`, but they were `a`,
    `b`, and `c`.
  >
Code
  grade
Output
  <gradethis_graded: [Incorrect]
    Your result's levels were not in the expected order.
  >


rstudio/tblcheck documentation built on March 11, 2023, 5:42 p.m.