Searched refs:should (Results 1 – 25 of 3090) sorted by relevance
12345678910>>...124
21 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 …]
34 lexer.properties.should have( 3 ).things36 text.should == 'foobar'37 type.should == RuleProperty::TokenData::IDENTIFIER38 line.should == 139 pos.should == 040 index.should == -141 channel.should == ANTLR3::DEFAULT_CHANNEL42 start.should == 043 stop.should == 546 text.should == '_ab98'[all …]
17 @stream.size.should == 821 @stream.index.should == 026 @stream.index.should == 127 @stream.column.should == 128 @stream.line.should == 131 @stream.index.should == 232 @stream.column.should == 233 @stream.line.should == 136 @stream.index.should == 337 @stream.column.should == 0[all …]
18 context.instance_variables.should be_empty27 vars.should include( '@a' )28 vars.should include( '@b' )30 context.instance_variable_get( '@a' ).should == 131 context.instance_variable_get( '@b' ).should == 239 context[ :a ].should == 140 context[ 'a' ].should == 141 context[ :b ].should == 242 context[ 'b' ].should == 250 context.instance_variable_get( '@a' ).should == 1[all …]
26 @ts::A.should == 427 @ts::B.should == 528 @ts::T__6.should == 629 @ts::EOF.should == -133 @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 …]
27 found.should == expecting32 found.should == expecting53 root_0.child_index.should == -154 t.child_index.should == 055 u.child_index.should == 169 found.should == expecting73 found.should == expecting92 found.should == expecting96 found.should == expecting110 found.should == expecting[all …]
16 @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 == Object30 c.b.should == 031 c.c.should == {}36 b.count.should == 7000[all …]
22 parser.reported_errors.should be_empty unless expect_errors68 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 …]
22 parser.reported_errors.should be_empty unless expect_errors69 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 …]
622 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 …]
132 profile_data.rule_invocations.should == 60133 profile_data.guessing_rule_invocations.should == 0134 profile_data.rule_invocation_depth.should == 12136 profile_data.fixed_decisions.should == 40138 fixed_data.min.should == 1139 fixed_data.max.should == 2140 fixed_data.average.should == 1.075141 fixed_data.standard_deviation.should == 0.26674678283691855143 profile_data.cyclic_decisions.should == 4145 cyclic_data.min.should == 3[all …]
38 @socket.readline.strip.should == 'ANTLR 2'39 @socket.readline.strip.start_with?( 'grammar "' ).should == true110 found.should == expected122 debugger.success.should be_true140 debugger.events.should == expected152 debugger.success.should be_true177 debugger.events.should == expected190 debugger.success.should be_true210 debugger.events.should == expected224 debugger.success.should be_true[all …]
43 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 …]
... reference counts 14Inode 2 ref count is 4, should be 3. Fix? yes 15 16Inode 12
45 start.index.should == 146 stop.index.should == 747 text.should == 'a a a a'91 ids.should have( 6 ).things92 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 …]
43 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 …]
44 parser.reported_errors.should be_empty45 parser.identifiers.should == %w(blah_de_blah)55 parser.reported_errors.should have( 1 ).thing68 parser.reported_errors.should be_empty69 parser.identifiers.should == %w(blah_de_blah)121 parser.reported_errors.should be_empty122 parser.events.should == [ 136 parser.reported_errors.should have( 1 ).thing137 parser.events.should be_empty146 parser.reported_errors.should have( 1 ).thing[all …]
186 proc { parser.b( false ) }.should raise_error( ANTLR3::RecognitionError )206 symbols.should have( 2 ).things207 symbols.should include 'i'208 symbols.should include 'j'222 proc { parser.c }.should raise_error RuntimeError, 'x'241 symbols.should have( 2 ).things242 symbols.should include 'i'243 symbols.should include 'j'252 parser.e.should == 12261 parser.f.should == nil[all …]
22 tokens.render.should == expected233 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 …]
6 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 …]
6 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 …]
6 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 …]
8 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 …]
23 # error INTEGER macro should be visible27 # error FLOAT macro should not be visible31 # error MODULE macro should not be visible57 # error LEFT should not be visible61 # error RIGHT should not be visible65 # error TOP should not be visible72 # error LEFT should be visible76 # error RIGHT should not be visible80 # error TOP should be visible84 # error TOP_LEFT_UNDEF should not be visible[all …]
65 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 …]