Skip to content
Snippets Groups Projects
Commit 69c31989 authored by Adam Welc's avatar Adam Welc
Browse files

Regenerated tests.

parent 4d5d91fc
Branches
No related tags found
No related merge requests found
...@@ -6001,6 +6001,15 @@ a + foo(c) * b ...@@ -6001,6 +6001,15 @@ a + foo(c) * b
#foo <- function(x) x*2; f <- function() a+foo(c)*b; as.function(c(alist(a=1+14, b=foo(x),c=), body(f)))(c=3,b=1) #foo <- function(x) x*2; f <- function() a+foo(c)*b; as.function(c(alist(a=1+14, b=foo(x),c=), body(f)))(c=3,b=1)
[1] 21 [1] 21
   
##com.oracle.truffle.r.test.builtins.TestBuiltin_asfunction.testasfunction
#{ .Internal(as.function.default(alist(a+b), "foo")) }
Error in as.function.default(alist(a + b), "foo") : invalid environment
##com.oracle.truffle.r.test.builtins.TestBuiltin_asfunction.testasfunction
#{ .Internal(as.function.default(function() 42, parent.frame())) }
Error in as.function.default(function() 42, parent.frame()) :
list argument expected
##com.oracle.truffle.r.test.builtins.TestBuiltin_asfunction.testasfunction ##com.oracle.truffle.r.test.builtins.TestBuiltin_asfunction.testasfunction
#{ as.function(alist("foo"))() } #{ as.function(alist("foo"))() }
[1] "foo" [1] "foo"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment