summaryrefslogtreecommitdiff
path: root/Test
AgeCommit message (Collapse)AuthorFilesLines
2019-12-26unposted (follow-up to 45131): Extra testing by MikaelDaniel Shahaf1-6/+31
2019-12-2645137: zformat: Allow the specifying minimum width and a dot with an empty ↵Daniel Shahaf1-0/+2
maximum width. Before this commit, format specs such as '%5.s' would be printed literally. Now, they are treated as equivalent to '%5s'. The '.' character is not allowed to be used in specs, so there is no incompatibility.
2019-12-2645138: Add zformat unit tests.Daniel Shahaf1-0/+65
2019-12-2645131: Make a function that redefines itself preserve its tracedness.Daniel Shahaf1-0/+9
This makes it easy to apply local tracing ('functions -T') to autoloadable functions that redefines themselves when first loaded.
2019-12-22unposted: Fix broken build: 45109 (!) broke Test/Y01completion.ztst.Daniel Shahaf2-86/+1
2019-12-2245111: zshmisc(1): Clarify the documentation of 'return' and 'exit' in ↵Daniel Shahaf1-0/+2
conjunction with try/always Having reviewed 20076, 20084, 21734, and 21735, my understanding is that the original intention was: - A 'return' in a function does run always-list - An 'exit' outside a function does not run always-list - A 'return' outside a function is treated as an 'exit' All of which are the case today. The remaining case, of 'exit' used inside a function, was not specified by the referenced -workers@ posts; does, as implemented, run the always-list; and furthermore, based in 21734 it's fair to assume that the original documentation was assuming that 'exit' would be used outside of any function, just like it assumed 'return' would be used inside a function. Therefore, have the documentation specify only the behaviour of 'exit' outside any function, and leave the behaviour of 'exit' inside a function unspecified. Anyone who relied on the documentation of 'exit' as documented until this commit would have run into the documentation/implementation discrepancy described in 45075.
2019-12-2245107: ztst.vim: Highlight some more special variablesDaniel Shahaf1-1/+3
2019-12-2245108: ztst.vim: Conceal the '>' or '?' on pattern expected output / ↵Daniel Shahaf1-8/+19
expected errput lines. This aligns the expectations given by '*>' and '>' lines.
2019-12-2245109: Add Vim highlighting file for Test/*.ztst files.Daniel Shahaf2-0/+74
2019-12-21unposted: Group related tests. No functional change.Daniel Shahaf1-8/+8
2019-12-1245001: Fix zero-length matches with ${...%...}Peter Stephenson1-0/+23
As the shortest match is preferred, zero-length matches beat any other.
2019-12-1145004: Fix typos in commentsMartijn Dekker8-9/+9
2019-12-01unposted: zstyle: Add a unit test and some comments.Daniel Shahaf1-0/+10
2019-11-19unposted: Add smoke test for :P history modifier.Daniel Shahaf1-0/+7
2019-08-1444664: Fix problem with temporary assignment.Peter Stephenson1-0/+12
"foo=bar builtin" inside a function lost any variable from enclosing scope.
2019-08-03Copy functions using functions -c old new.Peter Stephenson1-1/+68
Documentation and test.
2019-07-1644523: Add ZTST_handler capability.Peter Stephenson1-1/+6
Defaults to runtests.zsh but can be something else for alternative test management.
2019-07-0144469: correct error on missing option argumentMartijn Dekker1-0/+17
2019-06-2444446: Fix here document with file descriptor declarator.Peter Stephenson1-1/+9
Add unit test.
2019-06-2044435: Handling digita arguments for :h and :t.Peter Stephenson3-0/+128
Pick number of leading or trailing path components to substitute. Active in history, brace parameters, glob qualifiers. Add tests for all three environments.
2019-05-2344345: fix wordcode traversal where ! without a following command could ↵Oliver Kiddle1-0/+33
result in a crash
2019-05-1444296: "typeset Q= {X}" crashed the shell.Peter Stephenson1-0/+7
2019-05-08unposted: Fix bad encoding in previous Y01 test patchdana1-4/+4
2019-05-08unposted: Add compset tests related to workers/44275Oliver Kiddle1-0/+38
(Provided off-list by Oliver)
2019-05-0744274: allow finer control of completion match soring with compadd's -o optionOliver Kiddle1-0/+40
2019-05-0344267: sort: Restore option to ignore backslashesdana1-0/+22
Fix regression introduced by workers/41242
2019-05-0344271: Fix breaks propagated from until or return.Peter Stephenson1-0/+10
If the until or return test caused continuation but there was a pending return, breaks didn't get cancelled causing enclosing scope to skip commands.
2019-03-1244100: zparseopts: Add -F option, completion, tests; improve documentationdana1-0/+172
* Enable zparseopts to perform basic usage validation (aborting on an unrecognised option-like parameter) * Officially document the resolution of ambiguous option specs
2019-03-01unposted: ztst.zsh: fix a typoJun-ichi Takimoto1-1/+1
2019-02-0344030: prompt: Return error for unrecognised colour namedana1-0/+8
2019-01-2344012: X04zlehighlight: Fix spurious test failures on OpenBSDdana1-1/+8
2019-01-2344011: Only use fg_start_code for non-truecolorMikael Magnusson1-4/+4
The sequence for truecolor uses a different prefix from palette colors
2018-12-3143962: Fix X04 test module_pathdana1-0/+1
2018-12-30users/23809: ZLE_HIGHLIGHT extensions.Peter Stephenson1-0/+153
Allow non-termcap use of colours > 7. Add tests.
2018-12-3043945 (tweaked to remove test failure, noted in test):Martijn Dekker1-0/+53
Fix exit statuses from wait for POSIX_BUILTINS mode. Also add tests.
2018-12-3043944: apply NO_UNSET consistently to arithmeitcMartijn Dekker1-0/+16
2018-12-30unposted: test for 43938Peter Stephenson1-0/+8
2018-12-2943953: Fix rounding/truncation error in %. time-format specifierdana1-0/+16
Also fixes an issue where %. couldn't be used more than once in a format string without strange results Tweaked very slightly per workers/43954
2018-12-2443935: Reject too-large nanosecond values given to strftimedana1-1/+4
... and, in so doing, fix an error in the tests on 32-bit machines. The value for the new too-large test is changed slightly from the patch posted to the ML to make it test for the right thing on 32-bit machines as well.
2018-11-2143837 plus test from Daniel: Empty string in nested subst.Peter Stephenson1-0/+7
Skip Nularg or there is a bogus character at the start.
2018-11-1343800: Add nanosecond support to strftime built-indana1-0/+29
2018-10-2443726: Add tests for semicolon in the middle of a sublist not terminating it.Daniel Shahaf1-0/+10
2018-10-10unposted: another couple of tests for previous commit.Peter Stephenson1-0/+6
This tests different code paths as the -c command option exits in a different fashion from code executed from a script.
2018-10-1043669: ensure explicit exit status is used over implicitPeter Stephenson1-0/+3
2018-10-0943660: extend 43653 when final exit is implicit.Peter Stephenson1-0/+4
Combine logic for case after committed to exit (shell_exiting) with case where exit occurred in a function we nee to unwind (exit_pending). Add sarky note for future generations to be confused at.
2018-10-09unposted: addition to previous trap test suggested by MikaelPeter Stephenson1-0/+3
2018-10-0943653: explicit exit from EXIT trap overrides exit statusPeter Stephenson1-0/+3
2018-10-0843616: Various parameter setting and display fixes.Peter Stephenson1-7/+284
Mostly to do with typeset -p and tied variables and their interaction. Some general tied variable fixes.
2018-09-25unposted: Add a test for 43546.Daniel Shahaf1-0/+5
2018-09-2443493: Have V07pcre fail if PCRE was enabled by configure (config.modules) ↵Daniel Shahaf1-3/+2
but failed to load for any reason.