parent
d58eb86821
commit
d8a0286012
6 changed files with 128 additions and 5 deletions
|
|
@ -1,8 +1,8 @@
|
|||
unittest <- function (x,y) {
|
||||
if (all(x==y)) {
|
||||
print("PASS")
|
||||
print("PASS")
|
||||
} else {
|
||||
print("FAIL")
|
||||
print("FAIL")
|
||||
stop("Test failed")
|
||||
}
|
||||
}
|
||||
|
|
@ -15,3 +15,12 @@ unittesttol <- function(x,y,z) {
|
|||
stop("Test failed")
|
||||
}
|
||||
}
|
||||
|
||||
unittest_sequence <- function (x,y) {
|
||||
if (setequal(x, y)) {
|
||||
print("PASS")
|
||||
} else {
|
||||
print("FAIL")
|
||||
stop("Test failed")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue