Home
last modified time | relevance | path

Searched refs:expect (Results 326 - 350 of 762) sorted by relevance

1...<<11121314151617181920>>...31

/third_party/rust/crates/clap/tests/builder/
H A Drequire.rs29 assert!(*m.get_one::<bool>("color").expect("defaulted by clap")); in flag_required_2()
30 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in flag_required_2()
168 assert!(*m.get_one::<bool>("some").expect("defaulted by clap")); in group_required_2()
169 assert!(!*m.get_one::<bool>("other").expect("defaulted by clap")); in group_required_2()
170 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in group_required_2()
182 assert!(!*m.get_one::<bool>("some").expect("defaulted by clap")); in group_required_3()
183 assert!(*m.get_one::<bool>("other").expect("defaulted by clap")); in group_required_3()
184 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in group_required_3()
214 assert!(*m.get_one::<bool>("some").expect("defaulted by clap")); in arg_require_group_2()
215 assert!(!*m.get_one::<bool>("other").expect("defaulte in arg_require_group_2()
[all...]
/test/xts/acts/communication/wifi_p2p/entry/src/ohosTest/js/test/
H A DWifiP2PEvent.test.js16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '@ohos/hypium'
115 expect(true).assertEqual(resultLength!=0);
156 expect(startDiscover).assertTrue();
188 expect(true).assertEqual(resultLength!=0);
191 expect(true).assertEqual(error !=null);
195 expect(true).assertEqual( (JSON.stringify(error.message)) !=null);
216 expect(startDiscover).assertTrue();
H A DWifiManagerP2PEvent.test.js16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '@ohos/hypium'
118 expect(true).assertEqual(resultLength!=0);
189 expect(true).assertEqual(resultLength!=0);
192 expect(true).assertEqual(error !=null);
196 expect(true).assertEqual( (JSON.stringify(error.message)) !=null);
/third_party/openssl/test/recipes/
H A D20-test_kdf.t95 my ($cmdarray, $expect) = @_;
96 if (defined($expect)) {
97 $expect = uc $expect;
102 if (defined($expect)) {
103 if ($lines[0] =~ m|^\Q${expect}\E\R$|) {
107 print "Exp: $expect\n";
/test/xts/acts/security/huks/security_huks_basic/huks_cipher_promise_BasicTest/entry/src/ohosTest/js/test/Cipher/
H A DSecurityHuksCipherSM4BasicPromiseJsunit.test.js16 import { describe, it, expect, beforeAll } from '@ohos/hypium';
50 expect(data.errorCode == 0).assertTrue();
54 expect(null).assertFail();
64 expect(data.errorCode == 0).assertTrue();
68 expect(null).assertFail();
94 expect(data.errorCode === 0).assertTrue();
98 expect(null).assertFail();
104 expect(null).assertFail();
117 expect(data.errorCode === 0).assertTrue();
123 expect(arrayEqua
[all...]
/third_party/node/test/parallel/
H A Dtest-url-format.js268 const expect = formatTests[u].href;
272 assert.strictEqual(actual, expect,
273 `wonky format(${u}) == ${expect}\nactual:${actual}`);
274 assert.strictEqual(actualObj, expect,
276 expect}\nactual: ${actualObj}`);
/third_party/skia/src/sksl/lex/
H A DRegexParser.cpp29 void RegexParser::expect(char c) { in expect() function in RegexParser
103 this->expect('.'); in dot()
108 this->expect('('); in group()
110 this->expect(')'); in group()
132 expect('['); in set()
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/
H A Dmain.rs158 .expect("unittest executable path") in build_dir()
160 .expect("debug/release directory") in build_dir()
166 build_dir().parent().expect("target directory").to_path_buf() in target_dir()
171 target_dir().parent().expect("project directory").to_path_buf() in project_dir()
202 let paths = fs::read_dir(data_dir()).expect("Please update the Git submodule"); in main()
/third_party/musl/libc-test/src/regression/
H A Dinet_ntop-v4mapped.c9 char *expect = "::ffff:192.168.0.1"; in main() local
12 if (inet_pton(AF_INET6, expect, addr) == 1) { in main()
16 t_error("inet_ntop produced %s instead of %s\n", buf, expect); in main()
/third_party/icu/icu4c/source/test/intltest/
H A Dincaltst.cpp470 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local
475 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat()
479 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local
484 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat()
488 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local
493 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat()
497 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local
502 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat()
576 UnicodeString expect = CharsToUnicodeString("\\u5e73\\u621013\\u5e749\\u67088\\u65e5\\u571f\\u66dc\\u65e5"); in TestJapaneseFormat() local
581 simpleTest(loc, expect, expectDat in TestJapaneseFormat()
584 UnicodeString expect = CharsToUnicodeString("\\\\u5e73\\\\u621013\\\\u5e749\\\\u67088\\\\u65e5\\\\u571f\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local
592 UnicodeString expect = CharsToUnicodeString("\\\\u5b89\\\\u6c385\\\\u5e747\\\\u67084\\\\u65e5\\\\u6728\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local
601 UnicodeString expect = CharsToUnicodeString("\\\\u662d\\\\u548c64\\\\u5e741\\\\u67086\\\\u65e5\\\\u91d1\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local
610 UnicodeString expect = CharsToUnicodeString("\\\\u5E73\\\\u6210\\\\u5143\\\\u5E741\\\\u67089\\\\u65E5\\\\u6708\\\\u66DC\\\\u65E5"); TestJapaneseFormat() local
619 UnicodeString expect = CharsToUnicodeString("\\\\u5EB7\\\\u6B632\\\\u5e742\\\\u670829\\\\u65e5\\\\u65e5\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local
1102 simpleTest(const Locale& loc, const UnicodeString& expect, UDate expectDate, UErrorCode& status) simpleTest() argument
[all...]
/third_party/icu/icu4c/source/test/cintltst/
H A Dnccbtst.h50 UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
55 UBool testConvertToUnicode( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
59 UBool testConvertFromUnicodeWithContext(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
63 UBool testConvertToUnicodeWithContext( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
/third_party/rust/crates/bindgen/bindgen/ir/
H A Ditem_kind.rs56 self.as_module().expect("Not a module") in expect_module()
76 self.as_function().expect("Not a function") in expect_function()
105 self.as_type().expect("Not a type") in expect_type()
125 self.as_var().expect("Not a var") in expect_var()
/third_party/rust/crates/nix/test/
H A Dtest_timer.rs40 .expect("unable to set signal handler for alarm") in alarm_fires()
52 Timer::new(clockid, sigevent).expect("failed to create timer"); in alarm_fires()
55 timer.set(expiration, flags).expect("could not set timer"); in alarm_fires()
100 sigaction(SIG, &old_handler).expect("unable to reset signal handler"); in alarm_fires()
H A Dtest_unistd.rs46 match unsafe { fork() }.expect("Error: Fork Failed") { in test_fork_and_waitpid()
75 match unsafe { fork() }.expect("Error: Fork Failed") { in test_wait()
461 fchdir(tmpdir_fd).expect("assertion failed"); in test_fchdir()
464 close(tmpdir_fd).expect("assertion failed"); in test_fchdir()
474 chdir(&tmpdir_path).expect("assertion failed"); in test_getcwd()
486 .expect("assertion failed"); in test_getcwd()
488 chdir(inner_tmp_dir.as_path()).expect("assertion failed"); in test_getcwd()
647 .expect("fpathconf failed") in test_fpathconf_limited()
648 .expect("PATH_MAX is unlimited") in test_fpathconf_limited()
659 .expect("pathcon in test_pathconf_limited()
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/
H A D_parser.py73 name_token = tokenizer.expect(
83 tokenizer.expect("END", expected="end of dependency specifier")
105 url = tokenizer.expect("URL", expected="URL after @").text
109 tokenizer.expect("WS", expected="whitespace after URL")
199 extra_token = tokenizer.expect("IDENTIFIER", expected="extra name after comma")
260 tokenizer.expect("END", expected="end of marker expression")
350 tokenizer.expect("WS", expected="whitespace after 'not'")
351 tokenizer.expect("IN", expected="'in' after 'not'")
/test/xts/acts/security/huks/security_huks_reformed_test/huks_cipher_callback_BasicTest/entry/src/ohosTest/js/test/Cipher/
H A DsecurityHuksExportSupportJsunit.test.js16 import { describe, it, expect, beforeAll } from '@ohos/hypium';
40 expect(null).assertFail();
44 expect(null).assertFail();
59 expect(null).assertFail();
73 expect(null).assertFail();
77 expect(null).assertFail();
92 expect(null).assertFail();
106 expect(null).assertFail();
110 expect(null).assertFail();
125 expect(nul
[all...]
/test/xts/acts/security/huks/security_huks_reformed_test/huks_signverify_promise_BasicTest/entry/src/ohosTest/js/test/SignVerify/
H A DSecurityHuksRSASignExtendJsunit.test.js16 import { describe, it, expect, beforeAll } from "@ohos/hypium";
113 expect(null).assertFail();
117 expect(null).assertFail();
131 expect(null).assertFail();
135 expect(null).assertFail();
145 expect(null).assertFail();
148 expect(err.code == errCode).assertTrue();
152 expect(null).assertFail();
165 expect(null).assertFail();
169 expect(nul
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/
H A Dcpuset_base_ops_testset.sh190 # attach_task_test <cpus> <mems> <expect>
195 local expect=$3
229 if [ $? -eq $expect ]; then
232 tst_resm TFAIL "Attaching Task Test failed!! cpus - \"$cpus\", mems - \"$mems\", Expect - \"$expect\", Fact - \"$ret\". (0 - Attach Success, 1 - Attach Fail)"
248 while read cpus mems expect
250 attach_task_test "$cpus" "$mems" "$expect"
256 # while read cpus mems expect
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/parser/
H A Dparser_test.go27 expect ast.AST
183 gotStr, expectStr := got.String(), test.expect.String()
193 expect string
203 if gotErr := err.Error(); test.expect != gotErr {
204 t.Errorf(`Parse() returned error "%+v", expected error "%+v"`, gotErr, test.expect)
/third_party/rust/crates/rust-openssl/openssl-sys/build/
H A Drun_bindgen.rs144 .expect("Failed to create boring_static_wrapper.h") in run_boringssl()
146 .expect("Failed to write contents to boring_static_wrapper.h"); in run_boringssl()
166 .expect("Failed to create boring_static_wrapper.h") in run_boringssl()
168 .expect("Failed to write contents to boring_static_wrapper.h"); in run_boringssl()
200 let result = bindgen_cmd.status().expect("bindgen failed to execute"); in run_boringssl()
/third_party/rust/crates/nix/test/sys/
H A Dtest_termios.rs24 let pty = openpty(None, None).expect("openpty failed"); in test_tcgetattr_pty()
26 close(pty.master).expect("closing the master failed"); in test_tcgetattr_pty()
27 close(pty.slave).expect("closing the slave failed"); in test_tcgetattr_pty()
54 let pty = openpty(None, None).expect("openpty failed"); in test_output_flags()
57 let termios = tcgetattr(pty.slave).expect("tcgetattr failed"); in test_output_flags()
/third_party/skia/tests/
H A DGrClipStackTest.cpp55 // .expect().rect(r, GrAA::kYes, SkClipOp::kIntersect)
171 ElementsBuilder expect() { return ElementsBuilder(this, &fExpectedElements); } in expect() function in __anon19011::TestCaseBuilder
526 .expect().aa().intersect().rect(fracIntersect).finishElements() in DEF_TEST()
535 .expect().nonAA().intersect().rect(fracIntersect).finishElements() in DEF_TEST()
544 .expect().nonAA().intersect().rect(alignedIntersect).finishElements() in DEF_TEST()
553 .expect().aa().intersect().rect(alignedIntersect).finishElements() in DEF_TEST()
606 .expect().aa().intersect().localToDevice(lm) in DEF_TEST()
616 .expect().nonAA().intersect().localToDevice(lm) in DEF_TEST()
647 .expect().aa().intersect().rrect(intersect).finishElements() in DEF_TEST()
656 .expect() in DEF_TEST()
[all...]
/test/xts/dcts/distributeddatamgr/jstest/distributed_kv_store/client/hap/src/main/js/test/
H A DKvStoreSecurityLevelS1Jsunit.test.js16 import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
236 expect(result).assertEqual(TEST_STRING_VALUE);
295 expect(result).assertEqual(TEST_STRING_VALUE);
353 expect(result == undefined).assertTrue();
411 expect(result == undefined).assertTrue();
469 expect(result == undefined).assertTrue();
526 expect(result == undefined).assertTrue();
584 expect(result == undefined).assertTrue();
642 expect(result == undefined).assertTrue();
700 expect(resul
[all...]
/third_party/rust/crates/libloading/tests/
H A Dwindows.rs19 Library::new("tests/nagisa32.dll").expect("nagisa32.dll") in load_ordinal_lib()
26 Library::new("tests/nagisa64.dll").expect("nagisa64.dll") in load_ordinal_lib()
35 let windows: Symbol<unsafe fn() -> *const i8> = lib.get_ordinal(1).expect("function"); in test_ordinal()
/test/xts/acts/security/huks/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/ohosTest/js/test/Cipher/
H A DSecurityHuksSM4BasicCallbackJsunit.test.js16 import { describe, it, expect, beforeAll } from '@ohos/hypium';
49 expect(data.errorCode == 0).assertTrue();
53 expect(null).assertFail();
76 expect(data.errorCode == 0).assertTrue();
80 expect(null).assertFail();
119 expect(data.errorCode === 0).assertTrue();
123 expect(null).assertFail();
129 expect(null).assertFail();
142 expect(data.errorCode === 0).assertTrue();
148 expect(arrayEqua
[all...]

Completed in 12 milliseconds

1...<<11121314151617181920>>...31