chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] spock tests


From: Mario Domenech Goulart
Subject: Re: [Chicken-users] spock tests
Date: Fri, 07 Sep 2012 18:26:39 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

On Fri, 07 Sep 2012 18:18:05 -0400 Mario Domenech Goulart <address@hidden> 
wrote:

> On Sat, 08 Sep 2012 00:01:20 +0200 (CEST) Felix <address@hidden> wrote:
>
>> There has been a new version of Spock (0.9) (that Scheme->JS compiler
>> thingy) that uses a slightly changed unwinding strategy ("return"
>> instead of "throw"), which promises better compatibility with stupid
>> browsers and flaky JS engines.
>
> Very nice!
>
>
>> If you have a minute, please point your browser to
>>
>>   http://www.call-with-current-continuation.org/spock/test.html
>>
>> and
>>
>>   http://www.call-with-current-continuation.org/spock/threads.html
>>
>> The former takes quite a while to run, the latter needs canvas
>> support.  I tested with Conkeror 0.9.1 and Firefox 3.6.3, which seem
>> to run both tests OK. I would be very interested to see whether these
>> work or fail for you, and on which browsers (IE in particular).
>
> I run the tests on the following browsers:
>
> - Chromium 18.0.1025.168
> - Firefox 15
> - IE 6
> - IE 8
>
>
> For test.html, I get (same results on all browsers):
>
>     correct examples : 156
>     wrong examples : 1
>
> I think the wrong example is:
>
>     (string->symbol #t) ==> #t
>     BUT EXPECTED #f
>
> On all browsers I get a warning like:
>
>     ReferenceError: ____25min is not defined

Hmmm.  Shawn mentioned that he gets

   (every-of #t)
   => #f ; *** wrong ***, desired result:
   => #t

I get that too, but since the test reported one wrong result and I saw
the string->symbol failure, I stopped there.

So, it seems that there are three problems:

- (every-of #t) => #f
- (string->symbol #t) => #t
- the wrong examples counter. :-)

Shouldn't (string->symbol #t) raise an error?

BTW, I used Chromium and Firefox on Linux.

Best wishes.
Mario
-- 
http://parenteses.org/mario



reply via email to

[Prev in Thread] Current Thread [Next in Thread]