Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
41 lines (33 sloc) 666 Bytes
testthat::context('utilities')
testthat::describe('utilities',{
it('tooltip default',{
testthat::expect_equal(
build_tooltip('aaa'),
'aaa'
)
})
it('tooltip with text',{
testthat::expect_equal(
build_tooltip('aaa',tooltip = 'bbb'),
"<span title='bbb'> aaa </span>"
)
})
it('summary default',{
testthat::expect_equal(
build_summary('aaa'),
"\n<summary> aaa </summary>"
)
})
it('state open',{
testthat::expect_equal(
build_state(TRUE),
"open"
)
})
it('state closed',{
testthat::expect_equal(
build_state(FALSE),
"closed"
)
})
})
You can’t perform that action at this time.