diff --git a/ecmascript/extractortool/tests/source_map_test.cpp b/ecmascript/extractortool/tests/source_map_test.cpp index 435e08be32c6e0795a0d28bc78b85475165fba22..841d4b523b8266846e0e68b15e808bde2bbbe330 100644 --- a/ecmascript/extractortool/tests/source_map_test.cpp +++ b/ecmascript/extractortool/tests/source_map_test.cpp @@ -471,6 +471,11 @@ HWTEST_F_L0(SourceMapTest, FindTest) EXPECT_EQ(mappingInfo.row, 2); EXPECT_EQ(mappingInfo.col, 2); EXPECT_TRUE(isReplaces); + + mappingInfo = sourceMapFriend.Find(4, 2, targetMap, isReplaces); + EXPECT_EQ(mappingInfo.row, 4); + EXPECT_EQ(mappingInfo.col, 2); + EXPECT_TRUE(!isReplaces); } HWTEST_F_L0(SourceMapTest, ExtractKeyInfoTest)