Home
last modified time | relevance | path

Searched refs:numFmt (Results 1 - 3 of 3) sorted by relevance

/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_number_format_test.cpp56 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); in HWTEST_F() local
57 ASSERT_TRUE(numFmt != nullptr); in HWTEST_F()
58 string out = numFmt->Format(123456.789); in HWTEST_F()
60 EXPECT_EQ(numFmt->GetUseGrouping(), useGrouping); in HWTEST_F()
61 EXPECT_EQ(numFmt->GetStyle(), style); in HWTEST_F()
62 EXPECT_EQ(numFmt->GetCurrency(), "EUR"); in HWTEST_F()
86 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); in HWTEST_F() local
87 ASSERT_TRUE(numFmt != nullptr); in HWTEST_F()
88 string out = numFmt->Format(123456.789); in HWTEST_F()
90 EXPECT_EQ(numFmt in HWTEST_F()
116 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); HWTEST_F() local
146 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); HWTEST_F() local
176 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); HWTEST_F() local
206 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); HWTEST_F() local
[all...]
H A Dintl_test.cpp317 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); in HWTEST_F() local
318 if (!numFmt) { in HWTEST_F()
322 string out = numFmt->Format(123456.789); in HWTEST_F()
324 EXPECT_EQ(numFmt->GetUseGrouping(), useGrouping); in HWTEST_F()
325 EXPECT_EQ(numFmt->GetStyle(), style); in HWTEST_F()
326 EXPECT_EQ(numFmt->GetCurrency(), currency); in HWTEST_F()
327 delete numFmt; in HWTEST_F()
350 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); in HWTEST_F() local
351 if (!numFmt) { in HWTEST_F()
355 string out = numFmt in HWTEST_F()
378 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); HWTEST_F() local
406 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); HWTEST_F() local
443 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); HWTEST_F() local
469 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); HWTEST_F() local
547 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); HWTEST_F() local
[all...]
H A Dintl_test_extent.cpp502 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); in HWTEST_F() local
503 if (!numFmt) { in HWTEST_F()
507 string out = numFmt->Format(123456.789); in HWTEST_F()
509 EXPECT_EQ(numFmt->GetStyle(), style); in HWTEST_F()
510 delete numFmt; in HWTEST_F()
835 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); in HWTEST_F() local
836 if (!numFmt) { in HWTEST_F()
840 std::string nowRes = numFmt->Format(0.00001); in HWTEST_F()
841 std::string secondRes = numFmt->Format(0.00004); in HWTEST_F()
842 std::string dayRes = numFmt in HWTEST_F()
865 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); HWTEST_F() local
895 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); HWTEST_F() local
[all...]

Completed in 5 milliseconds