File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11db_state <- future.tests ::: db_state
2- stop_if_not <- future.tests ::: stop_if_not
32options(future.tests.debug = TRUE )
43
54message(" *** db_state() ..." )
@@ -12,7 +11,7 @@ str(res)
1211
1312stack <- db_state(" list" )
1413str(stack )
15- stop_if_not (length(stack ) == 1L )
14+ stopifnot (length(stack ) == 1L )
1615
1716res <- db_state(" push" , title = " abc" )
1817str(res )
@@ -22,27 +21,27 @@ Sys.setenv(BAR = "3.14")
2221
2322stack <- db_state(" list" )
2423str(stack )
25- stop_if_not (length(stack ) == 2L )
24+ stopifnot (length(stack ) == 2L )
2625
2726res <- db_state(" push" , title = " def" )
2827str(res )
2928
3029stack <- db_state(" list" )
3130str(stack )
32- stop_if_not (length(stack ) == 3L )
31+ stopifnot (length(stack ) == 3L )
3332
3433res <- db_state(" pop" )
3534str(res )
3635
3736stack <- db_state(" list" )
3837str(stack )
39- stop_if_not (length(stack ) == 2L )
38+ stopifnot (length(stack ) == 2L )
4039
4140res <- db_state(" pop" )
4241str(res )
4342
4443stack <- db_state(" list" )
4544str(stack )
46- stop_if_not (length(stack ) == 1L )
45+ stopifnot (length(stack ) == 1L )
4746
4847message(" *** db_state() ... DONE" )
You can’t perform that action at this time.
0 commit comments