File: test-style.R

package info (click to toggle)
r-cran-prettycode 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 408 kB
  • sloc: sh: 13; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 250 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13

context("style")

test_that("default_style", {
  def <- default_style()
  expect_true(is.list(def))
  expect_true(
    all(
      names(def) %in%
      c("reserved", "number", "null", "operator", "call", "string", "comment", "bracket")
    )
  )
})