aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2011-12-12Add constraints for tests which need utf-8Steve Bennett1-6/+6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-12-08Add support for tcl::prefix as an optional extensionSteve Bennett1-0/+149
Also adds Jim_ListGetIndex(), like Jim_ListIndex() but with a more convenient interface
2011-12-08utf-8 case folding may change encoded lengthSteve Bennett1-0/+4
Thus we may need a larger buffer for the encoded string Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-12-02Extend UTF-8 support past the BMPSteve Bennett2-1/+20
Now codepoints up to U+1FFFFF are supported, including as literals with the new \u{NNNNNN} syntax (up to six hex digits) Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-12-02Reduce some delays in testsSteve Bennett2-3/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-12-01Minor changes for Tcl compatibilitySteve Bennett2-3/+3
Error messages Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-30Add [info alias]Steve Bennett1-0/+9
To access the command that an alias refers to Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-28Implement [alias] in CSteve Bennett2-9/+6
And allow commands to set a temporary name for the purpose of generating error messages Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-28Commands, not just procs can be localSteve Bennett1-4/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-28Implement [string replace]Steve Bennett1-0/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-28Add support for [string totitle]Steve Bennett1-0/+13
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-28Fix list escaping of leading #Steve Bennett1-0/+481
Tcl compatibility Also add more tests from Tcl 8.6 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-25Minor message changes to match Tcl 8.6Steve Bennett4-280/+335
And import some up-to-date tests from Tcl 8.6 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-25Add [info statics]Steve Bennett1-0/+6
To access static variables (names and values) of a proc Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-18Don't allow upvar to a higher levelSteve Bennett1-0/+5
i.e. upvar of a global var to a proc var Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-18Improvements to variable caching and resolutionSteve Bennett1-0/+20
Cache the correct callframe id for ::global vars Move variable creation out into JimCreateVariable() Fix some cases of upvar/global with ::global vars Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-10More tcltest compatibilitySteve Bennett1-0/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-10regex: counts were not all being clearedSteve Bennett1-0/+6
If a cached regex containing counts was reused, the result may have been incorrect. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-10regex: add support for non-capturing parenthesesSteve Bennett1-0/+8
Tcl-compatible syntax: (?:...) Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-09Fix some dict unset casesSteve Bennett1-0/+24
Behaviour is now identical to Tcl 8.6 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-09List with # only needs braces for first elementSteve Bennett1-0/+2
Compatibility with Tcl Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-09Fix a parsing bug for quoted orphan $Steve Bennett1-0/+8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-10-21Tcl 8.6 can run most tailcall testsSteve Bennett1-2/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-10-21Return from tailcall should be passed throughSteve Bennett1-0/+13
If a proc invokes a command via a tailcall and that command invokes "return", the return should be passed back to the caller of the proc. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-10-21Source location for test which does "return"Steve Bennett1-1/+1
If a test does a "return" and the result is not the expected value, the source location of the test is wrong. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-10-10Simplify the way unicode case mapping is doneSteve Bennett1-0/+4
Smaller, faster and includes title-case characters. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-24Fix script ignored string rep after list operationSteve Bennett1-0/+8
Even if a string has list rep internally, the original string rep (if there is one) should be used when evaluated as a script. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12Trim the size of the boostrap jimsh sourceSteve Bennett1-1/+1
By removing comments and some large blocks of unnecessary code Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12Implement full [exec] on mingw/msysSteve Bennett2-11/+11
This also involves some restructuring of the existing implementation to allow for as much reuse as possible. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-22Allow -returnCodes to use numbers as well as namesSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-18Add support for BSD makeSteve Bennett1-2/+1
Use the new conditional template support in autosetup to avoid (most) GNU-isms in the generated Makefile. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-01dict unset should not return error on missing last keySteve Bennett1-0/+5
dict unset was returning an error with no message Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-18Don't add a local proc context in source and evalSteve Bennett1-10/+2
Only procedures add a local proc context. Otherwise it is not possible to use local/upcall in Tcl packages. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-13Setup auto_path directly in tests/testing.tclSteve Bennett2-1/+3
Rather than relying on setting JIMLIB in the Makefile. Makes it easier to run individual tests manually. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-12Fix some [file join] casesSteve Bennett1-0/+18
In particular, file join / anything Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Fix missing expr error message with || and &&Steve Bennett1-0/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Make list to string conversion more Tcl compatibleSteve Bennett1-2/+2
If a list elements contains unmatch ] brackets, use backslash quoting instead of braces. This is what Tcl does. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Better proc optional arg handlingSteve Bennett1-0/+15
Allows args and optional parameters in any location, in addition to being smaller and faster. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Make an array test more reliableSteve Bennett1-1/+1
Currently it depends on hash table ordering. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-29Mark tests which require utf-8 supportSteve Bennett2-4/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-10Add some missing test dependenciesSteve Bennett2-1/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-10Clear out vars before testSteve Bennett1-0/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-10Slightly more efficient proc testSteve Bennett1-3/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-10Implement the [binary] commandSteve Bennett2-0/+1744
Supports everything except floating point types binary is implemented in Tcl on top of the low level [pack] and [unpack] commands Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-10Add TclX-compatible loop commandSteve Bennett1-0/+152
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-09Revert regexp nested repeats from b34ab2f895Steve Bennett1-1/+2
Nested repeats can't really be handled properly, so remove support since it breaks some non-nested cases. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-07Simplify/fix repeating matchesSteve Bennett1-25/+91
Simplifies *, + and {n,m}, fixes some broken cases and adds support for {n,m}? Also fixes end-of-word match Under some circumstances, repeats can now be nested. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-05Fix simple * and + case for utf-8Steve Bennett1-0/+8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-04Make test error easier to readSteve Bennett1-0/+1
Add a blank line after each error Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-04Fix utf8 char matching in character rangesSteve Bennett1-0/+8
Also searching the initial part of the string Signed-off-by: Steve Bennett <steveb@workware.net.au>