Skip to content

Commit

Permalink
Added test for UTF-8 characters in script-engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
spmallette committed Jul 18, 2014
1 parent f170fd1 commit a36925f
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -311,7 +311,10 @@ public void testGremlinScriptEngineWithScriptBaseClass() throws Exception {
groovy = "useInterceptor( GremlinGroovyPipeline, com.tinkerpop.gremlin.groovy.basescript.GremlinGroovyPipelineInterceptor) {" + groovy + "}";
engine.eval(groovy);
assertEquals(5, list.size());

}

public void testGremlinScriptEngineWithUTF8Characters() throws Exception {
ScriptEngine engine = new GremlinGroovyScriptEngine();
assertEquals("轉注", engine.eval("'轉注'"));
}
}

0 comments on commit a36925f

Please sign in to comment.