Home
last modified time | relevance | path

Searched refs:should (Results 1 – 25 of 3090) sorted by relevance

12345678910>>...124

/external/antlr/antlr-3.4/runtime/Ruby/test/functional/lexer/
Dbasic.rb21 token.name.should == 'ZERO'
24 token.name.should == '<EOF>'
31 token_types.should == %w(ZERO)
39 }.should raise_error( ANTLR3::Error::MismatchedToken ) do |e|
40 e.expecting.should == '0'
41 e.unexpected_type.should == '1'
63 token.name.should == 'ZERO'
66 token.name.should == 'ONE'
69 token.name.should == '<EOF>'
76 b.should raise_error( ANTLR3::Error::NoViableAlternative ) do |exc|
[all …]
Dproperties.rb34 lexer.properties.should have( 3 ).things
36 text.should == 'foobar'
37 type.should == RuleProperty::TokenData::IDENTIFIER
38 line.should == 1
39 pos.should == 0
40 index.should == -1
41 channel.should == ANTLR3::DEFAULT_CHANNEL
42 start.should == 0
43 stop.should == 5
46 text.should == '_ab98'
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/
Dtest-streams.rb17 @stream.size.should == 8
21 @stream.index.should == 0
26 @stream.index.should == 1
27 @stream.column.should == 1
28 @stream.line.should == 1
31 @stream.index.should == 2
32 @stream.column.should == 2
33 @stream.line.should == 1
36 @stream.index.should == 3
37 @stream.column.should == 0
[all …]
Dtest-template.rb18 context.instance_variables.should be_empty
27 vars.should include( '@a' )
28 vars.should include( '@b' )
30 context.instance_variable_get( '@a' ).should == 1
31 context.instance_variable_get( '@b' ).should == 2
39 context[ :a ].should == 1
40 context[ 'a' ].should == 1
41 context[ :b ].should == 2
42 context[ 'b' ].should == 2
50 context.instance_variable_get( '@a' ).should == 1
[all …]
Dtest-scheme.rb26 @ts::A.should == 4
27 @ts::B.should == 5
28 @ts::T__6.should == 6
29 @ts::EOF.should == -1
33 @ts::TOKEN_NAMES.should == {
38 @ts.token_name(5).should == 'B'
39 @ts.token_name(6).should == "'+'"
40 @ts.token_name(-1).should == '<EOF>'
41 @ts.token_name(7).should == '<UNKNOWN: 7>'
48 @a_class::A.should == 4
[all …]
Dtest-trees.rb27 found.should == expecting
32 found.should == expecting
53 root_0.child_index.should == -1
54 t.child_index.should == 0
55 u.child_index.should == 1
69 found.should == expecting
73 found.should == expecting
92 found.should == expecting
96 found.should == expecting
110 found.should == expecting
[all …]
Dtest-scope.rb16 @A.members.map( &:to_s ).should == %w( a b )
17 @B.members.map( &:to_s ).should == %w( count )
18 @C.members.map( &:to_s ).should == %w( a b c )
22 @A.new.to_a.should == [ nil, nil ]
23 @B.new.to_a.should == [ 3 ]
24 @C.new.to_a.should == [ nil, 0, {} ]
29 c.a.should == Object
30 c.b.should == 0
31 c.c.should == {}
36 b.count.should == 7000
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
Drewrites.rb22 parser.reported_errors.should be_empty unless expect_errors
68 result.should == ''
82 result.should == 'abc'
96 result.should == 'x'
110 result.should == '(x INT)'
123 result.should == 'ID'
137 result.should == 'c'
151 result.should == 'ick'
166 result.should == 'abc'
180 result.should == '34 abc'
[all …]
Dauto-ast.rb22 parser.reported_errors.should be_empty unless expect_errors
69 result.should == 'abc 34'
81 result.should == 'abc 34'
93 result.should == '(abc 34)'
105 result.should == '(abc 34)'
118 result.should == 'abc 4532'
130 result.should == '(b a 1)'
142 result.should == '(void foo ;)'
154 result.should == '(void foo ;)'
166 result.should == '(foo void ;)'
[all …]
Dhetero-nodes.rb622 result.should == 'a<V>'
628 result.should == 'a<V>'
634 result.should == 'a<V>'
640 result.should == 'a<V>'
646 result.should == 'a<V>'
652 result.should == 'a<V>'
658 result.should == 'begin<V>'
664 result.should == 'begin<V>'
670 result.should == 'a<V>'
676 result.should == '<V>;421930 a<V>;9900'
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/debugging/
Dprofile-mode.rb132 profile_data.rule_invocations.should == 60
133 profile_data.guessing_rule_invocations.should == 0
134 profile_data.rule_invocation_depth.should == 12
136 profile_data.fixed_decisions.should == 40
138 fixed_data.min.should == 1
139 fixed_data.max.should == 2
140 fixed_data.average.should == 1.075
141 fixed_data.standard_deviation.should == 0.26674678283691855
143 profile_data.cyclic_decisions.should == 4
145 cyclic_data.min.should == 3
[all …]
Ddebug-mode.rb38 @socket.readline.strip.should == 'ANTLR 2'
39 @socket.readline.strip.start_with?( 'grammar "' ).should == true
110 found.should == expected
122 debugger.success.should be_true
140 debugger.events.should == expected
152 debugger.success.should be_true
177 debugger.events.should == expected
190 debugger.success.should be_true
210 debugger.events.should == expected
224 debugger.success.should be_true
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/delegation/
Dimport.rb43 parser.output.should == 'S.a'
74 parser.output.should == 'S.a1000'
108 parser.output.should == 'whatevs'
151 parser.output.should == 'S.a'
199 parser.output.should == 'S.x T.y'
227 parser.output.should == 'S.a'
257 lexer.output.should == 'S.A abc'
282 lexer.output.should == 'M.A a'
312 parser.output.should == '(bc)(cb)'
350 MasterOfAll::Lexer.master_grammars.should == []
[all …]
/external/e2fsprogs/tests/f_expand/
Dexpect.1.gz ... reference counts 14Inode 2 ref count is 4, should be 3. Fix? yes 15 16Inode 12
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
Dproperties.rb45 start.index.should == 1
46 stop.index.should == 7
47 text.should == 'a a a a'
91 ids.should have( 6 ).things
92 ids[ 0 ].text.should == 'a'
93 ids[ 1 ].text.should == 'b'
94 ids[ 2 ].text.should == 'c'
95 ids[ 3 ].text.should == '1'
96 ids[ 4 ].text.should == '2'
97 ids[ 5 ].text.should == 'A'
[all …]
Dactions.rb43 parser.declaration.should == 'foo'
95 parser.output.should == <<-END.fixed_indent( 0 )
101 lexer.output.should == <<-END.fixed_indent( 0 )
143 parser.prog.should == %w(catch finally)
221 parser.nums.should == [ 10, 20, 30, 40, 50 ]
225 $all_header_files.should include "SpecialActionScopesLexer.rb"
226 $all_header_files.should include "SpecialActionScopesParser.rb"
227 $all_footer_files.should include "SpecialActionScopesLexer.rb"
228 $all_footer_files.should include "SpecialActionScopesParser.rb"
230 $header_location.should be < $module_head_location
[all …]
Dbasic.rb44 parser.reported_errors.should be_empty
45 parser.identifiers.should == %w(blah_de_blah)
55 parser.reported_errors.should have( 1 ).thing
68 parser.reported_errors.should be_empty
69 parser.identifiers.should == %w(blah_de_blah)
121 parser.reported_errors.should be_empty
122 parser.events.should == [
136 parser.reported_errors.should have( 1 ).thing
137 parser.events.should be_empty
146 parser.reported_errors.should have( 1 ).thing
[all …]
Dscopes.rb186 proc { parser.b( false ) }.should raise_error( ANTLR3::RecognitionError )
206 symbols.should have( 2 ).things
207 symbols.should include 'i'
208 symbols.should include 'j'
222 proc { parser.c }.should raise_error RuntimeError, 'x'
241 symbols.should have( 2 ).things
242 symbols.should include 'i'
243 symbols.should include 'j'
252 parser.e.should == 12
261 parser.f.should == nil
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/
Dbasic.rb22 tokens.render.should == expected
233 should raise_error { |error|
234 …error.to_s.should == %q<operation (replace @ 1..2 : "foo") overlaps with previous operation (repla…
244 should raise_error { |error|
245 …error.to_s.should == %q<operation (insert-before @ 4 : "y") overlaps with previous operation (repl…
255 should raise_error { |error|
256 …error.to_s.should == %q<operation (replace @ 3..5 : "foo") overlaps with previous operation (repla…
266 should raise_error { |error|
267 …error.to_s.should == %q<operation (replace @ 1..3 : "foo") overlaps with previous operation (repla…
297 stream.original_string.should == 'x = 3 * 0;'
[all …]
/external/webkit/LayoutTests/fast/url/
Dipv4-expected.txt6 FAIL canonicalize('http:///') should be http:. Was http:/.
9 FAIL canonicalize('http://0300.0250.00.01/') should be http://192.168.0.1/. Was http://0300.0250.00…
10 FAIL canonicalize('http://0xC0.0Xa8.0x0.0x1/') should be http://192.168.0.1/. Was http://0xC0.0Xa8.…
14 FAIL canonicalize('http://0xCG.0xA8.0x0.0x1/') should be http://0xcg.0xa8.0x0.0x1/. Was http://0xCG…
15 FAIL canonicalize('http://192/') should be http://0.0.0.192/. Was http://192/.
16 FAIL canonicalize('http://0xC0a80001/') should be http://192.168.0.1/. Was http://0xC0a80001/.
17 FAIL canonicalize('http://030052000001/') should be http://192.168.0.1/. Was http://030052000001/.
18 FAIL canonicalize('http://000030052000001/') should be http://192.168.0.1/. Was http://000030052000…
19 FAIL canonicalize('http://192.168/') should be http://192.0.0.168/. Was http://192.168/.
20 FAIL canonicalize('http://192.0x00A80001/') should be http://192.168.0.1/. Was http://192.0x00A8000…
[all …]
Dfile-http-base-expected.txt6 FAIL canonicalize('file:c:\\foo\\bar.html') should be file:///C:/foo/bar.html. Was file://c:/foo/ba…
7 FAIL canonicalize(' File:c|////foo\\bar.html') should be file:///C:////foo/bar.html. Was file://c|…
8 FAIL canonicalize('file:') should be file:///. Was file:.
9 FAIL canonicalize('file:UNChost/path') should be file://unchost/path. Was file://UNChost/path.
10 FAIL canonicalize('c:\\foo\\bar') should be file:///C:/foo/bar. Was c:/foo/bar.
11 FAIL canonicalize('C|/foo/bar') should be file:///C:/foo/bar. Was http://example.com/mock/C|/foo/ba…
12 FAIL canonicalize('/C|\\foo\\bar') should be file:///C:/foo/bar. Was http://example.com/C|/foo/bar.
13 FAIL canonicalize('//C|/foo/bar') should be file:///C:/foo/bar. Was http://C|/foo/bar.
14 FAIL canonicalize('//server/file') should be file://server/file. Was http://server/file.
15 FAIL canonicalize('\\\\server\\file') should be file://server/file. Was http://server/file.
[all …]
Dfile-expected.txt6 FAIL canonicalize('file:c:\\foo\\bar.html') should be file:///C:/foo/bar.html. Was file:///tmp/mock…
7 FAIL canonicalize(' File:c|////foo\\bar.html') should be file:///C:////foo/bar.html. Was file:///t…
8 FAIL canonicalize('file:') should be file:///. Was file:///tmp/mock/path.
9 FAIL canonicalize('file:UNChost/path') should be file://unchost/path. Was file:///tmp/mock/UNChost/…
10 FAIL canonicalize('c:\\foo\\bar') should be file:///C:/foo/bar. Was c:/foo/bar.
11 FAIL canonicalize('C|/foo/bar') should be file:///C:/foo/bar. Was file:///tmp/mock/C|/foo/bar.
12 FAIL canonicalize('/C|\\foo\\bar') should be file:///C:/foo/bar. Was file:///C|/foo/bar.
13 FAIL canonicalize('//C|/foo/bar') should be file:///C:/foo/bar. Was file://C|/foo/bar.
17 FAIL canonicalize('file:c:foo/bar.html') should be file:///C:/foo/bar.html. Was file:///tmp/mock/c:…
18 FAIL canonicalize('file:/\\/\\C:\\\\//foo\\bar.html') should be file:///C:////foo/bar.html. Was fil…
[all …]
Drelative-win-expected.txt8 FAIL canonicalize('../../../bar.html') should be file:///C:/bar.html. Was file:///bar.html.
9 FAIL canonicalize('/../bar.html') should be file:///C:/bar.html. Was file:///bar.html.
10 FAIL canonicalize('\\\\another\\path') should be . Was http://another/path.
11 FAIL canonicalize('//c:/foo') should be file:///C:/foo. Was file://c/foo.
12 FAIL canonicalize('//localhost/c:/foo') should be file:///C:/foo. Was file:///c:/foo.
13 FAIL canonicalize('c:') should be . Was c:.
14 FAIL canonicalize('c:/foo') should be . Was c:/foo.
15 FAIL canonicalize('c:\\foo') should be . Was c:/foo.
16 FAIL canonicalize('/z:/bar') should be file:///Z:/bar. Was file:///z:/bar.
17 FAIL canonicalize('/bar') should be file:///C:/bar. Was file:///bar.
[all …]
/external/clang/test/Modules/
Dmacros.c23 # error INTEGER macro should be visible
27 # error FLOAT macro should not be visible
31 # error MODULE macro should not be visible
57 # error LEFT should not be visible
61 # error RIGHT should not be visible
65 # error TOP should not be visible
72 # error LEFT should be visible
76 # error RIGHT should not be visible
80 # error TOP should be visible
84 # error TOP_LEFT_UNDEF should not be visible
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/TestRewriteRuleTokenStream/
DTestRewriteRuleTokenStream.m65 STAssertFalse([stream hasNext], @"-(BOOL)hasNext should be NO, but isn't");
66 … STAssertThrows([stream nextToken], @"-next on empty stream should throw exception, but doesn't");
79 @"empty stream should have count==0");
82 @"single element stream should have count==1");
85 @"multiple stream should have count==2");
103 STAssertTrue([stream hasNext], @"-hasNext should be YES, but isn't");
105 …STAssertEqualObjects([tree getToken], token1, @"return token from stream should be token1, but isn…
113 @"stream iteration should not throw exception"
116 … @"stream iteration past element count (single element) should not throw exception"
119 @"tokens should be the same");
[all …]

12345678910>>...124