Files
2019-08-04 21:38:19 -05:00

18 lines
265 B
R

unittest <- function (x,y) {
if (all(x==y)) {
print("PASS")
} else {
print("FAIL")
stop("Test failed")
}
}
unittesttol <- function(x,y,z) {
if (all(abs(x-y) < z)) {
print("PASS")
} else {
print("FAIL")
stop("Test failed")
}
}