diff --git a/collects/tests/drracket/image-and-comment-box.rkt b/collects/tests/drracket/image-and-comment-box.rkt new file mode 100644 index 0000000000..a3dd39feb6 --- /dev/null +++ b/collects/tests/drracket/image-and-comment-box.rkt @@ -0,0 +1,476 @@ +#reader(lib"read.ss""wxme")WXME0108 ## +#| + This file uses the GRacket editor format. + Open this file in DrRacket version 5.1.2.3 or later to read it. + + Most likely, it was created by saving a program in DrRacket, + and it probably contains a program with non-text elements + (such as images or comment boxes). + + http://racket-lang.org/ +|# + 44 7 #"wxtext\0" +3 1 6 #"wxtab\0" +1 1 8 #"wximage\0" +2 0 8 #"wxmedia\0" +4 1 34 #"(lib \"syntax-browser.ss\" \"mrlib\")\0" +1 0 16 #"drscheme:number\0" +3 0 44 #"(lib \"number-snip.ss\" \"drscheme\" \"private\")\0" +1 0 36 #"(lib \"comment-snip.ss\" \"framework\")\0" +1 0 43 #"(lib \"collapsed-snipclass.ss\" \"framework\")\0" +0 0 19 #"drscheme:sexp-snip\0" +0 0 36 #"(lib \"cache-image-snip.ss\" \"mrlib\")\0" +1 0 68 +( + #"((lib \"image-core.ss\" \"mrlib\") (lib \"image-core-wxme.rkt\" \"mr" + #"lib\"))\0" +) 1 0 33 #"(lib \"bullet-snip.ss\" \"browser\")\0" +0 0 29 #"drscheme:bindings-snipclass%\0" +1 0 25 #"(lib \"matrix.ss\" \"htdp\")\0" +1 0 22 #"drscheme:lambda-snip%\0" +1 0 8 #"gb:core\0" +5 0 10 #"gb:canvas\0" +5 0 17 #"gb:editor-canvas\0" +5 0 10 #"gb:slider\0" +5 0 9 #"gb:gauge\0" +5 0 11 #"gb:listbox\0" +5 0 12 #"gb:radiobox\0" +5 0 10 #"gb:choice\0" +5 0 8 #"gb:text\0" +5 0 11 #"gb:message\0" +5 0 10 #"gb:button\0" +5 0 12 #"gb:checkbox\0" +5 0 18 #"gb:vertical-panel\0" +5 0 9 #"gb:panel\0" +5 0 20 #"gb:horizontal-panel\0" +5 0 33 #"(lib \"readable.ss\" \"guibuilder\")\0" +1 0 57 +#"(lib \"hrule-snip.rkt\" \"macro-debugger\" \"syntax-browser\")\0" +1 0 45 #"(lib \"image-snipr.ss\" \"slideshow\" \"private\")\0" +1 0 26 #"drscheme:pict-value-snip%\0" +0 0 38 #"(lib \"pict-snipclass.ss\" \"slideshow\")\0" +2 0 55 #"(lib \"vertical-separator-snip.ss\" \"stepper\" \"private\")\0" +1 0 18 #"drscheme:xml-snip\0" +1 0 31 #"(lib \"xml-snipclass.ss\" \"xml\")\0" +1 0 21 #"drscheme:scheme-snip\0" +2 0 34 #"(lib \"scheme-snipclass.ss\" \"xml\")\0" +1 0 10 #"text-box%\0" +1 0 32 #"(lib \"text-snipclass.ss\" \"xml\")\0" +1 0 15 #"test-case-box%\0" +2 0 1 6 #"wxloc\0" + 0 0 106 0 1 #"\0" +0 75 1 #"\0" +0 10 90 -1 90 -1 3 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 0 9 +#"Standard\0" +0 75 25 #"Bitstream Vera Sans Mono\0" +0 10 90 -1 90 -1 1 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 -1 -1 2 24 +#"framework:default-color\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 150 0 150 0 0 0 -1 -1 2 15 +#"text:ports out\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 150 0 150 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1.0 0 -1 -1 93 -1 -1 -1 0 0 0 0 0 0 0 0 0 1.0 1.0 1.0 255 0 0 0 0 0 -1 +-1 2 15 #"text:ports err\0" +0 -1 1 #"\0" +1.0 0 -1 -1 93 -1 -1 -1 0 0 0 0 0 0 0 0 0 1.0 1.0 1.0 255 0 0 0 0 0 -1 +-1 2 1 #"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 175 0 0 0 -1 -1 2 17 +#"text:ports value\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 175 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1.0 0 92 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1.0 1.0 1.0 34 139 34 0 0 0 -1 +-1 2 27 #"Matching Parenthesis Style\0" +0 -1 1 #"\0" +1.0 0 92 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1.0 1.0 1.0 34 139 34 0 0 0 -1 +-1 2 1 #"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 38 38 128 0 0 0 -1 -1 2 37 +#"framework:syntax-color:scheme:symbol\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 38 38 128 0 0 0 -1 -1 2 38 +#"framework:syntax-color:scheme:keyword\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 38 38 128 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 194 116 31 0 0 0 -1 -1 2 +38 #"framework:syntax-color:scheme:comment\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 194 116 31 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 41 128 38 0 0 0 -1 -1 2 37 +#"framework:syntax-color:scheme:string\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 41 128 38 0 0 0 -1 -1 2 39 +#"framework:syntax-color:scheme:constant\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 41 128 38 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 132 60 36 0 0 0 -1 -1 2 42 +#"framework:syntax-color:scheme:parenthesis\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 132 60 36 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 36 +#"framework:syntax-color:scheme:error\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 36 +#"framework:syntax-color:scheme:other\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 81 112 203 0 0 0 -1 -1 2 +38 #"drracket:check-syntax:lexically-bound\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 81 112 203 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 178 34 34 0 0 0 -1 -1 2 28 +#"drracket:check-syntax:set!d\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 178 34 34 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 68 0 203 0 0 0 -1 -1 2 31 +#"drracket:check-syntax:imported\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 68 0 203 0 0 0 -1 -1 2 47 +#"drracket:check-syntax:my-obligation-style-pref\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 178 34 34 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 116 0 0 0 0 -1 -1 2 50 +#"drracket:check-syntax:their-obligation-style-pref\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 116 0 0 0 0 -1 -1 2 48 +#"drracket:check-syntax:unk-obligation-style-pref\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 139 142 28 0 0 0 -1 -1 2 +49 #"drracket:check-syntax:both-obligation-style-pref\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 139 142 28 0 0 0 -1 -1 2 +26 #"plt:htdp:test-coverage-on\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 255 165 0 0 0 0 -1 -1 2 27 +#"plt:htdp:test-coverage-off\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 255 165 0 0 0 0 -1 -1 4 1 +#"\0" +0 70 1 #"\0" +1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1.0 1.0 1.0 1.0 1.0 1.0 0 0 0 0 0 0 +-1 -1 4 4 #"XML\0" +0 70 1 #"\0" +1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1.0 1.0 1.0 1.0 1.0 1.0 0 0 0 0 0 0 +-1 -1 2 1 #"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 128 0 0 0 0 -1 -1 2 37 +#"plt:module-language:test-coverage-on\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 128 0 0 0 0 -1 -1 2 1 +#"\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 128 0 0 0 -1 -1 2 38 +#"plt:module-language:test-coverage-off\0" +0 -1 1 #"\0" +1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 128 0 0 0 -1 -1 0 1 +#"\0" +0 75 25 #"Bitstream Vera Sans Mono\0" +0.0 10 90 -1 90 -1 1 -1 0 1 0 1 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 255 +255 255 1 -1 4 1 #"\0" +0 71 1 #"\0" +1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1.0 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4 1 #"\0" +0 -1 1 #"\0" +1.0 0 92 -1 -1 -1 -1 -1 0 0 0 0 0 1 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 255 +255 0 -1 -1 19 1 #"\0" +0 -1 1 #"\0" +1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 1 0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 0 0 0 +-1 -1 0 1 #"\0" +0 -1 1 #"\0" +1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 1 0 0.0 0.0 0.0 1.0 1.0 1.0 0 0 0 0 0 0 +-1 -1 15 1 #"\0" +0 -1 1 #"\0" +1.0 0 -1 -1 -1 -1 -1 -1 0 0 0 0 1 0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 0 0 0 +-1 -1 0 1 #"\0" +0 -1 1 #"\0" +0.0 12 -1 -1 -1 -1 -1 -1 0 0 1 0 0 0 1.0 1.0 1.0 1.0 1.0 1.0 0 0 0 0 0 0 +-1 -1 2 1 #"\0" +0 -1 1 #"\0" +0.0 12 -1 -1 -1 -1 -1 -1 0 0 1 0 0 0 1.0 1.0 1.0 1.0 1.0 1.0 0 0 0 0 0 0 +-1 -1 0 18 0 4 3 85 +( + #";; The first three lines of this file were inserted by DrRacket. The" + #"y record metadata" +) 0 0 4 29 1 #"\n" +0 0 4 3 85 +( + #";; about the language level of this file in a form that our tools ca" + #"n easily process." +) 0 0 4 29 1 #"\n" +0 0 4 3 174 +( + #"#reader(lib \"htdp-beginner-reader.ss\" \"lang\")((modname tmp-img) " + #"(read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constru" + #"ctor repeating-decimal #f #t none #f ())))" +) 0 0 4 29 1 #"\n" +0 7 13 4 0 0 0 1 0 20 3 1 #"1" +0 0 0 0 4 29 1 #"\n" +0 0 22 3 1 #"(" +0 0 15 3 6 #"define" +0 0 4 3 1 #" " +0 0 14 3 1 #"x" +0 0 4 3 1 #" " +0 2 17 4 1 #"\0" +2 -1.0 -1.0 0.0 0.0 0 3 500 +( + #"\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0%\0\0\0?\b" + #"\6\0\0\0g\323\1\376\0\0\0\6bKGD\0\377\0\377\0\377\240\275\247" + #"\223\0\0\4\255IDATh\201\355\231OH\34w\24\307?\277\31\263\272\256" + #"\177h\273\246\e\335\246J\215\233\320\4" + #"EP\b\330\213\210\222kB\220\36z\222\340\301\266!-*\361\20\360 R\222" + #"\322\213\347\"-x\364T(\24r\251\202\rx\310)(!\322\24\202\244F\245" + #"\325L\235qg_\17\353nv\2633\273\263\316\272n\241_x,\363\366\367\347" + #";\357\275\337\333\367~\213x\4 J" + #"\251\274\2\310\375\373\367\275.\351\n\215" + #"\nDE\222\252*4@)\225\226r\341\277i)7$c\337\273\276\30\24M" + #"JD\250\257\255\346b\353\331\34\2\206" + #"\361\232H\270\241\374\244\0\272:\232\371" + #"\365\373/\301\266!\223\227mAk\367\351\220\2@\344H\336\326\371\346t\e\272\202\246\a\322\317\326\241" + #"\315\345\217\"G\201uJ\244~\370\356\v\260M\220\4\240@\1v\2\16\16O" + #"\217\24\227n%?\177\373\6\224~bD2Q\221\201\376?)\257\360\236\321\353" + #"j\2221\245\200x\34\366\367I>d\3006Al\337\244\2248\324\32\213\213\213" + #"\0\\\277~=\255\373\372\323O\0\205uh\21\213]\344\363;w \221\310N" + #"\rbC\303y\250}\337\37+\267&!\237\364\365\3659\26\374\246i\212i\232" + #"\276\e\207\34\367\371-{\227\227\227\351" + #"\357\357\367>a\365[\260\217\336W\323\241\347\253\342\2]\3234Z[[io" + #"ow\35\263\275\275\235U\327\273I\323;ul\3772\r\16F(" + #"\252t\t\6\203,--\21\215F]\307\244,\235\317\342\"\222<" +) 500 +( + #"\"\266\5q3\371\v\201\200\350\336I" + #")\245\222\v\225\260\2439S\23\242\346\312044@\"ub\225wR\267\207" + #"\373\270=\334\207a\36\22\371\363g\330\1\336\275\4\321>\3279N/ \"\351" + #"\212\243\246\266\216`\363e\320r#(M*\237\25\"g\ei\375\370<\354\377" + #"\3\346\16\30\a\20jv\34\233\3324\221H\344|7;;\313\330\330\30\226e" + #"\241\353:\232\3!\200*O.\211'\300\212\203e'\23\250V\5\312y\301P" + #"(DGG\a\301`0K\277\271\271Ioo/\365\365\365\5\267\363\26\350\n" + #"\262\vr\367Zj``\200\365\365uO\313\272A\233\233\233cll,\377(" + #"]K\22K\304\223A\231\260\217\352\253" + #"\23\202\210\310\326\326\226c\346N]\357" + #"\264\204C\262\364\323\217\"\361W\"\177" + #"\377!\362\327\357'\232\3215\200p8" + #"\214\210p\357\336\275\34\322J)^\274" + #"z\315\213\3753\240\277\a\365\37@\303" + #"\207\216/\30\b\4\34\365\305\"+Z\247\247\247K\262\250_Tv=U\212l" + #"mY\226\3575\300\203\245\344\4[)7\344\315S\"BOO\0177o\336\244" + #"\263\263\263\\\234\336\24y\270\24t###\236\217rISB\312*.\244\313" + #"`\232ld\271opp\20]\177\323p\32\206ASS\223\353\344\314\237\223X" + #",\306\263g\317\210D\"\376\363\225\27" + #"s\2\242\353zA\1\344\301\203\a\245s_!\330\266]P\0\36=z\304\223" + #"'O|\31\312\261\305r\34X\202<\3465>\313\232\321\257^\275\312\344\344d" + #"\341\201^\375L\201^\260\30\331\330\330" + #"\310\273WY\335\227B8\34\246\266\266" + #"\226\347\317\237;\357U\nR\243\243\243" + #"\264\265\265qx\370\346\"M\3234\342\3618ssslmm\271" + #"\316\235\232\232bff&[Y\n\367\355\356\356\272\316\353\357\357\317;" +) 272 +( + #"wjj*g\316\361/\367=\342\341\303\207Y\317^\302\340X\247O)E0" + #"\30\244\272\272\332\363F\305\340X\244\206" + #"\207\2071\f\203\203\203\3D\204\306\306" + #"\306\323'\345\245w\363\3O\244\312\371" + #"\257(T@\215\276\271\271\231\243\323\224R\f\r\r\001011\341x\227t\222" + #"x\371\362e\216\356\304S\302\333\20\21" + #"\326\327\3271M\223@ \300\352\352*]]]<~\374\270xR\261X\214s" + #"\347\316\261\263\263\303\205\v\27|\21\213" + #"F\243\354\355\355\21\n\205X[[C\327u\272\273\273\323\345OVF\37\37\37" + #"w\315\274O\237>\365\232\374\v\342\356" + #"\335\273\351u'''\3353\372\302\302\2mmm\314\317\317\347\334-\31\206A" + #"$\22\361e\235L\334\270q\203\226\226" + #"\26 Y\316\344 \305\16\220\225\225\225\222Y\303\17\262H]\273vMfff" + #"\304\262\254\323\344\224]O\245\216\277\234B[\225\211\177\1\271" + #"\224\v`\203\340\317\327\0\0\0\0IEND\256B`\202" +) 0 0 22 3 1 #")" +0 0 4 29 1 #"\n" +0 0 20 3 1 #"1" +0 0 4 29 1 #"\n" +0 0 diff --git a/collects/tests/drracket/teaching-lang-executable-creation.rkt b/collects/tests/drracket/teaching-lang-executable-creation.rkt new file mode 100644 index 0000000000..9cf21053ec --- /dev/null +++ b/collects/tests/drracket/teaching-lang-executable-creation.rkt @@ -0,0 +1,35 @@ +#lang racket/base +(require lang/private/create-htdp-executable + racket/file + racket/system) +(define tmpfile (make-temporary-file "executable-creation-test~a")) + +(create-htdp-lang-executable (collection-file-path + "image-and-comment-box.rkt" + "tests" + "drracket") + tmpfile + '(lib "htdp-beginner-reader.ss" "lang")) + +(define sp (open-output-string)) +(define res + (let/ec k + (parameterize ([error-escape-handler (λ () (k #f))]) + (parameterize ([current-output-port sp] + [current-error-port sp] + [current-input-port (open-input-string "")]) + (case (system-type) + [(macosx) + (define-values (base name dir) (split-path tmpfile)) + (system + (path->string + (build-path tmpfile "Contents" "MacOS" name)))] + [(unix) + (system (path->string tmpfile))] + [(windows) + (error 'teaching-lang-executable-creation.rkt "test not supported")]))))) +(delete-directory/files tmpfile) + +(define expected "1\n") +(unless (and res (equal? (get-output-string sp) expected)) + (eprintf "TEST FAILED; res ~s\n~a\n" res (get-output-string sp)))