You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2021/12/15 22:07:15 UTC

[plc4x] branch develop updated: fix: Fixed a test to work with the new generated code

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

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0fc7ff2  fix: Fixed a test to work with the new generated code
0fc7ff2 is described below

commit 0fc7ff2ef7c23b4a5f8802d9dc698c118b05eda0
Author: cdutz <ch...@c-ware.de>
AuthorDate: Wed Dec 15 23:07:08 2021 +0100

    fix: Fixed a test to work with the new generated code
---
 .../knxnetip-test/test/knxnetip/readwrite/model/KnxDatapointTests.cs | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/plc4net/drivers/knxnetip-test/test/knxnetip/readwrite/model/KnxDatapointTests.cs b/plc4net/drivers/knxnetip-test/test/knxnetip/readwrite/model/KnxDatapointTests.cs
index 6e0e5b6..2386f46 100644
--- a/plc4net/drivers/knxnetip-test/test/knxnetip/readwrite/model/KnxDatapointTests.cs
+++ b/plc4net/drivers/knxnetip-test/test/knxnetip/readwrite/model/KnxDatapointTests.cs
@@ -31,11 +31,10 @@ namespace org.apache.plc4net.test.knxnetip.readwrite.model
         [Fact]
         public void DecodeKnxData1()
         {
-            var formatName = "F32";
-            var input = StrToByteArray("0041b00000");
+            var input = StrToByteArray("41b00000");
             IPlcValue expected = new PlcREAL(22.0f);
             
-            var actual = KnxDatapoint.StaticParse(new ReadBuffer(input), KnxDatapointType.DPT_SSSBMode);
+            var actual = KnxDatapoint.StaticParse(new ReadBuffer(input), KnxDatapointType.DPT_Value_Electric_Current);
             
             Assert.Equal(expected, actual);
         }