library(testthat);
context("algo_1110 R6 class");
test_that('algo_1110: exhaustive output test', {
#browser();
a1 <- algo_1110$new();
#print(nt);
#plot_nandtree(nt);
expect_equal(a1$exec("00"), "1");
expect_equal(a1$exec("10"), "1");
expect_equal(a1$exec("01"), "1");
expect_equal(a1$exec("11"), "0");
});
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.