• Home
  • Raw
  • Download

Lines Matching refs:should

17     @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
38 @stream.line.should == 2
41 @stream.index.should == 4
42 @stream.column.should == 1
43 @stream.line.should == 2
46 @stream.index.should == 5
47 @stream.column.should == 2
48 @stream.line.should == 2
51 @stream.index.should == 6
52 @stream.column.should == 3
53 @stream.line.should == 2
56 @stream.index.should == 7
57 @stream.column.should == 4
58 @stream.line.should == 2
61 @stream.index.should == 8
62 @stream.column.should == 0
63 @stream.line.should == 3
66 @stream.index.should == 8
67 @stream.column.should == 0
68 @stream.line.should == 3
71 @stream.index.should == 8
72 @stream.column.should == 0
73 @stream.line.should == 3
79 @stream.index.should == 0
80 @stream.line.should == 1
81 @stream.column.should == 0
82 @stream.peek(1).should == ?o.ord
86 @stream.look(1).should == 'o'
87 @stream.look(2).should == 'h'
88 @stream.look(3).should == "\n"
89 @stream.peek(1).should == ?o.ord
90 @stream.peek(2).should == ?h.ord
91 @stream.peek(3).should == ?\n.ord
94 @stream.look(1).should == '!'
95 @stream.look(2).should == "\n"
96 @stream.look(3).should be_nil
97 @stream.peek(1).should == ?!.ord
98 @stream.peek(2).should == ?\n.ord
99 @stream.peek(3).should == EOF
103 @stream.substring(0,0).should == 'o'
104 @stream.substring(0,1).should == 'oh'
105 @stream.substring(0,8).should == "oh\nhey!\n"
106 @stream.substring(3,6).should == "hey!"
111 @stream.index.should == 3
112 @stream.line.should == 2
113 @stream.column.should == 0
114 @stream.peek(1).should == ?h.ord
120 marker.should == 1
125 marker.should == 2
136 @stream.mark_depth.should == 2
138 @stream.mark_depth.should == 1
152 @stream.mark_depth.should == 2
164 @stream.mark_depth.should == 1
165 @stream.index.should == 4
166 @stream.line.should == 2
167 @stream.column.should == 1
168 @stream.peek(1).should == ?e.ord
173 @stream.through( 2 ).should == 'oh'
174 @stream.through( -2 ).should == ''
176 @stream.through( 0 ).should == ''
177 @stream.through( 1 ).should == 'y'
178 @stream.through( -2 ).should == 'he'
179 @stream.through( 5 ).should == "y!\n"
193 @stream.mark_depth.should == 2
194 @stream.index().should == 5
195 @stream.line.should == 2
196 @stream.column.should == 2
197 @stream.peek(1).should == ?y.ord
219 @stream.index().should == 5
220 @stream.line.should == 2
221 @stream.column.should == 1
222 @stream.mark_depth.should == 2
223 @stream.look(1).should == 'a'
224 @stream.peek(1).should == ?a.ord
258 @stream.position.should == 0
267 @stream.position.should == 0
268 @stream.tokens.length.should == 0
271 @stream.token_source.should == @source2
272 @stream.position.should == 1
273 @stream.tokens.should have( 2 ).things
279 @stream.look.should == ANTLR3::EOF_TOKEN
286 @stream.look(1).type.should == 12
295 @stream.look(1).type.should == 13
304 @stream.look(2).type.should == EOF
313 @stream.look(-1).type.should == 12
322 @stream.look(-1).type.should == 12
330 @stream.look(0).should == nil
341 @stream.look(-1).should == nil
343 @stream.look(-3).should == nil
351 @stream.instance_variable_get(:@tokens).length.should == 3
352 @stream.tokens[0].type.should == 12
353 @stream.tokens[1].type.should == 13
354 @stream.tokens[2].type.should == 14
361 @stream.peek.should == 12
363 @stream.peek.should == 13
365 @stream.peek.should == EOF
367 @stream.peek.should == EOF
375 @stream.peek(1).should == 12
376 @stream.seek(2).peek.should == EOF
377 @stream.seek(0).peek.should == 12
378 @stream.seek(-3).position.should == 0
379 @stream.seek(10).position.should == 2
390 @stream.peek(1).should == 13
399 @stream.to_s.should == "foobargnurzblarz"
400 @stream.to_s(1,2).should == 'bargnurz'
401 @stream.to_s(@stream[1], @stream[-2]).should == 'bargnurz'