aboutsummaryrefslogtreecommitdiff
path: root/tests/lsort.test
AgeCommit message (Collapse)AuthorFilesLines
2024-08-28lsort tests: some tests require utf-8 supportSteve Bennett1-2/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-28lsort: add support for -dictSteve Bennett1-1/+128
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2021-01-30lsearch, lsort: support for -stride and -indexSteve Bennett1-10/+38
Add -stride support to both lsearch and lsort Add -index support to lsearch Improve -index for lsort to support multiple indices Also harmonise some error messages with Tcl 8.7 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2020-12-26core: commands that take an index now use integer expressionsSteve Bennett1-1/+1
This means that instead of just [list index 2+1], we can now do [list index end-$n*2+1] This applies to: lindex, linsert, lreplace, lset, lrange, lsort, regexp, regsub string index,first,last,range Also add tests for both direct integer expressions and indexes. Still needs doc update. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-12-31utf8: Be more strict at rejecting invalid UTF-8 sequences.Steve Bennett1-18/+2
RFC 3629 says: Implementations of the decoding algorithm above MUST protect against decoding invalid sequences Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-10-11Separate out Jim specific testsEvan Hunter1-4/+9
2016-03-27lsort test: allow unstable lsort implementation to return results of same ↵Evan Hunter1-3/+8
value in different orders.
2014-10-11jim.c: string to double conversion error messageSteve Bennett1-1/+1
Change the error message to match Tcl 8.6 "expected floating-point number" instead of "expected number" Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-12-21Fix the lsort -unique testSteve Bennett1-2/+4
2013-12-11Add support for lsort -uniqueSteve Bennett1-1/+8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-12-11Add support for lsort -realSteve Bennett1-1/+10
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2012-08-07Remove octal literals with a leading 0 (TIP #114)Steve Bennett1-2/+2
Now an octal literal needs to be explicitly indicated with a leading 0o or 0O, otherwise the number is treated as decimal. This patch also adds support for binary literals. e.g. 0b101 0B1101 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-03lsort test should produce reliable resultsSteve Bennett1-1/+5
Previously different systems could produce different, valid results Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-24Small code cleanupsSteve Bennett1-0/+4
Remove Jim_SetWide() since it is only used by incr More tests for better test coverage Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-22Overhaul unit test frameworkSteve Bennett1-9/+7
Much closer to tcltest now, including constraints. Try to get all appropriate tests running under both Jim and Tcl. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add UTF-8 support to JimSteve Bennett1-1/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Add support for lsort -indexSteve Bennett1-0/+193
Also bring in some lsort tests from Tcl Also allow lsort to be reentrant (but not thread safe) Signed-off-by: Steve Bennett <steveb@workware.net.au>