Skip to content

Commit 6518369

Browse files
Adding test for the String.valueOf(F) function
Add and enable a test for a float to string conversion.
1 parent 8367ff5 commit 6518369

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
test.class
3+
--refine-strings --function test.check
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
assertion.* file test.java line 7 .* SUCCESS$
7+
assertion.* file test.java line 9 .* FAILURE$
8+
--
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
public class test
2+
{
3+
public static void check(int i)
4+
{
5+
String s = String.valueOf(123.456f);
6+
if(i == 1)
7+
assert(s.equals("123.456"));
8+
else
9+
assert(!s.equals("123.456"));
10+
}
11+
}

0 commit comments

Comments
 (0)