You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2019/04/07 01:13:06 UTC

[incubator-iotdb] branch reduce_redundant_test updated: use assertEqual(a, b, detla) for float-equaling

This is an automated email from the ASF dual-hosted git repository.

hxd pushed a commit to branch reduce_redundant_test
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/reduce_redundant_test by this push:
     new 5bf097c  use assertEqual(a, b, detla) for float-equaling
5bf097c is described below

commit 5bf097c7b4077e2728ca47d4e20eebaaf4893597
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Sun Apr 7 09:12:56 2019 +0800

    use assertEqual(a, b, detla) for float-equaling
---
 .../test/java/org/apache/iotdb/tsfile/write/TsFileReadWriteTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tsfile/src/test/java/org/apache/iotdb/tsfile/write/TsFileReadWriteTest.java b/tsfile/src/test/java/org/apache/iotdb/tsfile/write/TsFileReadWriteTest.java
index 01bfc97..8220c2a 100644
--- a/tsfile/src/test/java/org/apache/iotdb/tsfile/write/TsFileReadWriteTest.java
+++ b/tsfile/src/test/java/org/apache/iotdb/tsfile/write/TsFileReadWriteTest.java
@@ -83,7 +83,7 @@ public class TsFileReadWriteTest {
   @Test
   public void floatTest() throws IOException, WriteProcessException {
     writeData(TSDataType.FLOAT, (i) -> new FloatDataPoint("sensor_1", (float) i));
-    readData((i, field, delta) -> assertEquals(i, field.getFloatV()));
+    readData((i, field, delta) -> assertEquals(i, field.getFloatV(), delta));
   }
 
   @Test