Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Scheme > Re: R6RS test s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 15 of 77 Topic 4625 of 4665
Post > Topic >>

Re: R6RS test suite

by Matthew Flatt <mflatt@[EMAIL PROTECTED] > Jul 23, 2008 at 08:53 AM

On Jul 23, 8:59=A0am, William D Clinger <cesur...@[EMAIL PROTECTED]
> wrote:
> In tests/r6rs/io/****ts.sls, I suggest changing the last
> three calls to open-file-input/output-****t to use a
> transcoder with the latin-1-codec instead of utf-8-codec.

Done in SVN.

> The other change I suggest would reduce the code size of
> tests/r6rs/arithmetic/fixnums.sls. =A0Its large code size
> is caused by this code:
>
> =A0 =A0 ;; If you put N numbers here, it expads to N^3 tests!
> =A0 =A0 (carry-tests 0
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[0 1 2 -1 -2 38734 -3843 2484598
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -348732487 (greatest-fixnum)
(least-f=
ixnum)])
>
> The following change would reduce those 1331 tests to
> 500 without losing much in the way of test coverage:
>
> =A0 =A0 (carry-tests 0 [0 1 2 -1 -2])
>
> =A0 =A0 (carry-tests 0 [2 -1 -2 38734 -3843])
>
> =A0 =A0 (carry-tests 0 [2 -1 -2 (greatest-fixnum) (least-fixnum)])
>
> =A0 =A0 (carry-tests 0 [-3843 2484598 -348732487
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (greatest-fixnum)
(least-fixnum)]=
)

I'm less sold on this one. Don't we want tests combining
`(greatest-fixnum)' with 0 and with 1, for example?

In fact, in SVN, I've made it worse. The `carry-tests' form was
meant to expand to tests of `fx+/carry' and `fx-/carry' in addition
to `fx*/carry'. So, now there are 3 times as many tests, instead of
1/3 as many tests. And even if I had re-organized as above, adding the
missing operators would leave us with more tests than before.

But it does seem unlikely that 3993 tests are really necessary.
Any ideas that will shrink the set of tests enough, even with the
added operators?


Thanks,
Matthew
 




 77 Posts in Topic:
R6RS test suite
Matthew Flatt <mflatt@  2008-07-22 15:08:55 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-22 17:58:11 
Re: R6RS test suite
William D Clinger <ces  2008-07-22 19:11:25 
Re: R6RS test suite
Abdulaziz Ghuloum <agh  2008-07-22 19:10:14 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-23 03:32:32 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-23 04:22:43 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-23 04:44:17 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-23 05:09:49 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-23 05:35:23 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-23 06:08:30 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-23 06:20:56 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-23 07:21:25 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-23 07:22:39 
Re: R6RS test suite
William D Clinger <ces  2008-07-23 07:59:43 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-23 08:53:30 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-23 09:21:58 
Re: R6RS test suite
William D Clinger <ces  2008-07-23 12:08:12 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-23 13:19:30 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-23 13:20:22 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-23 14:03:10 
Re: R6RS test suite
y.fujita.lwp@[EMAIL PROTE  2008-07-26 01:49:14 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-26 05:32:50 
Re: R6RS test suite
samth <samth0@[EMAIL P  2008-07-26 05:59:32 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-26 06:25:13 
Re: R6RS test suite
y.fujita.lwp@[EMAIL PROTE  2008-07-26 07:26:27 
Re: R6RS test suite
William D Clinger <ces  2008-07-29 19:11:59 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-30 00:43:17 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-31 12:30:08 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-31 12:50:51 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-31 13:18:55 
Re: R6RS test suite
Matthew Flatt <mflatt@  2008-07-31 13:45:30 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-07-31 15:21:20 
Re: R6RS test suite
y.fujita.lwp@[EMAIL PROTE  2008-08-01 00:54:28 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-01 12:13:40 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-04 12:28:32 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-04 12:59:15 
Re: R6RS test suite
Abdulaziz Ghuloum <agh  2008-08-04 13:31:25 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-08 14:24:19 
Re: R6RS test suite
William D Clinger <ces  2008-08-08 15:24:49 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-08 15:38:35 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-09 15:34:12 
Re: R6RS test suite
William D Clinger <ces  2008-08-09 22:19:06 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-10 04:05:51 
Re: R6RS test suite
William D Clinger <ces  2008-08-10 07:55:36 
Re: R6RS test suite
Brad Lucier <lucier@[E  2008-08-10 22:24:22 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-11 00:05:50 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-11 03:00:48 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-11 03:44:41 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-11 04:38:29 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-11 04:57:32 
Re: R6RS test suite
William D Clinger <ces  2008-08-11 06:41:30 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-11 06:55:14 
Re: R6RS test suite
Abdulaziz Ghuloum <agh  2008-08-11 10:52:24 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-11 11:20:56 
Re: R6RS test suite
Abdulaziz Ghuloum <agh  2008-08-11 13:29:51 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-11 14:18:46 
Re: R6RS test suite
Brad Lucier <lucier@[E  2008-08-11 14:23:13 
Re: R6RS test suite
Abdulaziz Ghuloum <agh  2008-08-11 14:42:49 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-11 15:03:35 
Re: R6RS test suite
William D Clinger <ces  2008-08-11 15:57:39 
Re: R6RS test suite
William D Clinger <ces  2008-08-11 16:07:31 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-11 17:05:42 
Re: R6RS test suite
Abdulaziz Ghuloum <agh  2008-08-11 17:23:04 
Re: R6RS test suite
"pnkfelix@[EMAIL PRO  2008-08-11 18:09:28 
Re: R6RS test suite
William D Clinger <ces  2008-08-11 20:19:14 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-11 23:45:40 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-12 05:17:32 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-12 12:17:26 
Re: R6RS test suite
Brad Lucier <lucier@[E  2008-08-12 17:07:55 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-12 18:38:35 
Re: R6RS test suite
William D Clinger <ces  2008-08-12 21:31:46 
Re: R6RS test suite
Bill <schottstaedt@[EM  2008-08-13 07:10:46 
Re: R6RS test suite
William D Clinger <ces  2008-08-13 09:47:08 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-14 02:34:23 
Re: R6RS test suite
William D Clinger <ces  2008-08-14 05:04:43 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-14 05:23:51 
Re: R6RS test suite
leppie <xacc.ide@[EMAI  2008-08-14 05:25:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 13:13:13 CDT 2008.