From 022280bd4eaeab978e0df99c4dc0c8aeae274e54 Mon Sep 17 00:00:00 2001 From: zhaoyuan17 Date: Tue, 9 Nov 2021 19:26:18 +0000 Subject: [PATCH] Skill test modified Signed-off-by: zhaoyuan17 --- .../kits/content/cpp/test/unittest/common/skills_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/kits/content/cpp/test/unittest/common/skills_test.cpp b/frameworks/kits/content/cpp/test/unittest/common/skills_test.cpp index eaa0ba86be1..0780a86cbc7 100755 --- a/frameworks/kits/content/cpp/test/unittest/common/skills_test.cpp +++ b/frameworks/kits/content/cpp/test/unittest/common/skills_test.cpp @@ -125,7 +125,8 @@ HWTEST_F(SkillsBaseTest, AaFwk_Skills_Parcelable_0200, Function | MediumTest | L if (SkillsOut_ != nullptr) { CompareSkills(SkillsIn_, SkillsOut_); - EXPECT_EQ(valueLong, Long::Unbox(ILong::Query(SkillsOut_->GetWantParams().GetParam(keyStr)))); + std::string result = String::Unbox(IString::Query(SkillsOut_->GetWantParams().GetParam(keyStr))); + EXPECT_STREQ(std::to_string(valueLong).c_str(), result.c_str()); } }