/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | number_helper_test.cpp | 88 JSHandle<EcmaString> handleEcmaStr1(thread, NumberHelper::DoubleToString(thread, 37, radix)); in HWTEST_F_L0() local 89 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr1, resultStr), 0); in HWTEST_F_L0() 135 … JSHandle<EcmaString> handleEcmaStr1(thread, NumberHelper::DoubleToString(thread, 2.99099, radix)); in HWTEST_F_L0() local 136 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr1, resultStr), 0); in HWTEST_F_L0() 321 …JSHandle<EcmaString> handleEcmaStr1(thread, NumberHelper::DoubleToExponential(thread, 123.9876, ra… in HWTEST_F_L0() local 322 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr1, resultStr), 0); in HWTEST_F_L0() 357 … JSHandle<EcmaString> handleEcmaStr1(thread, NumberHelper::DoubleToFixed(thread, 123.456, radix)); in HWTEST_F_L0() local 358 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr1, resultStr), 0); in HWTEST_F_L0() 397 … JSHandle<EcmaString> handleEcmaStr1(thread, NumberHelper::DoubleToPrecision(thread, 0.0, radix)); in HWTEST_F_L0() local 398 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr1, resultStr), 0); in HWTEST_F_L0()
|
D | builtins_base_test.cpp | 130 JSHandle<EcmaString> handleEcmaStr1(thread, resultStr1); in HWTEST_F_L0() local 131 EXPECT_STREQ(EcmaStringAccessor(handleEcmaStr1).ToCString().c_str(), "BuiltinsBase"); in HWTEST_F_L0()
|
D | json_stringifier_test.cpp | 115 JSHandle<EcmaString> handleEcmaStr1(resultString1); in HWTEST_F_L0() local 116 EXPECT_STREQ("false", EcmaStringAccessor(handleEcmaStr1).ToCString().c_str()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | constant_string_test.cpp | 308 JSHandle<EcmaString> handleEcmaStr1(thread, in HWTEST_F_L0() local 311 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 312 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr1, handleEcmaStr, posStart), -1); in HWTEST_F_L0() 314 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 316 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 318 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 320 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), -1); in HWTEST_F_L0()
|
D | ecma_string_test.cpp | 984 JSHandle<EcmaString> handleEcmaStr1(thread, in HWTEST_F_L0() local 987 EXPECT_EQ(handleEcmaStr->IndexOf(*handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 988 EXPECT_EQ(handleEcmaStr1->IndexOf(*handleEcmaStr, posStart), -1); in HWTEST_F_L0() 990 EXPECT_EQ(handleEcmaStr->IndexOf(*handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 992 EXPECT_EQ(handleEcmaStr->IndexOf(*handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 994 EXPECT_EQ(handleEcmaStr->IndexOf(*handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 996 EXPECT_EQ(handleEcmaStr->IndexOf(*handleEcmaStr1, posStart), -1); in HWTEST_F_L0() 1015 JSHandle<EcmaString> handleEcmaStr1(thread, in HWTEST_F_L0() local 1018 EXPECT_EQ(handleEcmaStr1->IndexOf(*handleEcmaStr, posStart), 6); in HWTEST_F_L0() 1019 EXPECT_EQ(handleEcmaStr->IndexOf(*handleEcmaStr1, posStart), -1); in HWTEST_F_L0() [all …]
|
D | ecma_string_accessor_test.cpp | 908 JSHandle<EcmaString> handleEcmaStr1(thread, in HWTEST_F_L0() local 911 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 912 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr1, handleEcmaStr, posStart), -1); in HWTEST_F_L0() 914 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 916 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 918 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), 2); in HWTEST_F_L0() 920 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), -1); in HWTEST_F_L0() 939 JSHandle<EcmaString> handleEcmaStr1(thread, EcmaStringAccessor::CreateFromUtf16( in HWTEST_F_L0() local 942 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr1, handleEcmaStr, posStart), 6); in HWTEST_F_L0() 943 EXPECT_EQ(EcmaStringAccessor::IndexOf(ecmaVMPtr, handleEcmaStr, handleEcmaStr1, posStart), -1); in HWTEST_F_L0() [all …]
|