Skip to content
Snippets Groups Projects
Commit ba9d43dd authored by Mick Jordan's avatar Mick Jordan
Browse files

make TestUserRNG use evalTemplate

parent 0d93a8a0
No related branches found
No related tags found
No related merge requests found
......@@ -35,8 +35,6 @@ public class TestUserRNG extends TestBase {
Path cwd = Paths.get(System.getProperty("user.dir"));
Path libPath = Paths.get(REnvVars.rHome(), "com.oracle.truffle.r.test.native/urand/bin/liburand.so");
Path relLibPath = cwd.relativize(libPath);
String testExpr = String.format("{ dyn.load(\"%s\"); RNGkind(\"user\"); print(RNGkind()); set.seed(4567); runif(10) }", relLibPath);
assertEval(testExpr);
assertTemplateEval(TestBase.template("{ dyn.load(\"%0\"); RNGkind(\"user\"); print(RNGkind()); set.seed(4567); runif(10) }", new String[]{relLibPath.toString()}));
}
}
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