Skip to content

Commit 6133faa

Browse files
committed
assertthat as gated package
1 parent 46616c0 commit 6133faa

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

com.oracle.truffle.r.test.packages/gated

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ OptimalCutpoints
66
rjson
77
RSclient
88
rstudioapi
9+
assertthat

com.oracle.truffle.r.test.packages/test.output.filter

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# r replace exact match of the first argument by the second argument
1515
# R replace line containing the first argument by the second argument
1616
# D+3-1 delete line containing the specified string and 1 preceding and 3 following lines
17-
# s substitute line containing the specified regular expression (use Python regex syntax)
17+
# s substitute match of the regular expression with given string (use Python regex syntax)
1818
#
1919
# NOTES:
2020
# The definition order of the filters (in this file) matters.
@@ -41,7 +41,7 @@
4141
# for all packages: delete line containing 'detaching ‘package:grid’'
4242
.* => D/detaching ‘package:grid’
4343

44-
# for all packages: delete line containing 'detaching ‘package:grid’'
44+
# normalize environment addresses
4545
.* => s/<environment: 0x[0-9A-Fa-f]*>/<environment: 0xCAFEBABE>
4646

4747
# for individual packages:
@@ -61,3 +61,15 @@ compare => D+3/Error in source(filename, local = TRUE) :
6161
# plus we remove factor's "Levels" followed by the attribute value
6262
compare => D-1/[1] poor poor poor middle middle middle
6363
compare => D/Levels: poor middle
64+
65+
# ------
66+
# "Error in try(stop("!!")) :" vs "Error :"
67+
assertthat => r/Error in try(stop("!!"))/Error
68+
69+
# differences in paths
70+
assertthat => s/Path '.*' does not exist/Path 'path/to/somewhere' does not exist
71+
assertthat => s/Path '.*' is not a directory/Path 'path/to/dir' is not a directory
72+
73+
# different output format in GNUR and FastR
74+
assertthat => R/[1] "mean %has_args% \"y\" is not TRUE"/REPLACED has_args
75+
assertthat => R/[1] "`%has_args%`(f = mean, args = \"y\") is not TRUE"/REPLACED has_args

0 commit comments

Comments
 (0)