summaryrefslogtreecommitdiffstats
path: root/tests/format.test
Commit message (Collapse)AuthorAgeFilesLines
* Indenting in testcases. Always use tabs in stead of 8 spacesjan.nijtmans2024-10-091-1/+1
|
* Make a start with new TIP implementation, handling '%d' for 'format' and ↵jan.nijtmans2024-05-311-34/+12
| | | | '%d'/'L'/'z'/'t'/'q'/'j' for 'scan'
* Fix [9c258a841a]: document %t/%z/%j/%q size field specifiers. Fix %j/%z/%t ↵jan.nijtmans2024-05-301-12/+4
|\ | | | | | | matching the C printf
| * Let's [9c258a841a|fix] the %p/%z/%t type specifiers, so they behave like C ↵jan.nijtmans2024-05-291-3/+3
|/ | | | in scripts, and document them
* Eliminate utf16 test-constraint. Add some testcases (backported/adapted from ↵jan.nijtmans2023-09-201-0/+3
| | | | 9.0)
* Allow larger values for "binary encode base64 -maxlen". Add some more testcasesjan.nijtmans2023-09-181-0/+6
|
* Merge 8.7jan.nijtmans2021-11-081-2/+2
|\
| * Merge 8.6jan.nijtmans2021-10-191-2/+2
| |\
| | * IntRep -> InternalRep. Internal changes only.jan.nijtmans2021-10-191-2/+2
| | |
* | | Fix knownMsvcBug testConstraintjan.nijtmans2021-08-041-2/+2
| | |
* | | Merge 8.7. Re-implement testConstraint knownMsvcBug in terms of tcl::build-infojan.nijtmans2021-07-231-1/+1
|/ /
* | More test-cases showing the bugjan.nijtmans2021-04-071-0/+6
| |
* | Thanks to TIP #587, convert many escapes in the testcases into the actual ↵jan.nijtmans2021-03-301-10/+10
| | | | | | | | (UTF-8) character.
* | Merge 8.6jan.nijtmans2021-01-281-10/+10
|\ \ | |/
| * Use {} braces in more "expr" expressions.jan.nijtmans2021-01-281-6/+6
| |
* | Now that all Tcl source files are UTF-8 by default, we can use the ©-sign ↵jan.nijtmans2020-11-231-2/+2
| | | | | | | | whenever reasonable.
* | Merge 8.6dkf2020-11-161-1/+4
|\ \ | |/
| * Fixed some tests, added trial macOS builddkf2020-11-141-5/+9
| |
* | Merge 8.6jan.nijtmans2020-09-041-1/+1
|\ \ | |/
| * Let all test-cases load the "tcltest" package the same way. Depend on ↵jan.nijtmans2020-09-041-2/+2
| | | | | | | | tcltest 2.5, since we never test with earlier tcltest versions
* | simplify check for ::tcltest namespace in testcasesjan.nijtmans2020-07-161-1/+1
| |
* | Merge 8.6jan.nijtmans2019-07-311-2/+3
|\ \ | |/
| * Merge 8.5jan.nijtmans2019-07-301-2/+3
| |\
| | * Enable testcases on Visual Studio builds. Disable some test-cases on Travis, ↵jan.nijtmans2019-07-291-2/+3
| | | | | | | | | | | | which are known to fail.
* | | Eliminate use of wideBiggerThanInt test constraint, since it's the same as ↵jan.nijtmans2018-09-031-7/+5
| | | | | | | | | | | | | | | | | | {longIs32bit wideIs64bit}. And ... it's name is actually wrong ... Don't use int() any more in any test constraint, since it's semantics might change. We don't want the test constraints to change with it. (See: TIP# 514) Simplify implementation of wideIs64bit test constraint, just testing for 64-bit sign bit is enough.
* | | merge 8.6: bug [d051b77fc1] fixedsebres2018-07-261-0/+14
|\ \ \ | |/ /
| * | merge 8.5 - bug [d051b77fc1] fixedsebres2018-07-261-0/+14
| |\ \ | | |/
| | * test cases added to cover width overflow by format (should cause limit exceeded)sebres2018-07-261-0/+14
| | |
| | |
| \ \
*-. \ \ Merge trunk. And merge jn-0d-radix-prefix branch in too (too small to be ↵jan.nijtmans2017-10-131-9/+9
|\ \ \ \ | | | | | | | | | | | | | | | considered separately)
| * \ \ \ merge trunkjan.nijtmans2017-06-291-3/+3
| |\ \ \ \ | | |/ / /
| * | | | Merge trunk. Don't use expensive ToUpper() for hex 0X???? formatting, just ↵jan.nijtmans2017-06-271-3/+3
| |\ \ \ \ | | |/ / / | | | | | | | | | | generate uppercase directly.
| * | | | Implement "format %o" as prefixing with "0o" in stead of "0" (Kevin Kenny's ↵jan.nijtmans2017-06-271-13/+13
| | | | | | | | | | | | | | | | | | | | suggestion). Seems ready to be TIPed (just some more testing)
| * | | | Rebase branch "jn-0d-radix-prefix" back to trunk. No new changesjan.nijtmans2017-06-261-5/+5
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | Little variation on Brian's proposal: Only prefix decimal number with '0d' ↵jan.nijtmans2017-06-141-12/+9
| | | | | | | | | | | | | | | | | | | | when that's necessary for correct interpretation of the number when parsed back again.
* | | | | Rebase to trunkjan.nijtmans2017-09-081-10/+10
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | merge trunkjan.nijtmans2017-04-141-8/+8
| |\ \ \ \
| * | | | | Use "0o" in stead of "0" as octal prefix in more places.jan.nijtmans2017-04-071-2/+2
| | | | | |
| * | | | | Merge trunk. Only use hash prefix (0x, 0b, 0 ) if value is not 0, except for %p.jan.nijtmans2017-04-071-16/+43
| |\ \ \ \ \
* | | | | | | No longer split tests for longIs32bit/longIs64bit, since the results should ↵jan.nijtmans2017-06-231-12/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | be identical
* | | | | | | repair broken testsdgp2017-06-231-2/+2
| | | | | | |
* | | | | | | TIP #472 implementation: Add Support for 0d Radix Prefix to Integer Literalsjan.nijtmans2017-06-231-6/+6
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | |
| * | | | | | Rebase to core-8-6-branch (who told that fossil doesn't know how to rebase ....)jan.nijtmans2017-06-141-0/+19
| |\ \ \ \ \ \
| | * | | | | | Add support of 0d in the format %# conversion flag. Add tests for same.griffin2017-06-121-0/+19
| | | |_|/ / / | | |/| | | |
* | | | | | | merge core-8-6-branchjan.nijtmans2017-06-221-0/+19
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | / / | | |_|_|/ / | |/| | | |
| * | | | | Add test-cases, testing the legacy behavior of "format %#d"jan.nijtmans2017-06-221-0/+19
| |/ / / /
* | | | | merge core-8-6-branchjan.nijtmans2017-04-141-18/+24
|\ \ \ \ \ | |/ / / /
| * | | | Don't use "0%o" format in test-cases, as it suggest's it's the normal way to ↵jan.nijtmans2017-04-141-18/+24
| | | | | | | | | | | | | | | | | | | | | | | | | format octal numbers: it isn't. Better use "%#o". Add tests for "format" and "scan" corner-cases which weren't documented (except in TIP's) neither had tests before.
* | | | | Revert recent commit. TIP 237 is clear that %llu is invalid.dgp2017-04-121-6/+0
|\ \ \ \ \ | |/ / / / | | | / / | |_|/ / |/| | |
| * | | Revert recent commit [80252e0aed]. TIP 237 is clear that %llu is invalid.dgp2017-04-121-6/+0
| | | |
* | | | Fix [4b12ccb3363e81b132e8dbe12aeec596102be1a8|4b12ccb336]: format/scan %llu ↵jan.nijtmans2017-04-051-0/+6
|\ \ \ \ | |/ / / | | | | | | | | doesn't work. Also added new test-cases showing the expected behavior.