tbel: doc Io tests: doubleToString - 5
This commit is contained in:
parent
7814db1620
commit
bc9af20aae
@ -857,7 +857,7 @@ class TbelInvokeDocsIoTest extends AbstractTbelInvokeTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void dpubleToString_Test() throws ExecutionException, InterruptedException {
|
||||
public void doubleToString_Test() throws ExecutionException, InterruptedException {
|
||||
msgStr = "{}";
|
||||
decoderStr = """
|
||||
var dd0 = 99993219.156013e-002;
|
||||
@ -869,10 +869,11 @@ class TbelInvokeDocsIoTest extends AbstractTbelInvokeTest {
|
||||
}
|
||||
""";
|
||||
LinkedHashMap<String, Object> expected = new LinkedHashMap<>();
|
||||
Double dd0 = 99993219.156013e-002d;
|
||||
expected.put("dd16", "0x1.e83f862142b5bp19");
|
||||
expected.put("dd10", "999932,19156013");
|
||||
expected.put("dd10", String.format("%.8f", dd0));
|
||||
Object actual = invokeScript(evalScript(decoderStr), msgStr);
|
||||
assertEquals(expected, actual);
|
||||
assertEquals(expected.toString(), actual.toString());
|
||||
}
|
||||
|
||||
// Flow Control
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user