Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 1077) sorted by relevance

12345678910>>...44

/openbsd-src/regress/usr.bin/ssh/unittests/authopt/
H A Dtests.c86 const struct sshauthopt *expected) in compare_opts() argument
91 ASSERT_PTR_NE(expected, NULL); in compare_opts()
92 ASSERT_PTR_NE(expected, opts); /* bozo :) */ in compare_opts()
94 #define FLAG_EQ(x) ASSERT_INT_EQ(opts->x, expected->x) in compare_opts()
106 if (expected->x == NULL) \ in compare_opts()
107 ASSERT_PTR_EQ(opts->x, expected->x); \ in compare_opts()
109 ASSERT_STRING_EQ(opts->x, expected->x); \ in compare_opts()
119 ASSERT_SIZE_T_EQ(opts->nx, expected->nx); \ in compare_opts()
120 if (expected->nx == 0) \ in compare_opts()
122 for (i = 0; i < expected->nx; i++) \ in compare_opts()
[all …]
/openbsd-src/lib/libfido2/src/
H A Dtpm.c228 tpm_rs256_pubarea_t expected; in check_rs256_pubarea() local
237 memset(&expected, 0, sizeof(expected)); in check_rs256_pubarea()
238 expected.alg = TPM_ALG_RSA; in check_rs256_pubarea()
239 expected.hash = TPM_ALG_SHA256; in check_rs256_pubarea()
240 expected.attr = be32toh(actual->attr); in check_rs256_pubarea()
241 expected.attr &= ~(TPMA_RESERVED|TPMA_CLEAR); in check_rs256_pubarea()
242 expected.attr |= (TPMA_FIXED|TPMA_FIXED_P|TPMA_SENSITIVE|TPMA_SIGN); in check_rs256_pubarea()
243 expected.policy = actual->policy; in check_rs256_pubarea()
244 expected.policy.size = sizeof(expected.policy.body); in check_rs256_pubarea()
245 expected.param.symmetric = TPM_ALG_NULL; in check_rs256_pubarea()
[all …]
/openbsd-src/gnu/usr.bin/perl/t/uni/
H A Dbless.t13 sub expected {
32 expected($a1, "ዐ", "HASH");
34 expected($b1, "B", "ARRAY");
36 expected($c1, "ᶜ", "SCALAR");
38 expected($d1, "ɖ", "GLOB");
40 expected($e1, "ಎ", "CODE");
42 expected($f1, "ḟ", "REF");
44 expected($g1, "ㄍ", "LVALUE");
48 expected(bless(\$a1, "ḟ"), "ḟ", "REF");
49 expected($a1, "ዐ", "HASH");
[all …]
/openbsd-src/gnu/usr.bin/perl/dist/base/t/
H A Dincdot.t8 my ( $got, $expected ) = @_;
9 push @$got, ( '(missing)' ) x ( @$expected - @$got ) if @$got < @$expected;
10 push @$expected, ( '(should not exist)' ) x ( @$got - @$expected ) if @$got > @$expected;
12 map +( "got [$_] " . $got->[$_], 'expected'.(' ' x length).$expected->[$_] ),
13 grep $got->[$_] ne $expected->[$_],
34 my @expected; BEGIN { @expected = @INC }
42 is_deeply \@INC, \@expected, '... without changes to @INC'
43 or diag array_diff [@INC], [@expected];
52 @expected = ( 't/lib/on-head', @expected, 't/lib/on-tail' );
53 is_deeply \@INC, \@expected, 'modules loaded by base can extend @INC at both ends'
[all …]
/openbsd-src/gnu/usr.bin/perl/t/io/
H A Dparagraph_mode.t11 my ($OUT, $filename, @chunks, @expected, $msg);
37 @expected = (
44 perform_tests($filename, \@expected, $msg);
62 @expected = (
69 perform_tests($filename, \@expected, $msg);
88 @expected = (
95 perform_tests($filename, \@expected, $msg);
114 @expected = (
121 perform_tests($filename, \@expected, $msg);
149 @expected = (
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/
H A Dmetafile_file.t20 my $expected = <<YAML;
26 is($mm->metafile_file(@meta), $expected, "dump for flat hashes works ok");
31 my $expected = <<YAML;
38 is($mm->metafile_file(@meta), $expected, "dumping strings and undefs is ok");
43 my $expected = <<YAML;
51 is($mm->metafile_file(@meta), $expected, "dump for nested hashes works ok");
56 my $expected = <<YAML;
65 is($mm->metafile_file(@meta), $expected, "nested hashes sort ascii-betically");
72 my $expected = <<YAML;
81 is($mm->metafile_file(@meta), $expected, "dump for hashes (with more nesting) works ok");
[all …]
/openbsd-src/gnu/usr.bin/perl/t/op/
H A Dbless.t12 sub expected {
31 expected($a1, "A", "HASH");
33 expected($b1, "B", "ARRAY");
35 expected($c1, "C", "SCALAR");
37 expected($d1, "D", "GLOB");
39 expected($e1, "E", "CODE");
41 expected($f1, "F", "REF");
43 expected($g1, "G", "LVALUE");
47 expected(bless(\$a1, "F"), "F", "REF");
48 expected($a1, "A", "HASH");
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/t/
H A Dfile.t69 my @expected = (
81 is_deeply \@output, \@expected, '... the output should be correct';
98 @expected = (
110 is_deeply \@output, \@expected, '... the output should be correct';
129 @expected = (
145 is_deeply \@output, \@expected, '... the output should be correct';
158 @expected = (
169 is_deeply \@output, \@expected, '... the output should be correct';
181 @expected = (
190 is_deeply \@output, \@expected, '
[all...]
H A Dgrammar.t88 my $expected = {
96 is_deeply $plan_token, $expected,
103 is_deeply $token, $expected,
115 $expected = {
123 is_deeply $plan_token, $expected,
129 is_deeply $token, $expected,
142 $expected = {
150 is_deeply $plan_token, $expected,
156 is_deeply $token, $expected,
174 $expected = {
[all …]
/openbsd-src/gnu/usr.bin/perl/t/comp/
H A Duproto.t7 my ($got, $expected, $name) = @_;
17 print "# Expected $expected\n";
76 sub g(_) { is(shift, $expected) }
78 $expected = "foo";
80 g($expected);
81 $_ = $expected;
84 undef $expected; &g; # $_ not passed
102 sub mymkdir (_;$) { is("@_", $expected, "mymkdir") }
103 $expected = $_ = "mydir"; mymkdir();
104 mymkdir($expected = "foo");
[all …]
/openbsd-src/regress/usr.bin/ssh/unittests/hostkeys/
H A Dtest_iterate.c20 struct expected { struct
33 const struct expected *expected; argument
51 const struct expected *expected; in check() local
62 expected = ctx->expected + ctx->i++; in check()
66 if (ctx->match_host_p && expected->match_host_p) in check()
68 if (ctx->match_host_s && expected->match_host_s) in check()
70 if (ctx->match_ipv4 && expected->match_ipv4) in check()
72 if (ctx->match_ipv6 && expected->match_ipv6) in check()
75 expected_status = (parse_key || expected->no_parse_status < 0) ? in check()
76 expected->l.status : (u_int)expected->no_parse_status; in check()
[all …]
/openbsd-src/gnu/llvm/libcxx/include/__expected/
H A Dexpected.h78 class expected {
94 friend class expected; variable
102 using rebind = expected<_Up, error_type>;
105 _LIBCPP_HIDE_FROM_ABI constexpr expected() in expected() function
112 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected&) = delete;
114 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected&)
121 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected& __other) in expected() function
134 _LIBCPP_HIDE_FROM_ABI constexpr expected(expected&&)
139 _LIBCPP_HIDE_FROM_ABI constexpr expected(expected&& __other) in expected() function
156 _Not<is_constructible<_Tp, expected<_Up, _OtherErr>&>>,
[all …]
/openbsd-src/gnu/usr.bin/perl/dist/ExtUtils-ParseXS/t/
H A D104-map_type.t11 my ($result, $expected);
18 $expected = "$type\t$varname";
20 is( $result, $expected,
26 $expected = 'Crypt__Shark';
28 is( $result, $expected,
34 $expected = 'Crypt::Shark';
36 is( $result, $expected,
42 $expected = "Crypt__TC18\t$varname";
44 is( $result, $expected,
50 $expected = "Crypt::TC18\t$varname";
[all …]
H A D110-assign_func_args.t14 my ($func_args, $expected);
18 $expected = q|&alpha, beta, gamma|;
20 is( $func_args, $expected,
26 $expected = q|&beta, gamma|;
28 is( $func_args, $expected,
34 $expected = q|beta, gamma|;
36 is( $func_args, $expected,
42 $expected = q|alpha, beta, gamma|;
44 is( $func_args, $expected,
/openbsd-src/regress/bin/ksh/
H A Dstrsub.t17 expected-fail: yes
18 expected-stdout:
39 expected-fail: yes
40 expected-stdout:
54 expected-fail: yes
55 expected-stdout:
69 expected-fail: yes
70 expected-stdout:
84 expected-fail: yes
85 expected-stdout:
[all …]
H A Darith.t12 expected-stdout:
31 expected-stdout:
44 expected-exit: e != 0
45 expected-stderr-pattern:
55 expected-stdout:
64 expected-stdout:
75 expected-stdout:
86 expected-stdout:
97 expected-exit: e != 0
98 expected-stderr-pattern:
[all …]
H A Dunclass2.t9 expected-stdout:
20 expected-stderr:
22 expected-stdout:
33 expected-stdout:
35 expected-stderr-pattern: /.*/
69 expected-stdout:
86 expected-stdout:
89 expected-stderr-pattern: /.*/
110 expected-stdout:
123 expected-stdout:
[all …]
H A Dtrap.t16 expected-stdout:
18 expected-stderr-pattern:
20 expected-exit: e != 0
30 expected-stdout:
32 expected-stderr-pattern:
34 expected-exit: e != 0
44 expected-stdout:
46 expected-stderr-pattern:
48 expected-exit: e != 0
61 #expected-fail: yes
[all …]
H A Dhistory.t17 expected-stdout:
20 expected-stderr-pattern:
35 expected-stdout:
39 expected-stderr-pattern:
56 expected-stdout-pattern:
58 expected-stderr-pattern:
74 expected-stdout:
76 expected-stderr-pattern:
91 expected-stdout:
95 expected-stderr-pattern:
[all …]
/openbsd-src/gnu/usr.bin/perl/dist/Test/lib/
H A DTest.pm406 my ($expected, $isregex, $regex);
411 $expected = _to_value(shift);
412 if (!defined $expected) {
416 } elsif (ref($expected) eq 'Regexp') {
417 $ok = $result =~ /$expected/;
418 $regex = $expected;
419 } elsif (($regex) = ($expected =~ m,^ / (.+) / $,sx) or
420 (undef, $regex) = ($expected =~ m,^ m([^\w\s]) (.+) \1 $,sx)) {
423 $ok = $result eq $expected;
439 $ok or _complain($result, $expected,
[all …]
/openbsd-src/gnu/usr.bin/perl/dist/Devel-PPPort/t/
H A Dtestutil.pl264 my ($got, $expected, $name, @mess) = @_;
267 if( !defined $got || !defined $expected ) {
269 $pass = !defined $got && !defined $expected;
272 $pass = $got eq $expected;
277 "# expected "._qq($expected)."\n");
302 my($got, $type, $expected, $name, @mess) = @_;
319 if ($got eq $expected and $type !~ tr/a-z//) {
320 unshift @mess, "# $got - $expected = " . ($got - $expected) . "\n";
323 "# expected $type "._qq($expected)."\n");
335 my ($got, $expected, $range, $name, @mess) = @_;
[all …]
/openbsd-src/regress/usr.bin/sed/
H A DMakefile16 diff ${.CURDIR}/$@.expected $@.out
23 diff ${.CURDIR}/$@.expected $@.out
27 diff ${.CURDIR}/$@.expected $@.out
31 diff ${.CURDIR}/$@.expected $@.out
35 diff ${.CURDIR}/$@.expected $@.out
40 diff ${.CURDIR}/sierpinski.expected $@.txt
45 diff ${.CURDIR}/$@.expected $@.txt
50 diff ${.CURDIR}/$@.expected $@.txt
54 diff ${.CURDIR}/$@.expected $@.out
58 diff ${.CURDIR}/$@.expected
[all...]
/openbsd-src/regress/lib/libc/locale/setlocale/
H A Dsetlocale.c34 _test_setlocale(char *expected, int category, char *locale, int line) in _test_setlocale() argument
38 if ((expected == NULL) || (result == NULL)) { in _test_setlocale()
39 if (expected == result) in _test_setlocale()
43 line, category, locale, result, expected); in _test_setlocale()
46 if (strcmp(expected, result) != 0) in _test_setlocale()
48 line, category, locale, result, expected); in _test_setlocale()
52 _test_MB_CUR_MAX(size_t expected, int line) in _test_MB_CUR_MAX() argument
54 if (MB_CUR_MAX != expected) in _test_MB_CUR_MAX()
56 line, MB_CUR_MAX, expected); in _test_MB_CUR_MAX()
60 _test_isalpha(int expected, int c, int line) in _test_isalpha() argument
[all …]
/openbsd-src/gnu/llvm/libcxx/include/
H A Dexpected14 Header <expected> synopsis
17 // [expected.unexpected], class template unexpected
20 // [expected.bad], class template bad_expected_access
23 // [expected.bad.void], specialization for void
32 // [expected.expected], class template expected
33 template<class T, class E> class expected;
35 // [expected.void], partial specialization of expected for void types
36 template<class T, class E> requires is_void_v<T> class expected<T, E>;
44 #include <__expected/expected.h>
/openbsd-src/gnu/usr.bin/perl/lib/
H A Ddbm_filter_util.pl29 my $expected = shift ;
30 my %expected = %$expected;
35 ok ref $expected eq 'HASH', "Expected data is a hash reference";
41 if ($expected{$k} eq $v) {
43 delete $expected{$k} ;
51 if( ! ok(keys(%bad) + keys(%expected) == 0, "Expected == Actual") ) {
53 if (keys %expected ) {
55 while (my ($k, $v) = each %expected) {

12345678910>>...44