From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.devel Subject: Re: problem with trailing comment in repl Date: Mon, 14 Feb 2011 21:42:15 -0500 Message-ID: References: <87r5beb7dg.fsf@gnu.org> <8739ntbd8a.fsf@gnu.org> <87sjvrkjvq.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1297737750 17892 80.91.229.12 (15 Feb 2011 02:42:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 02:42:30 +0000 (UTC) Cc: guile-devel@gnu.org To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Feb 15 03:42:25 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpArw-0004ZJ-NE for guile-devel@m.gmane.org; Tue, 15 Feb 2011 03:42:24 +0100 Original-Received: from localhost ([127.0.0.1]:33041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpArw-0001yg-BZ for guile-devel@m.gmane.org; Mon, 14 Feb 2011 21:42:24 -0500 Original-Received: from [140.186.70.92] (port=55320 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpArp-0001yW-OM for guile-devel@gnu.org; Mon, 14 Feb 2011 21:42:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpAro-00082h-OL for guile-devel@gnu.org; Mon, 14 Feb 2011 21:42:17 -0500 Original-Received: from mail-yi0-f41.google.com ([209.85.218.41]:49378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpAro-00082K-LH; Mon, 14 Feb 2011 21:42:16 -0500 Original-Received: by yia25 with SMTP id 25so2647287yia.0 for ; Mon, 14 Feb 2011 18:42:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5GMbP1oZj6w7oRzdVfseuzNCVKuZJkJg/nKa9To0Suo=; b=oME/874vW3eoG+SnRT9a3c6+UmGnqgpS8pgNqo2CZgjgmfasNVoI2VM/y8vfTLe0Fs 92VmDPIfuPP4+2zQI2d2iOJiKHe5XIjpoL4VTQ/xR1AQ47X/LQBwz4GHSzM7ogrfxXWW 3NzZEY11yVDxYyViByLGY3n/FN06x386XymEc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=RsN5NPUh8/zcpkGUCWetxcpS03osiSQIj1panlGEw/aVZ7tA7HlE6Y9qlTG4w/SwfA zSWNNpuOLrCgtOaEjl2uWCzlW2Th+uj/D2aNM2kcIq8F8RRCRSQ5+nhQe8xE7hpI6iIt 0CRenoRt3rZm/c1HRZ2jriiOXqCqM6NxV4LyI= Original-Received: by 10.150.220.8 with SMTP id s8mr4324163ybg.330.1297737735061; Mon, 14 Feb 2011 18:42:15 -0800 (PST) Original-Received: by 10.147.40.5 with HTTP; Mon, 14 Feb 2011 18:42:15 -0800 (PST) In-Reply-To: <87sjvrkjvq.fsf@gnu.org> X-Google-Sender-Auth: Ru3_DFPSTR761eEM83S9gTsGSr8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.218.41 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11626 Archived-At: Hello, > Nice! =A0Can you add a test case? I've thought about it, and I'm not sure how to do it well. The trouble is that this only applies to the REPL, not scripts. So a test would have to wrap the REPL in something and make sure its output is right. I might be able to do that, but if I just compared the output to the string I expected, the test would fail if the output format changed at all, which seems excessively fragile to me. And I'm not sure how to test it otherwise, because the REPL catches exceptions, so I can't just run the REPL and see if it throws one. Could someone help me? Thanks, Noah