Chapter 2 The Basics of SCT’s

The basics of writing a submission correctness test consist of an initializing function, a “chain” function, and then varying calls of “check” functions. The initializing function has the form:

ex()

while the “chain” function has the form:

%>%

Combining the initial function and a single call of the chain function is the beginning of all the SCTs that you can write using R, and looks like the following:

ex() %>%

With this in mind, let us learn about the first set of submission correctness tests we can write.