Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Programming exercise/challenge Date: Sat, 12 Dec 2020 19:24:02 -0800 Organization: A noiseless patient Spider Lines: 63 Message-ID: <86lfe21j8t.fsf@linuxsc.com> References: <86wnxwkyol.fsf@linuxsc.com> <86sg8f43fb.fsf@linuxsc.com> <20201209145102.a4adfe0b03a547724b4a7d5b@gmail.com> <86o8j24vt7.fsf@linuxsc.com> <20201210023321.81eb748838edb6118caa3168@gmail.com> <20201212234553.96c9cb63fd89d74109eddcb2@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="b9b2ee0d4c4a5c7f42f81fa91d7a0e4d"; logging-data="18355"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TTb/UIrKo1p+3q3q/aeDlrPHI+cMsOb0=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:VwdVNq/DUJtOg8grO8qkKEF+QeU= sha1:KZ+mGqN7SInKgHPvCCEtczLTZ+k= Xref: csiph.com comp.lang.c:157244 Anton Shepelev writes: > I wrote: > >> And I will come up with some great test cases in the >> process! > > Well, maybe not so great, after all, but here they are. Each > test is between the `---' markers, so that the first one > denotes empty input and the second an empty line: > > --- > --- > > --- > / > --- > \ > --- > no newline at the end: > \ > \ > --- > a newline at the end: > \ > \ > > --- > \ > \ > /\ > \ > \ > --- > \ > \ > /\ > \ > \ > /\ > a > --- > \ > \ > /\ > \ > \ > a > --- > a/\ > \ > \ > \ > b > --- > a/\ > \ > \ > \ > /b > --- Thank you for these.