motivating the need for make-struct-type
This commit is contained in:
parent
b985efc28c
commit
e3aed9b884
|
@ -3,3 +3,4 @@
|
||||||
(require "../browser-harness.rkt")
|
(require "../browser-harness.rkt")
|
||||||
|
|
||||||
(test "hello.rkt" "hello.expected")
|
(test "hello.rkt" "hello.expected")
|
||||||
|
(test "simple-structs.rkt" "simple-structs.expected")
|
2
tests/more-tests/simple-structs.expected
Normal file
2
tests/more-tests/simple-structs.expected
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
3
|
||||||
|
4
|
6
tests/more-tests/simple-structs.rkt
Normal file
6
tests/more-tests/simple-structs.rkt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#lang planet dyoo/whalesong
|
||||||
|
(define-struct p (f r))
|
||||||
|
|
||||||
|
(define p1 (make-p 3 4))
|
||||||
|
(p-f p1)
|
||||||
|
(p-r p1)
|
Loading…
Reference in New Issue
Block a user