tests/testthat/test-Log.R

#Testing using package testthat for detailed error messages
library(testthat)

#Suppress plotting for sanity
options(device = pdf());

test_that(
    'Disabled log file export', {
        disabled.output <- capture_output(
            venn.diagram(
                list(A = 1:20, B = 11:30),
                filename = NULL,
                disable.logging = TRUE
                )
            );
        
        expect_gt(nchar(disabled.output), 0);
        }
    );

Try the VennDiagram package in your browser

Any scripts or data that you put into this service are public.

VennDiagram documentation built on April 13, 2022, 1:06 a.m.