From 6afc27a829363e44b20adbf13fb13c585ef3da12 Mon Sep 17 00:00:00 2001 From: hobbitqia <861394755@qq.com> Date: Tue, 1 Aug 2023 20:58:45 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=20control=20?= =?UTF-8?q?=E7=9A=84=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/control/break/break_32_1.wasm | Bin 0 -> 242 bytes test/control/break/break_32_2.wasm | Bin 0 -> 263 bytes test/control/if/if_32_1.wasm | Bin 0 -> 166 bytes test/control/if/if_32_2.wasm | Bin 0 -> 166 bytes test/control/if/if_32_3.wasm | Bin 0 -> 179 bytes test/control/if/if_32_4.wasm | Bin 0 -> 179 bytes test/control/if/if_32_5.wasm | Bin 0 -> 179 bytes test/control/if/if_64_1.wasm | Bin 0 -> 166 bytes test/control/if/if_64_2.wasm | Bin 0 -> 166 bytes test/control/if/if_64_3.wasm | Bin 0 -> 179 bytes test/control/if/if_64_4.wasm | Bin 0 -> 179 bytes test/control/if/if_64_5.wasm | Bin 0 -> 179 bytes test/control/loop/for_32_1.wasm | Bin 0 -> 155 bytes test/control/loop/for_32_2.wasm | Bin 0 -> 174 bytes test/control/loop/for_32_3.wasm | Bin 0 -> 184 bytes test/control/loop/for_32_4.wasm | Bin 0 -> 229 bytes test/control/loop/for_32_5.wasm | Bin 0 -> 168 bytes test/control/loop/for_32_6.wasm | Bin 0 -> 242 bytes test/control/loop/for_32_7.wasm | Bin 0 -> 263 bytes test/control/loop/for_64_1.wasm | Bin 0 -> 156 bytes test/control/loop/for_64_2.wasm | Bin 0 -> 159 bytes test/control/loop/while_32_1.wasm | Bin 0 -> 164 bytes test/control/loop/while_64_1.wasm | Bin 0 -> 171 bytes test/test.py | 27 +++++++++++++++++++++++++++ 24 files changed, 27 insertions(+) create mode 100644 test/control/break/break_32_1.wasm create mode 100644 test/control/break/break_32_2.wasm create mode 100644 test/control/if/if_32_1.wasm create mode 100644 test/control/if/if_32_2.wasm create mode 100644 test/control/if/if_32_3.wasm create mode 100644 test/control/if/if_32_4.wasm create mode 100644 test/control/if/if_32_5.wasm create mode 100644 test/control/if/if_64_1.wasm create mode 100644 test/control/if/if_64_2.wasm create mode 100644 test/control/if/if_64_3.wasm create mode 100644 test/control/if/if_64_4.wasm create mode 100644 test/control/if/if_64_5.wasm create mode 100644 test/control/loop/for_32_1.wasm create mode 100644 test/control/loop/for_32_2.wasm create mode 100644 test/control/loop/for_32_3.wasm create mode 100644 test/control/loop/for_32_4.wasm create mode 100644 test/control/loop/for_32_5.wasm create mode 100644 test/control/loop/for_32_6.wasm create mode 100644 test/control/loop/for_32_7.wasm create mode 100644 test/control/loop/for_64_1.wasm create mode 100644 test/control/loop/for_64_2.wasm create mode 100644 test/control/loop/while_32_1.wasm create mode 100644 test/control/loop/while_64_1.wasm diff --git a/test/control/break/break_32_1.wasm b/test/control/break/break_32_1.wasm new file mode 100644 index 0000000000000000000000000000000000000000..570c0fefa635f0ccac0a8db3231d80f408a25c70 GIT binary patch literal 242 zcmX}kKMKMy9L4eXlKQt4JVM$lc!73OL_C0t7IbK!D(d2tih_gS3A~-xaPXHX4k0gJ zJ_O~VCIH@>rh!^2=jfK8)0Ysy=;{Y|Kr1AI?XyqlJpHBH^}62fPYT_|d|0klRRu(K zS#7}nLnPEKa6V2`Fvg$ zK-PJ=2VMT!65+GWl@z7_c0ygvNNg8*3X}4POoss)Gc1gY|9R4=a%C&!Ol35|aUhjk rOA=*`hZK|&YZ%b?<}phd+2iGC8cNa>P$|t~#TRnzdvpH5o5ubhDRwW4 literal 0 HcmV?d00001 diff --git a/test/control/if/if_32_1.wasm b/test/control/if/if_32_1.wasm new file mode 100644 index 0000000000000000000000000000000000000000..2d2947173384302869bd0ecf9281d9396bf0850e GIT binary patch literal 166 zcmZQbEY4+QU|?YEZfIy=U`k-BuV<`JU|_6gZUzf5FtW6O7>orB46I-wMg~T>L%?$v{6(_*} literal 0 HcmV?d00001 diff --git a/test/control/if/if_32_2.wasm b/test/control/if/if_32_2.wasm new file mode 100644 index 0000000000000000000000000000000000000000..d82b1a6a287db15d6ed07e8f16b3997861fdfb4b GIT binary patch literal 166 zcmZQbEY4+QU|?YEZfIy=U`k-BuV<`JU|_6gZUzf5FtW6O7>orB46I-wMg~TyF%?$v`rzg1p literal 0 HcmV?d00001 diff --git a/test/control/if/if_32_3.wasm b/test/control/if/if_32_3.wasm new file mode 100644 index 0000000000000000000000000000000000000000..fc54794cecf9c217c6aa7035a71ae94b93445d69 GIT binary patch literal 179 zcmZQbEY4+QU|?YEZfIy=U`k-BuV<`JU|_6gZUzf5FtW6O7>orB46I-wMg~T;z2|Ctu0|3orB46I-wMg~TorB46I-wMg~T;z2|Ctu0|3+B BDKP*5 literal 0 HcmV?d00001 diff --git a/test/control/if/if_64_1.wasm b/test/control/if/if_64_1.wasm new file mode 100644 index 0000000000000000000000000000000000000000..c303b9217498785d0ab36d7263188c97db3d63e9 GIT binary patch literal 166 zcmZQbEY4+QU|?YEZfIy=U`k-Bt7EK7U|_6gZUzf5FtW6O7>orB46I-wMg~T*A^-HA(pL5abMJD8Wj@d<;Y5m1pxs5C#fBbQ@6kj)h+%?$wDJt!ss literal 0 HcmV?d00001 diff --git a/test/control/if/if_64_2.wasm b/test/control/if/if_64_2.wasm new file mode 100644 index 0000000000000000000000000000000000000000..d82b1a6a287db15d6ed07e8f16b3997861fdfb4b GIT binary patch literal 166 zcmZQbEY4+QU|?YEZfIy=U`k-BuV<`JU|_6gZUzf5FtW6O7>orB46I-wMg~TyF%?$v`rzg1p literal 0 HcmV?d00001 diff --git a/test/control/if/if_64_3.wasm b/test/control/if/if_64_3.wasm new file mode 100644 index 0000000000000000000000000000000000000000..49f731ba9e1e7f95fece451a05c7e42223a30f75 GIT binary patch literal 179 zcmZQbEY4+QU|?YEZfIy=U`k-Bt7EK7U|_6gZUzf5FtW6O7>orB46I-wMg~T*A^)rnDnL5abMJD8Wj@d<;Y5m1pxs5Cz}lLJUONL0j;3&>;z2|Ctu0|4u} BDX0Jd literal 0 HcmV?d00001 diff --git a/test/control/if/if_64_4.wasm b/test/control/if/if_64_4.wasm new file mode 100644 index 0000000000000000000000000000000000000000..0335d0d182e1ad46ab053ef3774289e29a5b8029 GIT binary patch literal 179 zcmZQbEY4+QU|?YEZfIy=U`k-Bt7EK7U|_6gZUzf5FtW6O7>orB46I-wMg~T*9ZC?vq3#Nfmo%*){Tgu&4Ws7NGKnxC7=0i+xxD&oimWU_(;9qYLP>clCd literal 0 HcmV?d00001 diff --git a/test/control/if/if_64_5.wasm b/test/control/if/if_64_5.wasm new file mode 100644 index 0000000000000000000000000000000000000000..4bb9aca0d10eaa049a0f2fb95d4ebf80b246d97c GIT binary patch literal 179 zcmZQbEY4+QU|?YEZfIy=U`k-Bt7EK7U|_6gZUzf5FtW6O7>orB46I-wMg~T*A^!HGeDL5abMJD8Wj@d<;Y5m1pxs5Cz}lLJUONL0j;3&>;z2|Ctu0|4rk BDWU)X literal 0 HcmV?d00001 diff --git a/test/control/loop/for_32_1.wasm b/test/control/loop/for_32_1.wasm new file mode 100644 index 0000000000000000000000000000000000000000..d181810c0be6bc80021b45f29b4aafa4e0600a2e GIT binary patch literal 155 zcmW-ZK?=e!6hvo|TBSko2+=F_0%qkM+}J=}q!1Ndb@d|(F1&(U&*1fJvKZ#^7zX|p z34rgE5>%%|C><#JQ3O~$Gw=e;iXvFwv%>t7OV{xj&(~35aoD%M??V8p=)(zYe&ys< f=9U(N`DUgPhc%{9Z?j)bWZ^h$;F{eM#?t%&%PAu2 literal 0 HcmV?d00001 diff --git a/test/control/loop/for_32_2.wasm b/test/control/loop/for_32_2.wasm new file mode 100644 index 0000000000000000000000000000000000000000..38001fb0c6965ece216200d2d1e587f27d87769d GIT binary patch literal 174 zcmXYpu?@m75JmsDLqM^R7~xCty+(!TOdJrtf@o9rodPzADUi+qLU^?|~{fe*l|r pDS4K6paBn&1McG$bdg6^8<5?T=vb wOHW>Du2c;68$C^MSYeWwT55&kwv3UcR#7geLZNgVDsD7(L`7|^HbKF{D|kn*;A{|!VTM1C zkNVOP0DAR(53V=_3Kb}r`xtn=@27K-*K6=+jqzFjWOG8mvz&$Es%6| zdjMsFO7L^!LIQ6;V_Om&7NlcL$)!*MN9!CKuqnj|&-En`cEK0yb6BfPkuS8x(RHJk Seps3RdlkHjUdUzf5M#em@hhkR literal 0 HcmV?d00001 diff --git a/test/control/loop/for_32_5.wasm b/test/control/loop/for_32_5.wasm new file mode 100644 index 0000000000000000000000000000000000000000..3655a595b4bd55b176ce2244b75d67196a6227d9 GIT binary patch literal 168 zcmW-Zu?@m700jT-5D->&a9Du_;))$;h^0{2l7T=)Wh0O%Sb-^+fl(NQ*v0E!r`N+? z0s-)qQiAA3jEp@P<-G{7dgQ_rFe{2+eai~-cZRIPJ{-?ifyHjSw!`2YPzCD_;PP8e no@K77;ngR1ifGVc3S}oc4a2d)1Q9fSOO=gZ!ThjkpfuGV!$2k# literal 0 HcmV?d00001 diff --git a/test/control/loop/for_32_6.wasm b/test/control/loop/for_32_6.wasm new file mode 100644 index 0000000000000000000000000000000000000000..570c0fefa635f0ccac0a8db3231d80f408a25c70 GIT binary patch literal 242 zcmX}kKMKMy9L4eXlKQt4JVM$lc!73OL_C0t7IbK!D(d2tih_gS3A~-xaPXHX4k0gJ zJ_O~VCIH@>rh!^2=jfK8)0Ysy=;{Y|Kr1AI?XyqlJpHBH^}62fPYT_|d|0klRRu(K zS#7}nLnPEKa6V2`Fvg$ zK-PJ=2VMT!65+GWl@z7_c0ygvNNg8*3X}4POoss)Gc1gY|9R4=a%C&!Ol35|aUhjk rOA=*`hZK|&YZ%b?<}phd+2iGC8cNa>P$|t~#TRnzdvpH5o5ubhDRwW4 literal 0 HcmV?d00001 diff --git a/test/control/loop/for_64_1.wasm b/test/control/loop/for_64_1.wasm new file mode 100644 index 0000000000000000000000000000000000000000..a9c4b55ec1769895e5758c2ca5e022aa6159f230 GIT binary patch literal 156 zcmZQbEY4+QU|?YEZfIy=U`k-Bt7EK7U|_6gZUzf5FtW6O7>orB46I-wMg~T=Gona9A$wF7KOJ6O2_qXI(>_c9Qhk*Us! hL6HH78JQhG;sQXH0)rD{jS_orB46I-wMg~T=Gona9A$wHs_m2UxiR;~E8q8txTfAx5Az mP7I2Sjtq(n%nk~S3Jd~3o&tj-W0n$wBbPfb1GfU>a&7>JF(l*w literal 0 HcmV?d00001 diff --git a/test/control/loop/while_32_1.wasm b/test/control/loop/while_32_1.wasm new file mode 100644 index 0000000000000000000000000000000000000000..c578b81d8a7bb2e38270070d7a10ceee92f52638 GIT binary patch literal 164 zcmW-Zu?@m76h!arBuH3DjNmW?bzHFl1r2c#AxAMFLPKREs9*?MmS8tx7pMF8{{II% zdII1(#t6}h5Exo8$VUcX@k|5HK$#K2>Yfm0pJcM~oj+Y}0&2foAG+(-4$c9Ex9$ke mf4S$CKQs(`%|U%rqzDEzCQ&xis$4>|ubHn_Flw`a(o}z4B_)^u literal 0 HcmV?d00001 diff --git a/test/control/loop/while_64_1.wasm b/test/control/loop/while_64_1.wasm new file mode 100644 index 0000000000000000000000000000000000000000..493ee9f35935d0ffb4437617f72d945a63cd6280 GIT binary patch literal 171 zcmZQbEY4+QU|?YEZfIy=U`k-Bt7EK7U|_6gZUzf5FtW6O7>orB46I-wMg~TU(unq-A1qLU^nmQ+i vHYbI4?v)@xMy5I^21N!SW@L5%O0x 0: print(f"Total {total_failures} tests failed!") exit(1) From e22786e0be08f4c2fda8f4b7581ed86a2d3d2b63 Mon Sep 17 00:00:00 2001 From: hobbitqia <861394755@qq.com> Date: Tue, 1 Aug 2023 20:58:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=20control=20?= =?UTF-8?q?=E7=9A=84=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 532c39159a367c8fd322bf84b1fbd76725fc0741 Mon Sep 17 00:00:00 2001 From: hobbitqia <861394755@qq.com> Date: Sat, 5 Aug 2023 10:20:03 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=20control=20?= =?UTF-8?q?=E7=9A=84=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/control/break/break_32_1.wasm | Bin 242 -> 171 bytes test/control/break/break_32_2.wasm | Bin 263 -> 191 bytes test/control/break/break_64_1.wasm | Bin 0 -> 172 bytes test/control/break/break_64_2.wasm | Bin 0 -> 192 bytes test/control/break/continue_32_1.wasm | Bin 0 -> 171 bytes test/control/break/continue_32_2.wasm | Bin 0 -> 190 bytes test/control/break/continue_64_1.wasm | Bin 0 -> 173 bytes test/control/break/continue_64_2.wasm | Bin 0 -> 192 bytes test/control/switch/switch_case_32_1.wasm | Bin 0 -> 264 bytes test/control/switch/switch_case_32_2.wasm | Bin 0 -> 265 bytes test/control/switch/switch_case_32_3.wasm | Bin 0 -> 222 bytes test/control/switch/switch_case_64_1.wasm | Bin 0 -> 267 bytes test/control/switch/switch_case_64_2.wasm | Bin 0 -> 268 bytes test/control/switch/switch_case_64_3.wasm | Bin 0 -> 223 bytes .../switch/test (23).wasm:Zone.Identifier | 4 ++++ .../switch/test (24).wasm:Zone.Identifier | 4 ++++ .../switch/test (25).wasm:Zone.Identifier | 4 ++++ .../switch/test (26).wasm:Zone.Identifier | 4 ++++ .../switch/test (27).wasm:Zone.Identifier | 4 ++++ .../switch/test (28).wasm:Zone.Identifier | 4 ++++ .../switch/test (29).wasm:Zone.Identifier | 4 ++++ .../switch/test (30).wasm:Zone.Identifier | 4 ++++ .../switch/test (31).wasm:Zone.Identifier | 4 ++++ .../switch/test (32).wasm:Zone.Identifier | 4 ++++ test/test.py | 21 ++++++++++++++++-- 25 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 test/control/break/break_64_1.wasm create mode 100644 test/control/break/break_64_2.wasm create mode 100644 test/control/break/continue_32_1.wasm create mode 100644 test/control/break/continue_32_2.wasm create mode 100644 test/control/break/continue_64_1.wasm create mode 100644 test/control/break/continue_64_2.wasm create mode 100644 test/control/switch/switch_case_32_1.wasm create mode 100644 test/control/switch/switch_case_32_2.wasm create mode 100644 test/control/switch/switch_case_32_3.wasm create mode 100644 test/control/switch/switch_case_64_1.wasm create mode 100644 test/control/switch/switch_case_64_2.wasm create mode 100644 test/control/switch/switch_case_64_3.wasm create mode 100644 test/control/switch/test (23).wasm:Zone.Identifier create mode 100644 test/control/switch/test (24).wasm:Zone.Identifier create mode 100644 test/control/switch/test (25).wasm:Zone.Identifier create mode 100644 test/control/switch/test (26).wasm:Zone.Identifier create mode 100644 test/control/switch/test (27).wasm:Zone.Identifier create mode 100644 test/control/switch/test (28).wasm:Zone.Identifier create mode 100644 test/control/switch/test (29).wasm:Zone.Identifier create mode 100644 test/control/switch/test (30).wasm:Zone.Identifier create mode 100644 test/control/switch/test (31).wasm:Zone.Identifier create mode 100644 test/control/switch/test (32).wasm:Zone.Identifier diff --git a/test/control/break/break_32_1.wasm b/test/control/break/break_32_1.wasm index 570c0fefa635f0ccac0a8db3231d80f408a25c70..ab8b2e977429ac2c1e5ac692634539812bb36c51 100644 GIT binary patch delta 117 zcmeywxSDZ-ZQlHbh6V;^w%pX*{Gv)G2JZMMv-H%Gu*96qOa=y)+{Da021c$UAVo}F zAd*3W!I3dbfiZ`BJ&4Q5RPV^3$mm$F$iU>l?4ZC1mR4dAU{GRoe9GX*3lez5;KR$n J&8@)54FJAJ98mxO literal 242 zcmX}kKMKMy9L4eXlKQt4JVM$lc!73OL_C0t7IbK!D(d2tih_gS3A~-xaPXHX4k0gJ zJ_O~VCIH@>rh!^2=jfK8)0Ysy=;{Y|Kr1AI?XyqlJpHBH^}62fPYT_|d|0klRRu(K zS#7}nLnPEKa6V2`Fvg$ zK-PJ=2VMT!65+GWl@z7_c0ygvNNg8*3X}4POoss)Gc1gY|9R4=a%C&!Ol35|aUhjk rOA=*`hZK|&YZ%b?<}phd+2iGC8cNa>P$|t~#TRnzdvpH5o5ubhDRwW4 diff --git a/test/control/break/break_64_1.wasm b/test/control/break/break_64_1.wasm new file mode 100644 index 0000000000000000000000000000000000000000..b0808a51a46aeb57e7db8dce56c895a9e038a8c6 GIT binary patch literal 172 zcmW-ZK?=e!00eiFTES58327hUx#SUwUThCV1Y<=#RFE{HCw+uRuYSUh2>wHo)9%i) zi~3**fDi9IL?xV~tH54fBLI_IFx&xyhzO>afG~Upk*RHLyFUr2DoBW!XA>##?#P_!{Af(S-MEh5M!qLm)P(u;TrThV*CyT$Nl z9)AYKz9InL+qQ+sg|)Of*vLx&V086{Tc8sV!S2~3^dA1mZdF#B-BCczXTwE#7#FL$ z2BNB1uEG90?A$^_!|+Bw^ qe)-QUFEk7X%~5?5Qh0+o;!!rD(KI~O(9oPktr8Clnrc-?fcgVxl_nzq literal 0 HcmV?d00001 diff --git a/test/control/break/continue_32_2.wasm b/test/control/break/continue_32_2.wasm new file mode 100644 index 0000000000000000000000000000000000000000..d0f229f6683b9e7b517696e08640e2371b7ce7ba GIT binary patch literal 190 zcmXYpI}XAy5JYFzAxN E2kn0TSz9x&}5+Tj-3GglLM}Rpi>0HgHsrMyXA#V(R{7<0=0af zeiYlcye>gpuLNcz}1($NTdSG_>b7f;YCp`orB46I-wMg~Tc1~C&_Q_sNEIu`=8FF9}nR0>7VIpqq~N4_j43ZwP*C?Kbk-aOoo zgJm28b`&gDVC`v+A+E)T3&q5xmiIzZGZmx%R<^3Opbkj~YA~+DmmbB)#j7zC{1tvc ht0cRmYDtxn93lO7Q~Ie#>C%8_rfcR66Q4Z#@(V@QE@A)x literal 0 HcmV?d00001 diff --git a/test/control/switch/switch_case_64_2.wasm b/test/control/switch/switch_case_64_2.wasm new file mode 100644 index 0000000000000000000000000000000000000000..3091b1a78df640fcb0005f103bfdcfcb0baa2c93 GIT binary patch literal 268 zcmYj|Jqp4=5QX2{#0XjZsjL%gYi$(F9>T&#Q-}ygMMWZnHKLU^-oQ${hrPG(AZ`K% zXP7r1A2SFy5drX;rYXc&XiYr^57sFcpncAOE1;Asg3d8hDBrVXIng9quJ;0RG;B{N z+d(*wW5ABW*#dMQ<{09Ve|S(#JZgE%B{dJC|KG}0ZXIfuG@-hK3Igd<^gTSQJ;7h$ j2eb;Z3n~{>D##HsXw+ozfluktkZ-1C<^>b)EIRTFfC4Vh literal 0 HcmV?d00001 diff --git a/test/control/switch/switch_case_64_3.wasm b/test/control/switch/switch_case_64_3.wasm new file mode 100644 index 0000000000000000000000000000000000000000..63e57072ce7532f13df333caed9a8ee891861a05 GIT binary patch literal 223 zcmZQbEY4+QU|?YEZfIy=U`k-Bt7EK7U|_6gZUzf5FtW6O7>orB46I-wMg~T*A^(TPid!Kti9iNVPxjF*AQL4jd8pDj=l3dmqFa62;ab2~m^;06GseJGRw literal 0 HcmV?d00001 diff --git a/test/control/switch/test (23).wasm:Zone.Identifier b/test/control/switch/test (23).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (23).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (24).wasm:Zone.Identifier b/test/control/switch/test (24).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (24).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (25).wasm:Zone.Identifier b/test/control/switch/test (25).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (25).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (26).wasm:Zone.Identifier b/test/control/switch/test (26).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (26).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (27).wasm:Zone.Identifier b/test/control/switch/test (27).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (27).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (28).wasm:Zone.Identifier b/test/control/switch/test (28).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (28).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (29).wasm:Zone.Identifier b/test/control/switch/test (29).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (29).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (30).wasm:Zone.Identifier b/test/control/switch/test (30).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (30).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (31).wasm:Zone.Identifier b/test/control/switch/test (31).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (31).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (32).wasm:Zone.Identifier b/test/control/switch/test (32).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (32).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/test.py b/test/test.py index dddd7fe..db1f3d1 100755 --- a/test/test.py +++ b/test/test.py @@ -130,8 +130,8 @@ def test_with_path(path, expected=None, returncode=0): test_with_path('control/if/if_64_3.wasm', 20) test_with_path('control/if/if_32_4.wasm', 10) test_with_path('control/if/if_64_4.wasm', 10) -test_with_path('control/if/if_32_5.wasm', -1) -test_with_path('control/if/if_64_5.wasm', -1) +test_with_path('control/if/if_32_5.wasm', 4294967295) +test_with_path('control/if/if_64_5.wasm', 4294967295) test_with_path('control/loop/for_32_1.wasm', 45) test_with_path('control/loop/for_64_1.wasm', 45) @@ -145,6 +145,23 @@ def test_with_path(path, expected=None, returncode=0): test_with_path('control/loop/while_32_1.wasm', 330) test_with_path('control/loop/while_64_1.wasm', 330) + +test_with_path('control/break/break_32_1.wasm', 325) +test_with_path('control/break/break_64_1.wasm', 325) +test_with_path('control/break/break_32_2.wasm', 325) +test_with_path('control/break/break_64_2.wasm', 325) +test_with_path('control/break/continue_32_1.wasm', 632) +test_with_path('control/break/continue_64_1.wasm', 632) +test_with_path('control/break/continue_32_2.wasm', 632) +test_with_path('control/break/continue_64_2.wasm', 632) + +test_with_path('control/switch/switch_case_32_1.wasm', 55) +test_with_path('control/switch/switch_case_64_1.wasm', 55) +test_with_path('control/switch/switch_case_32_2.wasm', 100) +test_with_path('control/switch/switch_case_64_2.wasm', 100) +test_with_path('control/switch/switch_case_32_3.wasm', 0) +test_with_path('control/switch/switch_case_64_3.wasm', 0) + # break continue # switch case # jump table