Before I did the project, I was still confused about writing the (check-expect) stuff, even though I watched the "check-expect" video many times. But not, after doing the project, I got a clear idea about writing the (check-expect) because I practiced writing the "check-time" many times in the project. Hoever, I still got one question.
Im not quite sure about how to write the "check-expect" about this one.
; stop? : clocktime -> boolean
; Is c-stop/go a stop sign:
; !!! create two (check-expect ...) expressions for stop;
; insert them before the definition
(define (stop? c) (equal? (clocktime-stop/go c) STOP))
I tried many times but it still did not work :(
Anyway, this project helped me a lot getting prepared the term-test on Wednesday.
Wish me good luck on the test
No comments:
Post a Comment