From ac180a94ff749f5df7705279d3d08258417b9b34 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 19 Jul 2025 22:34:57 +0300 Subject: special Q-registers `$` (working directory) and the clipboard registers now support the append operation (:Xq, :^Uq...) Works via a default implementation in the "external" Q-register "class" by first querying the string, appending and re-setting it. --- tests/testsuite.at | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index 034427f..2c9bec9 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -303,6 +303,11 @@ AT_SETUP([Memory limiting]) TE_CHECK([[50*1000*1000,2EJ <[a> !]!]], 1, ignore, ignore) AT_CLEANUP +AT_SETUP([Change working directory]) +TE_CHECK([[:Q$Ul @FG'..' Ql-:Q$-1"<(0/0)']], 0, ignore, ignore) +TE_CHECK([[:Q$Ul :@^U$'/..' Ql-:Q$-1"<(0/0)']], 0, ignore, ignore) +AT_CLEANUP + AT_SETUP([Execute external command]) # TODO: It would be a better test to generate a random number of bytes. # Unfortunately, neither $RANDOM, shuf nor jot are portable. -- cgit v1.2.3