mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-16 09:36:48 -05:00
Merge pull request #2577 from hadley/print-methods
Implement two missing print methods
This commit is contained in:
6
tests/testthat/print-reactiveValues.txt
Normal file
6
tests/testthat/print-reactiveValues.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
> x <- reactiveValues(x = 1, y = 2, z = 3)
|
||||
> x
|
||||
<ReactiveValues>
|
||||
Values: x, y, z
|
||||
Readonly: FALSE
|
||||
|
||||
@@ -122,6 +122,12 @@ test_that("ReactiveValues", {
|
||||
expect_error(values$a <- 1)
|
||||
})
|
||||
|
||||
test_that("reactiveValues() has useful print method", {
|
||||
verify_output(test_path("print-reactiveValues.txt"), {
|
||||
x <- reactiveValues(x = 1, y = 2, z = 3)
|
||||
x
|
||||
})
|
||||
})
|
||||
|
||||
# Test for overreactivity. funcB has an indirect dependency on valueA (via
|
||||
# funcA) and also a direct dependency on valueA. When valueA changes, funcB
|
||||
|
||||
Reference in New Issue
Block a user