From: Gichan Jang Date: Wed, 3 Mar 2021 08:21:37 +0000 (+0900) Subject: [MachineLearning.Inference][Non-ACR] Change string property test X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b9ec8fadef6051a8e8fa3c585a9a5741dfbd091;p=test%2Ftct%2Fcsharp%2Fapi.git [MachineLearning.Inference][Non-ACR] Change string property test Current setting and getting string property test try to select tensors that does not exist. Changed to select the first tensor. Change-Id: If1e2c70de21475181f7da2a3ed22f2de4e6e957f Signed-off-by: Gichan Jang --- diff --git a/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSPipeline.NodeInfo.cs b/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSPipeline.NodeInfo.cs index e7045bf..8335656 100644 --- a/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSPipeline.NodeInfo.cs +++ b/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSPipeline.NodeInfo.cs @@ -888,9 +888,9 @@ namespace Tizen.MachineLearning.Inference.Tests { /* Test Code */ string retTensorpick; - demux_node.SetValue("tensorpick", "1,2"); + demux_node.SetValue("tensorpick", "0"); demux_node.GetValue("tensorpick", out retTensorpick); - Assert.IsTrue(retTensorpick == "1,2", "Failed to set the value of normal node"); + Assert.IsTrue(retTensorpick == "0", "Failed to set the value of normal node"); pipeline.Dispose(); } @@ -932,7 +932,7 @@ namespace Tizen.MachineLearning.Inference.Tests { Assert.IsInstanceOf(demux_node, "Should return normal node instance"); /* Test Code */ - demux_node.SetValue(null, "1,2"); + demux_node.SetValue(null, "0"); Assert.True(false, "DO NOT COME HERE!"); } @@ -978,7 +978,7 @@ namespace Tizen.MachineLearning.Inference.Tests { Assert.IsInstanceOf(demux_node, "Should return normal node instance"); /* Test Code */ - demux_node.SetValue("invalid_name", "1,2"); + demux_node.SetValue("invalid_name", "0"); Assert.True(false, "DO NOT COME HERE!"); } @@ -1024,7 +1024,7 @@ namespace Tizen.MachineLearning.Inference.Tests { Assert.IsInstanceOf(demux_node, "Should return normal node instance"); /* Test Code */ - demux_node.SetValue("", "1,2"); + demux_node.SetValue("", "0"); Assert.True(false, "DO NOT COME HERE!"); } @@ -1538,7 +1538,7 @@ namespace Tizen.MachineLearning.Inference.Tests { /* Test Code */ /* The type of tensorpick is a string, but it failed because it was set as a int. */ - demux_node.SetValue("tensorpick", 1); + demux_node.SetValue("tensorpick", 0); Assert.True(false, "DO NOT COME HERE!"); }