## Not run:
# # Example 1
# mean(1:3)
#
# # SCT option 1
# test_function("mean", args = "x")
#
# # SCT option 2
# ex() %>% check_function("mean") %>% check_arg("x") %>% check_equal()
#
#
# # Example 2
# mean(c(NA, 1, 2), na.rm = TRUE)
#
# # SCT option 1
# test_function("mean", args = c("x", "na.rm"))
#
# # SCT option 2
# funstate <- ex() %>% check_function("mean")
# funstate %>% check_arg("x") %>% check_equal()
# funstate %>% check_arg("na.rm") %>% check_equal()
#
# # Example 3
# 5 + 4
#
# # SCT
# ex() %>% check_operator("+") %>% check_result() %>% check_equal()
# ## End(Not run)
Run the code above in your browser using DataLab