<p dir="ltr">Is the change to the native-pkgs sha1 intentional?</p>
<p dir="ltr">Sam</p>
<div class="gmail_quote">On Sep 8, 2013 3:04 AM, <<a href="mailto:stchang@racket-lang.org">stchang@racket-lang.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
stchang has updated `master' from 672e909880 to 7eaee796e1.<br>
<a href="http://git.racket-lang.org/plt/672e909880..7eaee796e1" target="_blank">http://git.racket-lang.org/plt/672e909880..7eaee796e1</a><br>
<br>
=====[ 3 Commits ]======================================================<br>
Directory summary:<br>
92.8% pkgs/racket-pkgs/racket-test/tests/racket/<br>
<br>
~~~~~~~~~~<br>
<br>
060ffeb Stephen Chang <<a href="mailto:stchang@racket-lang.org">stchang@racket-lang.org</a>> 2013-09-08 01:48<br>
:<br>
| add for/X tests for multi-loop break<br>
:<br>
M native-pkgs | 2 +-<br>
M pkgs/racket-pkgs/racket-test/tests/racket/for.rktl | 6 ++++++<br>
<br>
~~~~~~~~~~<br>
<br>
b685746 Stephen Chang <<a href="mailto:stchang@racket-lang.org">stchang@racket-lang.org</a>> 2013-09-08 02:00<br>
:<br>
| add for/X tests for outer-loop #:final condition<br>
|<br>
| - make sure innermost loop is executed only one more time<br>
:<br>
M pkgs/racket-pkgs/racket-test/tests/racket/for.rktl | 6 ++++++<br>
<br>
~~~~~~~~~~<br>
<br>
7eaee79 Stephen Chang <<a href="mailto:stchang@racket-lang.org">stchang@racket-lang.org</a>> 2013-09-08 03:03<br>
:<br>
| add more for/X tests<br>
|<br>
| - #:break and #:final in body with exprs in between<br>
| - both #:break and #:final<br>
| - skipped #:final<br>
:<br>
M .../racket-pkgs/racket-test/tests/racket/for.rktl | 25 ++++++++++++++++++++<br>
<br>
=====[ Overall Diff ]===================================================<br>
<br>
native-pkgs<br>
~~~~~~~~~~~<br>
--- OLD/native-pkgs<br>
+++ NEW/native-pkgs<br>
@@ -1 +1 @@<br>
-Subproject commit 5f391155f276da25df85081cf8c80a9760a404b0<br>
+Subproject commit f367c0c4b05b91401d68b0180b416d616b31720d<br>
<br>
pkgs/racket-pkgs/racket-test/tests/racket/for.rktl<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
--- OLD/pkgs/racket-pkgs/racket-test/tests/racket/for.rktl<br>
+++ NEW/pkgs/racket-pkgs/racket-test/tests/racket/for.rktl<br>
@@ -383,4 +383,41 @@<br>
(define-sequence-syntax in-X* (lambda () #'in-X) (lambda (stx) #f))<br>
(for/list ([x (in-X* #:x '(1 2 3))]) x)))<br>
<br>
+<br>
+;; extra tests for #:break and #:final<br>
+(test '((0 0) (0 1) (1 0) (1 1)) 'multi-level-break<br>
+ (for*/list ([i 4] [j 2] #:break (= i 2)) (list i j)))<br>
+(test '((1 0 0) (1 0 1) (1 1 0) (1 1 1)) 'multi-level-break<br>
+ (for/list ([i 5] #:when (odd? i) [j 2] #:when #t [k 2] #:break (= i 3))<br>
+ (list i j k)))<br>
+(test '((0 0) (0 1) (1 0) (1 1) (2 0)) 'outer-loop-final<br>
+ (for*/list ([i 4][j 2] #:final (= i 2)) (list i j)))<br>
+(test '((0 0) (0 1) (1 0) (1 1) (2 0)) 'outer-loop-final<br>
+ (for/list ([i 4] #:final (= i 2) [j 2]) (list i j)))<br>
+<br>
+(test '((0 0) (0 1) (1 0) (1 1)) 'break-and-final<br>
+ (for*/list ([i 4][j 2] #:final (= i 2) #:break (= i 2)) (list i j)))<br>
+<br>
+(test '((0 0) (0 1) (1 0) (1 1)) 'break-and-final<br>
+ (for*/list ([i 4][j 2] #:break (= i 2) #:final (= i 2)) (list i j)))<br>
+<br>
+(test '((0 1) (1 1)) 'skipped-final<br>
+ (for*/list ([i 4][j 2] #:final (= i 2) #:unless (= j 0)) (list i j)))<br>
+<br>
+;; check #:break and #:final in body with exprs in between<br>
+(test (list 0 1) 'nested-body-break<br>
+ (for/list ([i 4]) (define j (add1 i)) #:break (= j 3) i))<br>
+(test (list 0 1 2) 'nested-body-final<br>
+ (for/list ([i 4]) (define j (add1 i)) #:final (= j 3) i))<br>
+(test '((0 0) (0 1) (1 0) (1 1)) 'nested-body-break-and-final<br>
+ (for*/list ([i 4][j 2])<br>
+ (define k i) #:final (= k 2)<br>
+ (define m i) #:break (= m 2)<br>
+ (list i j)))<br>
+(test '((0 0) (0 1) (1 0) (1 1)) 'nested-body-break-and-final<br>
+ (for*/list ([i 4][j 2])<br>
+ (define m i) #:break (= m 2)<br>
+ (define k i) #:final (= k 2)<br>
+ (list i j)))<br>
+<br>
(report-errs)<br>
</blockquote></div>