<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Marco,<br>
<br>
Does DrScheme allow you to evaluate anything in the interactions window
at all? I.e. if you do<br>
<br>
(+ 2 2)<br>
<br>
in the interactions window, does it report "4"? Similarly, does it
allow you to define a simple function in the defintions window and
evaluate it in the interactions window? I'm just wondering if
something more fundamental than testing is wrong here.<br>
<br>
Mike<br>
<br>
<br>
Marco Morazan wrote:
<blockquote
cite="mid:9b1fff280811121733n40ec4400hc6d0d8783d51017@mail.gmail.com"
type="cite">
<pre wrap="">This does not look promising. :-( I can not reproduce the behavior on
any of my machines. I have worked on the machine of my student and it
does not report anything about tests passing or not. It does not
complain about now knowing check-expect. It is just weird. I
personally unistalled and re-intalled DrScheme and no difference.
The student is running Windows Vista (as on one of my machines) on a
Sony Vaio. Does any of this matter?
If anyone has suggestions, I welcome them.
Marco
On Wed, Nov 12, 2008 at 5:32 PM, Matthias Felleisen
<a class="moz-txt-link-rfc2396E" href="mailto:matthias@ccs.neu.edu"><matthias@ccs.neu.edu></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I can't reproduce this result at all. I copied your code into an empty def
window and added the define-struct. I get this in the interactions window:
</pre>
<blockquote type="cite">
<pre wrap="">Welcome to DrScheme, version 4.1.2.4-svn11nov2008 [3m].
Language: Intermediate Student with lambda.
All tests passed!
</pre>
</blockquote>
<pre wrap="">(Of course the tests don't cover everything and the code doesn't follow the
design recipe. :-)
-- Matthias
On Nov 12, 2008, at 3:38 PM, Marco Morazan wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear All,
I have a student who wrote the following code:
; Oldest Generation
(define Petrona (make-child empty empty 'Petrona 1876 'Brown))
(define Petr (make-child empty empty 'Petr 1896 'Brown))
(define Lena (make-child empty empty 'Lena 1896 'Brown))
; Second Oldest Generation
(define Jose (make-child empty Petrona 'Jose 1895 'Brown))
(define Marina (make-child empty empty 'Marina 1910 'Brown))
(define Walter (make-child empty empty 'Walter 1912 'Blue))
(define Helen (make-child Petr Lena 'Helen 1917 'Brown))
; Third Oldest Generation
(define Marco2 (make-child Jose Marina 'Marco 1934 'Brown))
(define Doris (make-child Walter Helen 'Doris 1935 'Brown))
; Youngest Generation
(define Marco (make-child Marco2 Doris 'Marco 1967 'Brown))
;numanc: at -> num
(define (numanc an-at)
(cond [(empty? an-at) 0]
[else (+ (parents an-at) (numanc (child-mother an-at))
(numanc (child-father an-at)))]))
; parents at -> num
(define (parents an-at)
(cond
[(empty? an-at) 0]
[(and (empty? (child-mother an-at))(empty? (child-father
an-at))) 0]
[(or (empty? (child-mother an-at))(empty? (child-father
an-at))) 1]
[else 2]))
;examples
(check-expect (numanc Petrona) 0)
(check-expect (numanc Jose) 1)
(check-expect (numanc Marco2) 3)
(check-expect (numanc Marco) 9)
The output in the interactions window after hitting run is:
Welcome to DrScheme, version 4.1.2 [3m].
Language: Beginning Student with List Abbreviations; memory limit: 128
megabytes.
</pre>
<pre wrap="">As you can see, no indication of tests passing. Any suggestions? We
uninstalled and re-installed DrScheme. We explictily added testing.ss.
All to no avail.
--
Cheers,
Marco
_________________________________________________
PLT Educators mailing list
<a class="moz-txt-link-abbreviated" href="mailto:plt-edu@list.cs.brown.edu">plt-edu@list.cs.brown.edu</a>
<a class="moz-txt-link-freetext" href="http://list.cs.brown.edu/mailman/listinfo/plt-edu">http://list.cs.brown.edu/mailman/listinfo/plt-edu</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>