Skip to content

Commit

Permalink
basic tests of bracketed paste callback (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Jul 24, 2024
1 parent e2dd2fa commit 934f399
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,14 @@ send_repl("paste0('check', 'point')")
send_repl("invisible('apple')")
send_repl("paste0('check', 'point')")
@test !occursin("\"apple\"", read_repl(output, "checkpoint"))

# bracked paste callback
send_repl("\e[200~1 + 1\n\n2 + 2\n3 + 3\e[201~\n")
@test check_repl_stdout("[1] 6")

send_repl("\e[200~1 + \n 1\n\e[201~")
@test check_repl_stdout("[1] 2")

send_repl("\e[200~1 + 1\e[201~ +")

@test RCall.RPrompt.repl_inited(repl)

0 comments on commit 934f399

Please sign in to comment.