summaryrefslogtreecommitdiff
path: root/lib/std/test/fmt.myr
AgeCommit message (Collapse)Author
2020-09-20Fix range checking for numbers.Ori Bernstein
2019-12-04Allow specifying padding width from variableS. Gilles
So I can write std.put("{w=?}{w=?}\n", field_a, max_width, field_b, max_width)
2019-12-04Convert lib/test/fmt.myr to use testrS. Gilles
2018-03-12Make fltXYexplode and fltXYassem inverses of each otherS. Gilles
The exponent and significand (mantissa) returned from fltXYexplode are the numerical values, not just the bit patterns. Informally, flt64explode(1.23 x 10^101) would return (false, 123000..., 101), where the significand has precisely 52 bits after the intial `1'.
2018-01-27Remove std.sleqOri Bernstein
We have std.eq. We still export a generic sleq for compatibility, but we don't need it or want it.
2017-12-26Fix void slice formatting.Ori Bernstein
Also cleans up agglomeration of unused variables.
2017-12-25Make the copy loop byte based.Ori Bernstein
No more pesky UTF8 restrictions in the input string.
2017-12-25Formatting as a state machine.Ori Bernstein
2017-11-28Format bodyless union without trailing space.snocl
Also fix some whitespace.
2017-10-29Implement graphemewidthS. Gilles
2017-09-10Fix 32 bit float formatting.Ori Bernstein
It works now.
2017-07-17Convert from `in` to `:`.Ori Bernstein
The winds of change are a-blowin.
2017-02-07Format minimum values correctly.Ori Bernstein
-x == -x; handle that right.
2016-10-26Fix floating point printing.Ori Bernstein
Right, we actually need to fill the trailing zeros.
2016-10-26Remove workaround for old compiler bug.Ori Bernstein
2016-10-10Add slice format join option.Ori Bernstein
You can remove the end delimiters and join the values in a slice when printing using the 'j=' specifier: std.fmt("{j= }\n", [1,2,3][:]) will output: 1 2 3 instead of: [1, 2, 3]
2016-09-24Correctly format zero floats.Ori Bernstein
2016-07-04Fix test output.Ori Bernstein
2016-05-17New syntax for casts.Ori Bernstein
2016-05-10Align union tag when entering subtype.Ori Bernstein
2016-02-01Add test for escaped strings.Ori Bernstein
2015-12-14Fix unit tests.Ori Bernstein
The language got a tad more restrictive.
2015-10-10Some API tweaks to make things match the docs.Ori Bernstein
2015-09-24Descend into complex structures to print them.Ori Bernstein
There are some really ugly hacks here, but it works.
2015-09-20Catch a few more edge cases.Ori Bernstein
2015-09-14Fix alignment of function args.Ori Bernstein
2015-09-14Expand testing for std.fmtOri Bernstein
2015-08-26Move Myrddin libs to lib/ subdirectory.Ori Bernstein