Skip to content
Snippets Groups Projects
Commit 42c40b02 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

test for environmentName

parent 361642ed
No related branches found
No related tags found
No related merge requests found
......@@ -31,4 +31,14 @@ public class TestBuiltin_environmentName extends TestBase {
public void testenvironmentName3() {
assertEval("argv <- list(structure(numeric(0), .Dim = c(0L, 0L))); .Internal(environmentName(argv[[1]]))");
}
@Test
public void test() {
assertEval("environmentName(globalenv())");
assertEval("environmentName(baseenv())");
assertEval("environmentName(emptyenv())");
assertEval("environmentName(parent.env(globalenv()))");
assertEval("environmentName(environment(sum))");
assertEval("environmentName(environment(lm))");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment