[Toybox] [PATCH] Fix various seq bugs.
enh
enh at google.com
Sat May 13 12:36:44 PDT 2017
Use the precision of the inputs to determine the default output. This was the
reported bug. (Two existing tests were failing on the host because of this,
so I've fixed those tests and added more tests for other special cases.)
Reject invalid inputs.
Match GNU/busybox behavior with 0 increment. (An existing test was failing on
the host because of this.)
Also remove a couple of locals that were duplicating globals.
Bug: http://b/37792952
---
tests/seq.test | 23 +++++++++++++++---
toys/lsb/seq.c | 74 ++++++++++++++++++++++++++++++++++++++--------------------
2 files changed, 69 insertions(+), 28 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-various-seq-bugs.patch
Type: text/x-patch
Size: 6651 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170513/3a36c76e/attachment-0002.bin>
More information about the Toybox
mailing list