Skip to content
Snippets Groups Projects
Commit ee1504cb authored by Todor Kondić's avatar Todor Kondić
Browse files

tests/testthat/test-plotting: Commented out bits under refactoring.

parent 2386b504
No related branches found
No related tags found
No related merge requests found
test_that("make_eic_ms1_plot",{ ## test_that("make_eic_ms1_plot",{
ms1 <- PLOTTING_DATA$ms1 ## ms1 <- PLOTTING_DATA$ms1
summ <- PLOTTING_DATA$summ ## summ <- PLOTTING_DATA$summ
labs <- PLOTTING_DATA$labs ## labs <- PLOTTING_DATA$labs
## Test the corner case when no cindex entry is selected. ## ## Test the corner case when no cindex entry is selected.
kval <- NULL ## kval <- NULL
res <- make_eic_ms1_plot(extr_ms1=ms1, ## res <- make_eic_ms1_plot(extr_ms1=ms1,
summ=summ, ## summ=summ,
kval=kval, ## kval=kval,
labs=labs) ## labs=labs)
expect_identical(res,NULL) ## expect_identical(res,NULL)
## Test getting the right plot. ## ## Test getting the right plot.
kval <- list(set="NTs",ID=109L) ## kval <- list(set="NTs",ID=109L)
res <- make_eic_ms1_plot(extr_ms1=ms1, ## res <- make_eic_ms1_plot(extr_ms1=ms1,
summ=summ, ## summ=summ,
kval=kval, ## kval=kval,
labs=labs) ## labs=labs)
expect_equal(NROW(res$data),4046L) ## expect_equal(NROW(res$data),4046L)
}) ## })
test_that("make_eic_ms2_plot",{ ## test_that("make_eic_ms2_plot",{
summ <- PLOTTING_DATA$summ ## summ <- PLOTTING_DATA$summ
labs <- PLOTTING_DATA$labs ## labs <- PLOTTING_DATA$labs
## Test the corner case when no cindex entry is selected. ## ## Test the corner case when no cindex entry is selected.
kval <- NULL ## kval <- NULL
res <- make_eic_ms2_plot(summ=summ, ## res <- make_eic_ms2_plot(summ=summ,
kval=kval, ## kval=kval,
labs=labs) ## labs=labs)
expect_identical(res,NULL) ## expect_identical(res,NULL)
## Test getting the right plot. ## ## Test getting the right plot.
kval <- list(set="NTs",ID=109L) ## kval <- list(set="NTs",ID=109L)
res <- make_eic_ms2_plot(summ=summ, ## res <- make_eic_ms2_plot(summ=summ,
kval=kval, ## kval=kval,
labs=labs) ## labs=labs)
expect_equal(NROW(res$data),77L) ## expect_equal(NROW(res$data),77L)
}) ## })
test_that("plot_fname",{ test_that("plot_fname",{
kval <- list(set="NTs",ID=109L) kval <- list(set="NTs",ID=109L)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment