Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit e5c8f6f

Browse files
author
Jaroslav Tulach
committed
Use String.format to compose the failure message
1 parent 8c581b9 commit e5c8f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/mycompany/app/AppTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public void testSpeed() throws Exception {
99
long nashorn = App.benchNashornScriptEngine();
1010
long graalJS = App.benchGraalPolyglotContext();
1111
if (nashorn < graalJS) {
12-
fail("Graal.js should be five times faster. Nashorn " + nashorn + " ms. Graal.js " + graalJS + " ms");
12+
fail(String.format("Graal.js (%d ms) should be faster than Nashorn (%d ms).", graalJS, nashorn));
1313
}
1414
}
1515
}

0 commit comments

Comments
 (0)