Skip to content

Commit b14dfc6

Browse files
committed
rt_test_task: with correct=TRUE, now also check class first
1 parent b091136 commit b14dfc6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: codeoceanR
22
Title: Test R tasks with CodeOcean at HPI
3-
Version: 0.8.49
4-
Date: 2023-05-22
3+
Version: 0.8.50
4+
Date: 2023-09-28
55
Authors@R:
66
person(given = "Berry",
77
family = "Boessenkool",

R/rt_test_task.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ if(correct && !is.function(value))
120120
toString(class(object)), "'", de=" haben", ".")
121121
return(rt_env(fail=tnumber))
122122
}
123+
if(!rt_has_class(object, class(value), name=n, intnum=intnum))
124+
return(rt_env(fail=tnumber))
123125
if(!isTRUE(all.equal(sort(object),sort(value))))
124126
{
125127
toString2 <- function(x)

0 commit comments

Comments
 (0)