Home
last modified time | relevance | path

Searched refs:example (Results 1 - 25 of 113) sorted by relevance

12345

/third_party/python/Lib/test/
H A Dtest_array.py199 # example: an initializer usable in the constructor for this type
200 # smallerexample: the same length as example, but smaller
201 # biggerexample: the same length as example, but bigger
202 # outside: An entry that is not in example
220 a.append(self.example[0])
223 a = array.array(self.typecode, self.example)
224 self.assertEqual(len(a), len(self.example))
227 a = array.array(self.typecode, self.example)
238 example = '\U00100100'
240 example
1170 example = '\\x01\\u263a\\x00\\ufeff' global() variable in UnicodeTest
1328 example = [-1, 0, 1, 42, 0x7f] global() variable in SignedNumberTest
1341 example = [0, 1, 17, 23, 42, 0xff] global() variable in UnsignedNumberTest
1412 example = [-42.0, 0, 42, 1e5, -1e10] global() variable in FPTest
1475 def example(self, size): global() member in LargeArrayTest
[all...]
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/
H A Dglue_test.cc19 detail::PtrMaybe<std::vector<uint32_t>> example; in TEST() local
20 EXPECT_FALSE(example.isJust()); in TEST()
21 EXPECT_TRUE(nullptr == example.fromMaybe(nullptr)); in TEST()
25 example = std::move(v); in TEST()
26 EXPECT_TRUE(example.isJust()); in TEST()
27 EXPECT_THAT(*example.fromJust(), testing::ElementsAre(42, 21)); in TEST()
28 std::unique_ptr<std::vector<uint32_t>> out = example.takeJust(); in TEST()
29 EXPECT_FALSE(example.isJust()); in TEST()
34 detail::ValueMaybe<int32_t> example; in TEST() local
35 EXPECT_FALSE(example in TEST()
[all...]
H A Dmaybe_test.cc19 detail::PtrMaybe<std::vector<uint32_t>> example; in TEST() local
20 EXPECT_FALSE(example.isJust()); in TEST()
21 EXPECT_TRUE(nullptr == example.fromMaybe(nullptr)); in TEST()
25 example = std::move(v); in TEST()
26 EXPECT_TRUE(example.isJust()); in TEST()
27 EXPECT_THAT(*example.fromJust(), testing::ElementsAre(42, 21)); in TEST()
28 std::unique_ptr<std::vector<uint32_t>> out = example.takeJust(); in TEST()
29 EXPECT_FALSE(example.isJust()); in TEST()
34 detail::ValueMaybe<int32_t> example; in TEST() local
35 EXPECT_FALSE(example in TEST()
[all...]
/third_party/node/test/parallel/
H A Dtest-fs-read-stream-throw-type-error.js10 const example = fixtures.path('x.txt');
12 fs.createReadStream(example, undefined);
13 fs.createReadStream(example, null);
14 fs.createReadStream(example, 'utf8');
15 fs.createReadStream(example, { encoding: 'utf8' });
34 createReadStreamErr(example, opts, typeError)
39 fs.createReadStream(example, opts)
47 ].forEach((opts) => createReadStreamErr(example, opts, typeError));
51 createReadStreamErr(example, opts, rangeError)
56 createReadStreamErr(example, opt
[all...]
H A Dtest-url-format.js12 'http://example.com?': {
13 href: 'http://example.com/?',
16 host: 'example.com',
17 hostname: 'example.com',
22 'http://example.com?foo=bar#frag': {
23 href: 'http://example.com/?foo=bar#frag',
25 host: 'example.com',
26 hostname: 'example.com',
32 'http://example.com?foo=@bar#frag': {
33 href: 'http://example
[all...]
/third_party/skia/tools/fiddle/
H A Dexamples.cpp26 for (const fiddle::Example& example : sk_tools::Registry<fiddle::Example>::Range()) { in main()
27 SkASSERT((unsigned)example.fImageIndex < (unsigned)kImgCount); in main()
28 image = images[example.fImageIndex]; in main()
29 source = bitmaps[example.fImageIndex]; in main()
31 bmp.allocN32Pixels(example.fWidth, example.fHeight); in main()
34 SkDebugf("==> %s\n", example.fName); in main()
35 example.fFunc(&canvas); in main()
/third_party/typescript/tests/baselines/reference/
H A DdiscriminatedUnionTypes3.js14 const example: SomeReturnType = {} as SomeReturnType;
16 if (example.err === undefined) {
17 example.property; // true
23 var example = {};
24 if (example.err === undefined) {
25 example.property; // true
H A DkeyofModuleObjectHasCorrectKeys.js3 //// [example.ts]
9 import * as example from './example';
13 test(example, "default");
16 //// [example.js]
26 var example = require("./example"); variable
27 test(example, "default");
H A DintraExpressionInferences.js159 function example<TParams, TDone, TMapped>(options: Opts<TParams, TDone, TMapped>) {
171 example({
176 example({
181 example({
294 function example(options) { function
300 example({
304 example({
308 example({
375 declare function example<TParams, TDone, TMapped>(options: Opts<TParams, TDone, TMapped>): (params: TParams) => TMapped;
H A DjsFunctionWithPrototypeNoErrorTruncationNoCrash.js3 this.example = true
20 this.example = true;
H A DasyncImportedPromise_es6.js9 async example<T>(): Task<T> { return; }
32 example() {
/third_party/zlib/contrib/delphi/
H A Dzlibd32.mak28 all: $(ZLIB_LIB) example.exe minigzip.exe
66 example.obj: test/example.c zlib.h zconf.h
80 test: example.exe minigzip.exe
81 example
84 example.exe: example.obj $(ZLIB_LIB)
85 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
/third_party/zlib/contrib/pascal/
H A Dzlibd32.mak28 all: $(ZLIB_LIB) example.exe minigzip.exe
66 example.obj: test/example.c zlib.h zconf.h
80 test: example.exe minigzip.exe
81 example
84 example.exe: example.obj $(ZLIB_LIB)
85 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
/third_party/zlib/watcom/
H A Dwatcom_l.mak25 all: $(ZLIB_LIB) example.exe minigzip.exe
34 example.exe: $(ZLIB_LIB) example.obj
35 $(LINKER) -fe=example.exe example.obj $(ZLIB_LIB)
H A Dwatcom_f.mak25 all: $(ZLIB_LIB) example.exe minigzip.exe
34 example.exe: $(ZLIB_LIB) example.obj
35 $(LINKER) -ldos32a -fe=example.exe example.obj $(ZLIB_LIB)
/third_party/python/Lib/
H A Ddoctest.py25 This won't display anything unless an example fails, in which case the
26 failing example(s) and the cause(s) of the failure(s) are printed to stdout
428 ## - An "example" is a <source, want> pair, where "source" is a
431 ## where the example was extracted from.
439 A single doctest example, consisting of source code and expected
450 - exc_msg: The exception message generated by the example, if
451 the example is expected to generate an exception; or `None` if
462 - indent: The example's indentation in the DocTest string.
464 example's first prompt.
468 example
[all...]
/third_party/rust/crates/bitflags/tests/compile-fail/visibility/
H A Dprivate_flags.rs1 mod example { modules
16 let flag1 = example::Flags1::FLAG_A; in main()
17 let flag2 = example::Flags2::FLAG_B; in main()
H A Dprivate_field.rs1 mod example { modules
12 let flag1 = example::Flags1::FLAG_A.bits; in main()
/third_party/json/docs/examples/
H A Dmerge_patch.cpp18 "example", in main()
32 "example" in main()
/third_party/skia/third_party/externals/tint/tools/src/cmd/check-spec-examples/
H A Dmain.go150 examples := []example{}
169 // For each compilable WGSL example...
188 // Holds all the information about a single, compilable WGSL example in the spec
189 type example struct { type
191 code string // The example source
197 // tryCompile attempts to compile the example e in the directory wd, using the
198 // compiler at the given path. If the example is annotated with 'function-scope'
202 func tryCompile(compiler, wd string, e example) error {
230 return fmt.Errorf("Failed to write example file '%v'", path)
242 // WGSL example cod
[all...]
/third_party/ltp/testcases/kernel/device-drivers/dev_sim_framework/user_space/
H A Dtmod_ki.c76 An example of using in_data to pass in a structure:ki_write_t wif;
92 An example of using out_data to get back a structure:ki_read_t rif;
/third_party/ltp/testcases/kernel/device-drivers/agp/user_space/
H A Dtagp_ki.c76 An example of using in_data to pass in a structure:ki_write_t wif;
92 An example of using out_data to get back a structure:ki_read_t rif;
/third_party/protobuf/examples/
H A DListPeople.java3 import com.example.tutorial.AddressBookProtos.AddressBook;
4 import com.example.tutorial.AddressBookProtos.Person;
/third_party/python/Lib/tkinter/
H A Dscrolledtext.py45 def example(): function
56 example()
/third_party/skia/modules/pathkit/
H A DMakefile86 # local-example-test
98 # local-example-test
109 example:
111 echo "Go check out localhost:8000/npm-wasm/example.html"
114 local-example:
120 echo "Go check out http://localhost:8000/npm-wasm/example.html"
121 echo "or http://localhost:8000/npm-asmjs/example.html"
124 local-example-test:
131 echo "Go check out localhost:8000/npm-wasm/example.html"
132 echo "or http://localhost:8000/npm-asmjs/example
[all...]

Completed in 7 milliseconds

12345