aboutsummaryrefslogtreecommitdiff
path: root/tests/expr-new.test
AgeCommit message (Collapse)AuthorFilesLines
2020-05-04tests: Add many new additional tests for code coverageSteve Bennett1-0/+49
readdir, tty, utf8, signal, alarm, kill, file, jimsh, posix, aio, history, interp, pack, unpack, eventloop, exec, load, package, regexp, regsub Signed-off-by: Steve Bennett <steveb@workware.net.au>
2020-04-17expr: avoid memory leak due to shimmeringSteve Bennett1-0/+13
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-10-11Separate out Jim specific testsEvan Hunter1-4/+21
2016-07-10Boolean contstants in expr, `string is boolean` classificationNikita Borodikhin1-0/+36
* named boolean values in `expr` are internally converted to int * named constants are lower-case only
2012-08-07Remove octal literals with a leading 0 (TIP #114)Steve Bennett1-4/+4
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>
2010-11-22Overhaul unit test frameworkSteve Bennett1-3/+3
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-10-15More expr tests and fixesSteve Bennett1-0/+582
*: Add tests/expr-new.test from Tcl *: Directly convert from int to double if possible *: Always treat '-' in front of a number as unary minus so that '-0x1234' works. *: Fix expr when the variable does not exist *: Add optional support for math functions *: Also double/0 == Inf or -Inf