File tree Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,8 @@ def test_empty_input_echoing_behaviour
70
70
type "exit"
71
71
end
72
72
73
- # Input cramped together due to how Reline's Reline::GeneralIO works
74
- assert_include (
75
- output ,
76
- "irb(main):001> irb(main):002> irb(main):002> irb(main):002> => nil\r \n "
77
- )
73
+ assert_not_match ( /irb\( main\) :001> (\r *\n )?=> nil/ , output )
74
+ assert_match ( /irb\( main\) :002> (\r *\n )?=> nil/ , output )
78
75
end
79
76
end
80
77
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ def b; true; end
137
137
a
138
138
.a
139
139
.b
140
+ .itself
140
141
EOC
141
142
close
142
143
assert_screen ( <<~EOC )
@@ -153,9 +154,10 @@ def b; true; end
153
154
irb(main):008>
154
155
irb(main):009> a
155
156
irb(main):010> .a
156
- irb(main):011> .b
157
+ irb(main):011> .b
158
+ irb(main):012> .itself
157
159
=> true
158
- irb(main):012 >
160
+ irb(main):013 >
159
161
EOC
160
162
end
161
163
@@ -181,7 +183,6 @@ def c; true; end
181
183
(a)
182
184
&.b()
183
185
184
-
185
186
class A def b; self; end; def c; true; end; end;
186
187
a = A.new
187
188
a
@@ -190,6 +191,7 @@ class A def b; self; end; def c; true; end; end;
190
191
.c
191
192
(a)
192
193
&.b()
194
+ .itself
193
195
EOC
194
196
close
195
197
assert_screen ( <<~EOC )
@@ -214,17 +216,17 @@ class A def b; self; end; def c; true; end; end;
214
216
irb(main):015> &.b()
215
217
=> #<A>
216
218
irb(main):016>
217
- irb(main):017>
218
- irb(main):018> class A def b; self; end; def c; true; end; end;
219
- irb(main):019> a = A.new
219
+ irb(main):017> class A def b; self; end; def c; true; end; end;
220
+ irb(main):018> a = A.new
220
221
=> #<A>
221
- irb(main):020 > a
222
- irb(main):021 > .b
223
- irb(main):022 > # aaa
224
- irb(main):023 > .c
222
+ irb(main):019 > a
223
+ irb(main):020 > .b
224
+ irb(main):021 > # aaa
225
+ irb(main):022 > .c
225
226
=> true
226
- irb(main):024> (a)
227
- irb(main):025> &.b()
227
+ irb(main):023> (a)
228
+ irb(main):024> &.b()
229
+ irb(main):025> .itself
228
230
=> #<A>
229
231
irb(main):026>
230
232
EOC
You can’t perform that action at this time.
0 commit comments