| /third_party/musl/libc-test/src/functionalext/unittest/ |
| D | unit_test_hilog_vsnprint_f_p.c | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 #include "test.h" 26 static int vsprintf_test(char *strDest, size_t destMax, size_t count, int priv, const char *fmt, ..… in vsprintf_test() argument 30 va_start(ap, fmt); in vsprintf_test() 31 ret = vsnprintfp_s(strDest, destMax, count, priv, fmt, ap); in vsprintf_test() 38 * @tc.desc : test vsnprintf normal condition 44 char *fmt = "MUSL"; in vsnprintfp_s_0010() local 45 int ret = vsprintf_test(buf, MAX_LOG_LEN, MAX_LOG_LEN - 1, true, fmt); in vsnprintfp_s_0010() 52 * @tc.desc : test vsnprintf both param buf and fmt are NULL 58 char *fmt = NULL; in vsnprintfp_s_0020() local [all …]
|
| /third_party/icu/icu4c/source/test/intltest/ |
| D | nmfmtrt.cpp | 5 * Copyright (c) 1997-2015, International Business Machines Corporation 33 double NumberFormatRoundTripTest::MAX_ERROR = 1e-14; 37 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… argument 66 // Assume 8-bit (or larger) rand values. Also assume in randLong() 79 * Return a random value from -range..+range. 85 return (2.0 * range * a) - range; in randomDouble() 91 // test(NumberFormat.getInstance(new Locale("sr", "", ""))); in start() 95 NumberFormat *fmt = NULL; in start() local 99 fmt = NumberFormat::createInstance(status); in start() 101 test(fmt); in start() [all …]
|
| D | dtfmapts.cpp | 5 * Copyright (c) 1997-2011, International Business Machines Corporation 22 // This is an API test, not a unit test. It doesn't test very many cases, and doesn't 23 // try to test the full functionality. It just calls each function in the class and 30 case 0: name = "DateFormat API test"; in runIndexedTest() 32 logln("DateFormat API test---"); logln(""); in runIndexedTest() 37 … errln("ERROR: Could not set default locale, test may not give correct results"); in runIndexedTest() 46 logln("TestEquals---"); logln(""); in runIndexedTest() 53 logln("TestNameHiding---"); logln(""); in runIndexedTest() 60 logln("TestCoverage---"); logln(""); in runIndexedTest() 92 * Test that the equals method works correctly. [all …]
|
| D | numfmtst.h | 5 * Copyright (c) 1997-2016, International Business Machines Corporation 24 * {0, -1, 0} (The sentinel element indicating end of iterator). Then test 36 * Header for the data-driven test, powered by numberformattestspecification.txt 64 * Performs various in-depth test on NumberFormat 73 * Test APIs (to increase code coverage) 81 * Test the handling of quotes 85 * Test patterns with exponential representation 89 * Test handling of patterns with currency symbols 93 * Test different format patterns 104 * Test localized currency patterns. [all …]
|
| /third_party/skia/m133/third_party/externals/icu/source/test/intltest/ |
| D | nmfmtrt.cpp | 5 * Copyright (c) 1997-2015, International Business Machines Corporation 33 double NumberFormatRoundTripTest::MAX_ERROR = 1e-14; 37 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… argument 66 // Assume 8-bit (or larger) rand values. Also assume in randLong() 79 * Return a random value from -range..+range. 85 return (2.0 * range * a) - range; in randomDouble() 91 // test(NumberFormat.getInstance(new Locale("sr", "", ""))); in start() 95 NumberFormat *fmt = nullptr; in start() local 99 fmt = NumberFormat::createInstance(status); in start() 101 test(fmt); in start() [all …]
|
| D | dtfmapts.cpp | 5 * Copyright (c) 1997-2011, International Business Machines Corporation 22 // This is an API test, not a unit test. It doesn't test very many cases, and doesn't 23 // try to test the full functionality. It just calls each function in the class and 30 case 0: name = "DateFormat API test"; in runIndexedTest() 32 logln("DateFormat API test---"); logln(""); in runIndexedTest() 37 … errln("ERROR: Could not set default locale, test may not give correct results"); in runIndexedTest() 46 logln("TestEquals---"); logln(""); in runIndexedTest() 53 logln("TestNameHiding---"); logln(""); in runIndexedTest() 60 logln("TestCoverage---"); logln(""); in runIndexedTest() 92 * Test that the equals method works correctly. [all …]
|
| D | numfmtst.h | 5 * Copyright (c) 1997-2016, International Business Machines Corporation 24 * {0, -1, 0} (The sentinel element indicating end of iterator). Then test 36 * Header for the data-driven test, powered by numberformattestspecification.txt 64 * Performs various in-depth test on NumberFormat 73 * Test APIs (to increase code coverage) 81 * Test the handling of quotes 85 * Test patterns with exponential representation 89 * Test handling of patterns with currency symbols 93 * Test different format patterns 104 * Test localized currency patterns. [all …]
|
| /third_party/rust/rust/library/core/tests/fmt/ |
| D | builders.rs | 2 use std::fmt; 4 #[test] 8 impl fmt::Debug for Foo { in test_empty() 9 fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { in test_empty() method 10 fmt.debug_struct("Foo").finish() in test_empty() 18 #[test] 22 impl fmt::Debug for Foo { in test_single() 23 fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { in test_single() method 24 fmt.debug_struct("Foo").field("bar", &true).finish() in test_single() 37 #[test] [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/ide-assists/src/handlers/ |
| D | merge_imports.rs | 22 // use std::$0fmt::Formatter; 25 // -> 27 // use std::{fmt::Formatter, io}; 29 pub(crate) fn merge_imports(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> { in merge_imports() 92 fn try_merge_from(self, items: &mut dyn Iterator<Item = Self>) -> Option<Vec<Edit>> { in try_merge_from() 106 fn try_merge(&self, other: &Self) -> Option<Self>; in try_merge() 107 fn into_either(self) -> Either<ast::Use, ast::UseTree>; in into_either() 111 fn try_merge(&self, other: &Self) -> Option<Self> { in try_merge() 114 fn into_either(self) -> Either<ast::Use, ast::UseTree> { in into_either() 120 fn try_merge(&self, other: &Self) -> Option<Self> { in try_merge() [all …]
|
| D | unmerge_use.rs | 17 // use std::fmt::{Debug, Display$0}; 19 // -> 21 // use std::fmt::{Debug}; 22 // use std::fmt::Display; 24 pub(crate) fn unmerge_use(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> { in unmerge_use() 64 fn resolve_full_path(tree: &ast::UseTree) -> Option<ast::Path> { in resolve_full_path() 80 #[cfg(test)] 86 #[test] 92 use std::fmt::Debug$0; in skip_single_use_item() 98 use std::fmt::{Debug$0}; in skip_single_use_item() [all …]
|
| /third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
| D | SimpleFormatterTest.java | 6 * Copyright (C) 2014-2016, International Business Machines Corporation and 10 package ohos.global.icu.dev.test.util; 12 import org.junit.Test; 16 import ohos.global.icu.dev.test.TestFmwk; 33 // public methods ----------------------------------------------- 35 @Test 37 SimpleFormatter fmt = SimpleFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoArguments() local 41 fmt.getArgumentLimit()); in TestWithNoArguments() 45 fmt.format("unused")); in TestWithNoArguments() 49 fmt.format((CharSequence[])null)); in TestWithNoArguments() [all …]
|
| /third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
| D | SimpleFormatterTest.java | 5 * Copyright (C) 2014-2016, International Business Machines Corporation and 9 package com.ibm.icu.dev.test.util; 11 import org.junit.Test; 15 import com.ibm.icu.dev.test.TestFmwk; 30 // public methods ----------------------------------------------- 32 @Test 34 SimpleFormatter fmt = SimpleFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoArguments() local 38 fmt.getArgumentLimit()); in TestWithNoArguments() 42 fmt.format("unused")); in TestWithNoArguments() 46 fmt.format((CharSequence[])null)); in TestWithNoArguments() [all …]
|
| /third_party/rust/rust/src/tools/clippy/tests/ui/ |
| D | recursive_format_impl.rs | 10 use std::fmt; 14 fn fmt(&self) { in fmt() method 20 fn fmt(&self) {} in fmt() method 24 fn fmt(&self) { in fmt() method 29 impl fmt::Display for A { 30 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method 35 fn fmt(a: A) { in fmt() function 44 fn to_string(&self) -> String { in to_string() 49 impl fmt::Display for C { 50 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/macro_expansion_tests/ |
| D | builtin_fn_macro.rs | 7 #[test] 25 #[test] 43 #[test] 69 #[test] 87 #[test] 105 #[test] 123 #[test] 129 ($cond:expr) => ({ /* compiler built-in */ }); in test_assert_expand() 130 ($cond:expr, $($args:tt)*) => ({ /* compiler built-in */ }) in test_assert_expand() 140 ($cond:expr) => ({ /* compiler built-in */ }); in test_assert_expand() [all …]
|
| /third_party/rust/rust/library/std/src/error/ |
| D | tests.rs | 2 use crate::fmt; 10 impl fmt::Display for A { 11 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 15 impl fmt::Display for B { 16 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 24 #[test] 48 impl fmt::Display for SuperError { 49 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 55 fn source(&self) -> Option<&(dyn Error + 'static)> { in source() 63 impl fmt::Display for SuperErrorSideKick { [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_node/tools/src/cmd/run-cts/ |
| D | main.go | 7 // http://www.apache.org/licenses/LICENSE-2.0 15 // run-cts is a tool used to run the WebGPU CTS using the Dawn module for NodeJS 24 "fmt" 41 "github.com/mattn/go-colorable" 42 "github.com/mattn/go-isatty" 51 fmt.Println(err) 57 fmt.Println(` 58 run-cts is a tool used to run the WebGPU CTS using the Dawn module for NodeJS 61 run-cts --dawn-node=<path to dawn.node> --cts=<path to WebGPU CTS> [test-query]`) 74 return fmt.Sprint(strings.Join(*f, "")) [all …]
|
| /third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
| D | NumberFormatRoundTripTest.java | 5 * Copyright (C) 2001-2010, International Business Machines Corporation and * 12 * Source File: $ICU4CRoot/source/test/intltest/nmfmtrt.cpp 15 package com.ibm.icu.dev.test.format; 20 import org.junit.Test; 24 import com.ibm.icu.dev.test.TestFmwk; 29 * Performs round-trip tests for NumberFormat 34 public double MAX_ERROR = 1e-14; 43 @Test 46 NumberFormat fmt = null; in TestNumberFormatRoundTrip() local 51 fmt = NumberFormat.getInstance(); in TestNumberFormatRoundTrip() [all …]
|
| D | IntlTestDateFormatAPIC.java | 5 * Copyright (C) 2001-2010, International Business Machines Corporation and * 12 * Source File: $ICU4CRoot/source/test/intltest/dtfmapts.cpp 15 package com.ibm.icu.dev.test.format; 21 import org.junit.Test; 25 import com.ibm.icu.dev.test.TestFmwk; 32 * This is an API test, not a unit test. It doesn't test very many cases, and doesn't 33 * try to test the full functionality. It just calls each function in the class and 39 * Test hiding of parse() and format() APIs in the Format hierarchy. 40 * We test the entire hierarchy, even though this test is located in 41 * the DateFormat API test. [all …]
|
| D | BigNumberFormatTest.java | 5 * Copyright (C) 1996-2009, International Business Machines Corporation and * 9 package com.ibm.icu.dev.test.format; 14 import org.junit.Test; 18 import com.ibm.icu.dev.test.TestFmwk; 25 * @test 26 * General test of Big NumberFormat 31 static final int ILLEGAL = -1; 33 @Test 47 * Test the functioning of the secondary grouping value. 49 @Test [all …]
|
| D | NumberFormatTest.java | 5 * Copyright (C) 2001-2016, International Business Machines Corporation and 12 * Source File: $ICU4oot/source/test/intltest/numfmtst.cpp 15 package com.ibm.icu.dev.test.format; 39 import org.junit.Test; 43 import com.ibm.icu.dev.test.TestFmwk; 44 import com.ibm.icu.dev.test.TestUtil; 45 import com.ibm.icu.dev.test.format.IntlTestDecimalFormatAPIC.FieldContainer; 74 @Test 96 double[] values = {-0.003006, -0.003005, -0.003004, 0.003014, 0.003015, 0.003016}; in TestRoundingScientific10542() 99 {"-3.00E-3", "-3.00E-3", "-3.00E-3", "3.02E-3", "3.02E-3", "3.02E-3"}, in TestRoundingScientific10542() [all …]
|
| /third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
| D | NumberFormatRoundTripTest.java | 6 * Copyright (C) 2001-2010, International Business Machines Corporation and * 13 * Source File: $ICU4CRoot/source/test/intltest/nmfmtrt.cpp 16 package ohos.global.icu.dev.test.format; 21 import org.junit.Test; 25 import ohos.global.icu.dev.test.TestFmwk; 31 * Performs round-trip tests for NumberFormat 37 public double MAX_ERROR = 1e-14; 46 @Test 49 NumberFormat fmt = null; in TestNumberFormatRoundTrip() local 54 fmt = NumberFormat.getInstance(); in TestNumberFormatRoundTrip() [all …]
|
| D | IntlTestDateFormatAPIC.java | 6 * Copyright (C) 2001-2010, International Business Machines Corporation and * 13 * Source File: $ICU4CRoot/source/test/intltest/dtfmapts.cpp 16 package ohos.global.icu.dev.test.format; 22 import org.junit.Test; 26 import ohos.global.icu.dev.test.TestFmwk; 34 * This is an API test, not a unit test. It doesn't test very many cases, and doesn't 35 * try to test the full functionality. It just calls each function in the class and 42 * Test hiding of parse() and format() APIs in the Format hierarchy. 43 * We test the entire hierarchy, even though this test is located in 44 * the DateFormat API test. [all …]
|
| D | BigNumberFormatTest.java | 6 * Copyright (C) 1996-2009, International Business Machines Corporation and * 10 package ohos.global.icu.dev.test.format; 15 import org.junit.Test; 19 import ohos.global.icu.dev.test.TestFmwk; 27 * @test 28 * General test of Big NumberFormat 34 static final int ILLEGAL = -1; 36 @Test 50 * Test the functioning of the secondary grouping value. 52 @Test [all …]
|
| D | NumberFormatTest.java | 6 * Copyright (C) 2001-2016, International Business Machines Corporation and 13 * Source File: $ICU4oot/source/test/intltest/numfmtst.cpp 16 package ohos.global.icu.dev.test.format; 40 import org.junit.Test; 44 import ohos.global.icu.dev.test.TestFmwk; 45 import ohos.global.icu.dev.test.TestUtil; 46 import ohos.global.icu.dev.test.format.IntlTestDecimalFormatAPIC.FieldContainer; 77 @Test 99 double[] values = {-0.003006, -0.003005, -0.003004, 0.003014, 0.003015, 0.003016}; in TestRoundingScientific10542() 102 {"-3.00E-3", "-3.00E-3", "-3.00E-3", "3.02E-3", "3.02E-3", "3.02E-3"}, in TestRoundingScientific10542() [all …]
|
| /third_party/skia/third_party/externals/tint/tools/src/cmd/test-runner/ |
| D | main.go | 7 // http://www.apache.org/licenses/LICENSE-2.0 15 // test-runner runs tint against a number of test shaders checking for expected behavior 21 "fmt" 36 "github.com/sergi/go-diff/diffmatchpatch" 53 fmt.Println(err) 59 fmt.Println(` 60 test-runner runs tint against a number of test shaders checking for expected behavior 63 test-runner [flags...] <executable> [<directory>] 66 <directory> the root directory of the test files 70 fmt.Println(``) [all …]
|