From 492c388e1db59a95157a55f58309c9f3997b9a53 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 18 May 2021 01:56:03 +0000 Subject: 48594 (plus an "F:" line corresponding to the question there): New tests for functions -t / functions -T --- Test/E02xtrace.ztst | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'Test') diff --git a/Test/E02xtrace.ztst b/Test/E02xtrace.ztst index 10e8b8886..56bc20f1a 100644 --- a/Test/E02xtrace.ztst +++ b/Test/E02xtrace.ztst @@ -225,3 +225,39 @@ >the definition didn't execute it >runs + f() g + g() : + functions -t f + f +0:functions -t smoke test #1 +?+f:4> g +?+g:4> : +F:The `4' on the second line is incorrect; see workers/48594. + + f() g + g() { () : } + functions -t f + f +0:functions -t smoke test #2 +?+f:4> g +?+g:0> '(anon)' +?+(anon):0> : + + f() g + g() : + ( + functions -T f + functions -t f + f + ) + ( + functions -t f + functions -T f + f + ) +0:ensure the behaviour of 'functions -Tt f' doesn't change surreptitiously +?+f:6> g +?+f:11> g +F:If this test fails, the new behaviour may be +F:workers/48591. + -- cgit 1.4.1