enh
2017-05-13 19:36:44 UTC
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(-)
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(-)