If you see code like this, you know something's quite wrong
authortb <tb@openbsd.org>
Sat, 6 Aug 2016 14:41:14 +0000 (14:41 +0000)
committertb <tb@openbsd.org>
Sat, 6 Aug 2016 14:41:14 +0000 (14:41 +0000)
commit91bad9411e52969bd1f503acda86b305538ff9f4
tree1e74bda8b89376e1713f5078993eaba8a24c1f13
parent609b7ea737ed30ce3cf943501f286d1861d0e856
If you see code like this, you know something's quite wrong
(present in some form since r1.1, still present in r1.31):

229                 case 013:
230                         if (randomize)
231                                 begin = BEGIN_DEF;
232                         else if (reps == 0)
233                                 errx(1, "Must specify begin if reps == 0");
234                         begin = ender - reps * s + s;

Add two tests that check for the intended behavior.
regress/usr.bin/jot/regress.rdhhh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.rhdhh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.sh