@@ -120,6 +120,7 @@ fake_repl(options = REPL.Options(confirm_exit=false,hascolor=true)) do stdin_wri
120
120
end
121
121
122
122
# Latex completions
123
+ readuntil (stdout_read, " julia> " , keep= true )
123
124
write (stdin_write, " \x 32\\ alpha\t " )
124
125
readuntil (stdout_read, " α" )
125
126
# Bracketed paste in search mode
@@ -1038,13 +1039,16 @@ fake_repl() do stdin_write, stdout_read, repl
1038
1039
write (stdin_write, " TestShowTypeREPL.TypeA\n " )
1039
1040
@test endswith (readline (stdout_read), " \r\e [7CTestShowTypeREPL.TypeA\r\e [29C" )
1040
1041
readline (stdout_read)
1041
- readline (stdout_read)
1042
+ @test readline (stdout_read) == " "
1042
1043
@eval Main using . TestShowTypeREPL
1044
+ readuntil (stdout_read, " julia> " , keep= true )
1043
1045
write (stdin_write, " TypeA\n " )
1044
1046
@test endswith (readline (stdout_read), " \r\e [7CTypeA\r\e [12C" )
1045
1047
readline (stdout_read)
1048
+ @test readline (stdout_read) == " "
1046
1049
1047
1050
# Close REPL ^D
1051
+ readuntil (stdout_read, " julia> " , keep= true )
1048
1052
write (stdin_write, ' \x 04' )
1049
1053
Base. wait (repltask)
1050
1054
end
@@ -1163,10 +1167,13 @@ fake_repl() do stdin_write, stdout_read, repl
1163
1167
write (stdin_write, " Expr(:call, GlobalRef(Base.Math, :float), Core.SlotNumber(1))\n " )
1164
1168
readline (stdout_read)
1165
1169
@test readline (stdout_read) == " \e [0m:(Base.Math.float(_1))"
1170
+ @test readline (stdout_read) == " "
1171
+ readuntil (stdout_read, " julia> " , keep= true )
1166
1172
write (stdin_write, " ans\n " )
1167
1173
readline (stdout_read)
1168
- readline (stdout_read)
1169
1174
@test readline (stdout_read) == " \e [0m:(Base.Math.float(_1))"
1175
+ @test readline (stdout_read) == " "
1176
+ readuntil (stdout_read, " julia> " , keep= true )
1170
1177
write (stdin_write, ' \x 04' )
1171
1178
Base. wait (repltask)
1172
1179
end
@@ -1179,10 +1186,15 @@ fake_repl() do stdin_write, stdout_read, repl
1179
1186
write (stdin_write, " struct Errs end\n " )
1180
1187
readline (stdout_read)
1181
1188
readline (stdout_read)
1189
+ readuntil (stdout_read, " julia> " , keep= true )
1182
1190
write (stdin_write, " Base.show(io::IO, ::Errs) = throw(Errs())\n " )
1183
1191
readline (stdout_read)
1184
1192
readline (stdout_read)
1193
+ readuntil (stdout_read, " julia> " , keep= true )
1185
1194
write (stdin_write, " Errs()\n " )
1195
+ readline (stdout_read)
1196
+ readline (stdout_read)
1197
+ readuntil (stdout_read, " julia> " , keep= true )
1186
1198
write (stdin_write, ' \x 04' )
1187
1199
wait (repltask)
1188
1200
@test istaskdone (repltask)
@@ -1195,7 +1207,8 @@ fake_repl() do stdin_write, stdout_read, repl
1195
1207
end
1196
1208
write (stdin_write, " ?;\n " )
1197
1209
readline (stdout_read)
1198
- @test endswith (readline (stdout_read)," ;" )
1210
+ @test endswith (readline (stdout_read), " search: ;" )
1211
+ readuntil (stdout_read, " julia> " , keep= true )
1199
1212
write (stdin_write, ' \x 04' )
1200
1213
Base. wait (repltask)
1201
1214
end
@@ -1208,6 +1221,7 @@ fake_repl() do stdin_write, stdout_read, repl
1208
1221
write (stdin_write, " global x\n " )
1209
1222
readline (stdout_read)
1210
1223
@test ! occursin (" ERROR" , readline (stdout_read))
1224
+ readuntil (stdout_read, " julia> " , keep= true )
1211
1225
write (stdin_write, ' \x 04' )
1212
1226
Base. wait (repltask)
1213
1227
end
0 commit comments