powered by
Expectation: does a vector have the specified length?
expect_length(object, n)
object to test
Expected length.
Other expectations: comparison-expectations, equality-expectations, expect_match, expect_named, inheritance-expectations, logical-expectations, output-expectations
comparison-expectations
equality-expectations
expect_match
expect_named
inheritance-expectations
logical-expectations
output-expectations
# NOT RUN { expect_length(1, 1) expect_length(1:10, 10) # } # NOT RUN { expect_length(1:10, 1) # }
Run the code above in your browser using DataLab