Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 1579) sorted by relevance

12345678910>>...64

/external/perfetto/ui/src/base/
Dbinary_search_unittest.ts18 expect(search(Float64Array.of(), 100)).toEqual(-1);
19 expect(search(Float64Array.of(42), 42)).toEqual(0);
20 expect(search(Float64Array.of(42), 43)).toEqual(0);
21 expect(search(Float64Array.of(42), 41)).toEqual(-1);
22 expect(search(Float64Array.of(42, 43), 42)).toEqual(0);
23 expect(search(Float64Array.of(42, 43), 43)).toEqual(1);
24 expect(search(Float64Array.of(42, 43), 44)).toEqual(1);
25 expect(search(Float64Array.of(42, 43, 44), 41)).toEqual(-1);
26 expect(search(Float64Array.of(42, 43, 44), 42)).toEqual(0);
27 expect(search(Float64Array.of(42, 43, 44), 43)).toEqual(1);
[all …]
/external/python/cpython2/Lib/test/
Dtest_textwrap.py31 def check(self, result, expect): argument
32 self.assertEqual(result, expect,
34 self.show(expect), self.show(result)))
36 def check_wrap(self, text, width, expect, **kwargs): argument
38 self.check(result, expect)
40 def check_split(self, text, expect): argument
42 self.assertEqual(result, expect,
44 "but got %r" % (expect, result))
90 expect = ["This is a paragraph that already has line",
98 self.check(result, expect)
[all …]
/external/python/cpython3/Lib/test/
Dtest_textwrap.py30 def check(self, result, expect): argument
31 self.assertEqual(result, expect,
33 self.show(expect), self.show(result)))
35 def check_wrap(self, text, width, expect, **kwargs): argument
37 self.check(result, expect)
39 def check_split(self, text, expect): argument
41 self.assertEqual(result, expect,
43 "but got %r" % (expect, result))
89 expect = ["This is a paragraph that already has line",
97 self.check(result, expect)
[all …]
Dtest_urllib.py798 expect = urllib.parse.quote("a\xfcb", encoding="latin-1", safe="")
799 self.assertEqual(expect, result,
801 (expect, result))
804 expect = urllib.parse.quote("a\xfcb", encoding="latin-1", safe="")
805 self.assertEqual(expect, result,
807 (expect, result))
847 expect = given.replace(' ', hexescape(' '))
849 self.assertEqual(expect, result,
850 "using quote(): %r != %r" % (expect, result))
851 expect = given.replace(' ', '+')
[all …]
/external/grpc-grpc/src/ruby/spec/
Dclient_server_spec.rb29 expect(recvd_rpc).to_not eq nil
33 expect(server_batch.send_metadata).to be true
52 expect(@ch.target).to be_a(String)
58 expect(new_client_call.peer).to be_a(String)
64 expect(call.peer).to be_a(String)
81 expect(client_batch.send_metadata).to be true
82 expect(client_batch.send_message).to be true
83 expect(client_batch.send_close).to be true
93 expect(server_batch.message).to eq(sent_message)
94 expect(server_batch.send_close).to be true
[all …]
Dcompression_options_spec.rb28 expect { GRPC::Core::CompressionOptions.new.to_s }.to_not raise_error
33 expect(options.to_channel_arg_hash).to eq(options.to_hash)
44 expect(options.algorithm_enabled?(algorithm)).to be true
47 expect(options.disabled_algorithms).to be_empty
48 expect(options.default_algorithm).to be nil
49 expect(options.default_level).to be nil
50 expect(options.to_hash).to be_instance_of(Hash)
61 expect(options.algorithm_enabled?(algorithm)).to be false
62 expect(options.disabled_algorithms.include?(algorithm)).to be true
65 expect(options.default_algorithm).to be(:identity)
[all …]
Dserver_spec.rb34 expect(&blk).to_not raise_error
41 expect { s.start }.to raise_error(RuntimeError)
52 expect(&blk).to_not raise_error
62 expect(&blk).to_not raise_error
64 expect(&blk).to_not raise_error
80 expect(&blk).to_not raise_error
93 expect(&blk).to_not raise_error
95 expect(&blk).to_not raise_error
108 expect(&blk).to_not raise_error
118 expect(&blk).to raise_error(RuntimeError)
[all …]
Dchannel_spec.rb58 expect(&blk).not_to raise_error
63 expect(&blk).to raise_error TypeError
65 expect(&blk).to raise_error TypeError
70 expect(&blk).to raise_error TypeError
72 expect(&blk).to raise_error TypeError
77 expect(&blk).to_not raise_error
82 expect(&blk).to_not raise_error
87 expect(&blk).to_not raise_error
92 expect(&blk).to_not raise_error
97 expect(&blk).to_not raise_error
[all …]
/external/perfetto/ui/src/controller/
Dcontroller_unittest.ts59 expect(_run).toHaveBeenCalledTimes(1);
60 expect(_run).toHaveBeenCalledWith('root');
73 expect(_run).toHaveBeenCalledTimes(3);
74 expect(_run).toHaveBeenCalledWith('root');
105 expect(_run).toHaveBeenCalledWith('root');
106 expect(_run).toHaveBeenCalledTimes(1);
114 expect(_onCreate).toHaveBeenCalledWith('child1');
115 expect(_onCreate).toHaveBeenCalledTimes(1);
116 expect(_run).toHaveBeenCalledWith('root');
117 expect(_run).toHaveBeenCalledWith('child1');
[all …]
/external/grpc-grpc/src/ruby/spec/generic/
Drpc_desc_spec.rb41 expect(@call).to receive(:read_unary_request).once.and_return(Object.new)
42 expect(@call).to receive(:send_status).once.with(@bs_code, 'NOK', false,
48 expect(@call).to receive(:read_unary_request).once.and_return(Object.new)
49 expect(@call).to receive(:send_status).once.with(UNKNOWN,
56 expect(@call).to receive(:read_unary_request).once.and_return(Object.new)
57 expect(@call).to receive(:send_status).once.with(
63 expect(@call).to receive(:read_unary_request).once.and_raise(CallError)
67 expect(&blk).to_not raise_error
85 expect(@call).to receive(:read_unary_request).once.and_return(req)
86 expect(@call).to receive(:output_metadata).once.and_return(fake_md)
[all …]
Dservice_spec.rb47 expect(&blk).to_not raise_error
54 expect(GenericService.underscore('AnRPC')).to eq('an_rpc')
55 expect(GenericService.underscore('AMethod')).to eq('a_method')
56 expect(GenericService.underscore('PrintHTML')).to eq('print_html')
57 expect(GenericService.underscore('SeeHTMLBooks')).to eq('see_html_books')
66 expect(c.methods).to include(:rpc)
75 expect(c.rpc_descs).to include(:AnRpc)
76 expect(c.rpc_descs[:AnRpc]).to be_a(GRPC::RpcDesc)
86 expect(c.rpc_descs).to include(:AnRpc)
87 expect(c.rpc_descs[:AnRpc]).to be_a(GRPC::RpcDesc)
[all …]
Dactive_call_spec.rb70 expect(v.methods.include?(w))
82 expect(v.methods.include?(w))
92 expect(v.methods.include?(w))
109 expect(recvd_rpc).to_not eq nil
117 expect(server_call.remote_read).to eq(msg)
142 expect(server_call.remote_read).to eq('marshalled:' + msg)
172 expect(server_call.remote_read).to eq('marshalled:' + msg)
191 expect(@client_call.metadata_sent).to eq(false)
196 expect(call).to(
202 expect(call).to(
[all …]
Dserver_interceptors_spec.rb36 expect(interceptor).to receive(:request_response)
41 expect(stub.an_rpc(request)).to be_a(EchoMsg)
46 expect(interceptor).to receive(:request_response)
57 expect(op.trailing_metadata).to eq(
61 expect(msg).to be_a(EchoMsg)
71 expect(interceptor).to receive(:client_streamer)
76 expect(stub.a_client_streaming_rpc(requests)).to be_a(EchoMsg)
81 expect(interceptor).to receive(:client_streamer)
92 expect(op.trailing_metadata).to eq(
96 expect(msg).to be_a(EchoMsg)
[all …]
/external/perfetto/ui/src/frontend/
Dtime_scale_unittest.ts22 expect(scale.timeToPx(0)).toEqual(200);
23 expect(scale.timeToPx(100)).toEqual(1000);
24 expect(scale.timeToPx(50)).toEqual(600);
26 expect(scale.pxToTime(200)).toEqual(0);
27 expect(scale.pxToTime(1000)).toEqual(100);
28 expect(scale.pxToTime(600)).toEqual(50);
30 expect(scale.deltaPxToDuration(400)).toEqual(50);
32 expect(scale.timeInBounds(50)).toEqual(true);
33 expect(scale.timeInBounds(0)).toEqual(true);
34 expect(scale.timeInBounds(100)).toEqual(true);
[all …]
Dgridline_helper_unittest.ts18 expect(getGridStepSize(10, 14)).toEqual(1);
19 expect(getGridStepSize(30, 14)).toEqual(2);
20 expect(getGridStepSize(60, 14)).toEqual(5);
21 expect(getGridStepSize(100, 14)).toEqual(10);
23 expect(getGridStepSize(10, 21)).toEqual(0.5);
24 expect(getGridStepSize(30, 21)).toEqual(2);
25 expect(getGridStepSize(60, 21)).toEqual(2);
26 expect(getGridStepSize(100, 21)).toEqual(5);
28 expect(getGridStepSize(10, 3)).toEqual(5);
29 expect(getGridStepSize(30, 3)).toEqual(10);
[all …]
/external/curl/tests/
Dobjnames-test10.sh85 expect=16AFKPQRST
87 echo "result: $outstr expected: $expect input: $argstr"
90 expect=16AFKPQ
92 echo "result: $outstr expected: $expect input: $argstr"
95 expect=16ABC
97 echo "result: $outstr expected: $expect input: $argstr"
100 expect=16
102 echo "result: $outstr expected: $expect input: $argstr"
105 expect=123
107 echo "result: $outstr expected: $expect input: $argstr"
[all …]
Dobjnames-test08.sh85 expect=16AFKPQR
87 echo "result: $outstr expected: $expect input: $argstr"
90 expect=16AFKPQ
92 echo "result: $outstr expected: $expect input: $argstr"
95 expect=16ABC
97 echo "result: $outstr expected: $expect input: $argstr"
100 expect=16
102 echo "result: $outstr expected: $expect input: $argstr"
105 expect=123
107 echo "result: $outstr expected: $expect input: $argstr"
[all …]
/external/autotest/server/site_tests/network_WiFi_RegDomain/
Dcontrol33 # When adding a negative rule ('expect': 'no-connect'), be sure to add
34 # a case with a positive rule ('expect': 'connect', or 'expect':
52 {'chnum': 13, 'expect': 'passive-scan'},
53 {'chnum': 36, 'expect': 'passive-scan'},
54 {'chnum': 149, 'expect': 'passive-scan'}]},
62 {'chnum': 13, 'expect': 'passive-scan'},
63 {'chnum': 36, 'expect': 'passive-scan'},
64 {'chnum': 149, 'expect': 'passive-scan'}]},
68 {'chnum': 13, 'expect': 'passive-scan'},
69 {'chnum': 36, 'expect': 'no-connect'},
[all …]
/external/deqp/data/gles2/shaders/
Dkeywords.test7 expect compile_fail
24 expect compile_fail
41 expect compile_fail
58 expect compile_fail
75 expect compile_fail
92 expect compile_fail
109 expect compile_fail
126 expect compile_fail
143 expect compile_fail
160 expect compile_fail
[all …]
/external/bcc/src/lua/bpf/spec/
Dcodegen_spec.lua25 if t.expect then
28 assert.same(normalize_code(t.expect), got)
59 expect = [[
70 expect = [[
81 expect = [[
92 expect = [[
103 expect = [[
114 expect = [[
126 expect = [[
137 expect = [[
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/tools/opt/
Dflags.py16 import expect
37 class TestAssemblyFileAsOnlyParameter(expect.ValidObjectFile1_3):
47 class TestHelpFlag(expect.ReturnCodeIsZero, expect.StdoutMatch):
55 class TestValidPassFlags(expect.ValidObjectFile1_3,
56 expect.ExecutedListOfPasses):
132 class TestPerformanceOptimizationPasses(expect.ValidObjectFile1_3,
133 expect.ExecutedListOfPasses):
179 class TestSizeOptimizationPasses(expect.ValidObjectFile1_3,
180 expect.ExecutedListOfPasses):
218 class TestLegalizationPasses(expect.ValidObjectFile1_3,
[all …]
/external/deqp-deps/SPIRV-Tools/test/tools/opt/
Dflags.py16 import expect
37 class TestAssemblyFileAsOnlyParameter(expect.ValidObjectFile1_3):
47 class TestHelpFlag(expect.ReturnCodeIsZero, expect.StdoutMatch):
55 class TestValidPassFlags(expect.ValidObjectFile1_3,
56 expect.ExecutedListOfPasses):
132 class TestPerformanceOptimizationPasses(expect.ValidObjectFile1_3,
133 expect.ExecutedListOfPasses):
179 class TestSizeOptimizationPasses(expect.ValidObjectFile1_3,
180 expect.ExecutedListOfPasses):
218 class TestLegalizationPasses(expect.ValidObjectFile1_3,
[all …]
/external/deqp/data/gles3/shaders/
Dkeywords.test7 expect compile_fail
25 expect compile_fail
43 expect compile_fail
61 expect compile_fail
79 expect compile_fail
97 expect compile_fail
115 expect compile_fail
133 expect compile_fail
151 expect compile_fail
169 expect compile_fail
[all …]
/external/skqp/modules/pathkit/tests/
Dpath.spec.js35 expect(path.equals(path)).toBe(true);
36 expect(otherPath.equals(path)).toBe(true);
37 expect(path.equals(otherPath)).toBe(true);
39 expect(path.equals(blank)).toBe(false);
40 expect(otherPath.equals(blank)).toBe(false);
41 expect(blank.equals(path)).toBe(false);
42 expect(blank.equals(otherPath)).toBe(false);
56 expect(orig.toSVGString()).toEqual(copy.toSVGString());
57 expect(orig.equals(copy)).toBe(true);
70 expect(orig.toSVGString()).toEqual(copy.toSVGString());
[all …]
/external/skia/modules/pathkit/tests/
Dpath.spec.js35 expect(path.equals(path)).toBe(true);
36 expect(otherPath.equals(path)).toBe(true);
37 expect(path.equals(otherPath)).toBe(true);
39 expect(path.equals(blank)).toBe(false);
40 expect(otherPath.equals(blank)).toBe(false);
41 expect(blank.equals(path)).toBe(false);
42 expect(blank.equals(otherPath)).toBe(false);
56 expect(orig.toSVGString()).toEqual(copy.toSVGString());
57 expect(orig.equals(copy)).toBe(true);
70 expect(orig.toSVGString()).toEqual(copy.toSVGString());
[all …]

12345678910>>...64