選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

17 行
735B

  1. context("test-columns")
  2. test_that("bulma_column_narrow() handles viewport and logical", {
  3. expect_equal_unclass <- function(x, y) {
  4. expect_equal(unclass(x), y)
  5. }
  6. expect_equal_unclass(bulma_column_narrow("touch"), "is-narrow-touch")
  7. expect_equal_unclass(bulma_column_narrow("desktop"), "is-narrow-desktop")
  8. expect_s3_class(bulma_column_narrow("desktop"), "bulma_column_narrow")
  9. expect_equal_unclass(bulma_column_narrow(TRUE), "is-narrow")
  10. expect_equal_unclass(bulma_column_narrow(), "is-narrow")
  11. expect_null(bulma_column_narrow(FALSE))
  12. expect_error(bulma_column_narrow("touchscreen"))
  13. expect_warning(bulma_column_narrow(c("touch", "desktop")))
  14. expect_warning(bulma_column_narrow(c("touchscreen", "touch")))
  15. })