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

Added tests for generic function creation.

parent 97d54fde
Branches
No related tags found
No related merge requests found
......@@ -82,4 +82,11 @@ public class TestS4 extends TestBase {
// output slightly different from GNU R even though we use R's "show" method to print it
assertEval(Ignored.OutputFormatting, "{ setClass(\"foo\", representation(j=\"numeric\")); getClass(\"foo\") }");
}
@Test
public void testMethods() {
// output slightly different from GNU R even though we use R's "show" method to print it
assertEval(Ignored.OutputFormatting, "{ setGeneric(\"gen\", function(object) standardGeneric(\"gen\")); gen }");
assertEval(Ignored.OutputFormatting, "{ gen<-function(object) 0; setGeneric(\"gen\"); gen }");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment