moved test suite to test/ directory, minor change to try to understand normalization bug
svn: r15771
This commit is contained in:
parent
efbd58d93e
commit
5b6f0381fa
|
@ -693,20 +693,21 @@ and they all have good sample contracts. (It is amazing what we can do with kids
|
||||||
;; see pin-line in slideshow
|
;; see pin-line in slideshow
|
||||||
;; the initial strings in the second instance of add-curve are like the strings in add-line
|
;; the initial strings in the second instance of add-curve are like the strings in add-line
|
||||||
|
|
||||||
(let* ([first (rectangle 100 10 'solid 'red)]
|
(normalize-shape
|
||||||
[second
|
(make-rotate
|
||||||
(overlay/places 'center
|
|
||||||
'center
|
|
||||||
first
|
|
||||||
(rotate/places 'center 'center
|
|
||||||
(* pi 1/4)
|
(* pi 1/4)
|
||||||
first))]
|
(make-translate
|
||||||
[third
|
100 100
|
||||||
(overlay/places 'center
|
(make-rotate
|
||||||
'center
|
(* pi 1/4)
|
||||||
(frame second)
|
(make-translate
|
||||||
(rotate/places 'center 'center
|
100 100
|
||||||
(* pi 1/8)
|
(picture-shape (rectangle 100 10 'solid 'red))))))
|
||||||
(frame second)))])
|
void)
|
||||||
(show-picture (frame (rotate (* pi 1/8)
|
|
||||||
(rotate (* pi 1/8) first)))))
|
(make-translate
|
||||||
|
(* (sqrt 2) 100 2)
|
||||||
|
0
|
||||||
|
(make-rotate
|
||||||
|
(* pi 1/2)
|
||||||
|
(picture-shape (rectangle 100 10 'solid 'red))))
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#lang scheme/base
|
#lang scheme/base
|
||||||
(require "picture.ss"
|
(require "../private/picture.ss"
|
||||||
scheme/math
|
scheme/math
|
||||||
tests/eli-tester)
|
tests/eli-tester)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user