Nothing
describe("rotate",
{
ee <- expect_equal
test_that("rotate.Deque works correctly", {
d <- deque(1, 2, 3, 4)
ee(rotate(d), deque(4, 1, 2, 3))
ee(rotate(d, 2), deque(3, 4, 1, 2))
ee(rotate(d, -1), deque(2, 3, 4, 1))
})
test_that("ref_rotate.Deque modifies in place", {
d <- deque(1, 2, 3, 4)
# by reference
ref_rotate(d)
ee(d, deque(4, 1, 2, 3))
ref_rotate(d, -1)
ee(d, deque(1, 2, 3, 4))
})
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.