From 7972c9088c620c0efa1cefde4eee6df3403d1464 Mon Sep 17 00:00:00 2001 From: peet Date: Fri, 14 Jun 2024 01:03:45 +0200 Subject: [PATCH] refactor --- bin/test/oop/ch03/chess/ChessTest.class | Bin 6732 -> 0 bytes .../oop/ch05/generic/mensa/MensaTest.class | Bin 8794 -> 0 bytes bin/test/oop/ch08/gui/mvc/TestModel.class | Bin 757 -> 0 bytes .../test/AdHocCalculatorEdgePairTest.class | Bin 14239 -> 0 bytes .../calc/test/AdHocCalculatorEdgeTest.class | Bin 2856 -> 0 bytes .../calc/test/CalculatorEdgePairTest.class | Bin 14219 -> 0 bytes bin/test/oop/ch09/testing/ExceptionTest.class | Bin 914 -> 0 bytes .../uebung04/tournament/TournamentTest.class | Bin 8419 -> 0 bytes .../uebung05/logistics/ManagerTest.class | Bin 4981 -> 2843 bytes .../logistics/storage/IntStorageTest.class | Bin 3467 -> 2331 bytes bin/uebung04/ByeGame.class | Bin 925 -> 888 bytes bin/uebung04/OrdinaryGame.class | Bin 1695 -> 822 bytes bin/uebung05/logistics/Helicopter.class | Bin 3505 -> 2810 bytes bin/uebung05/logistics/Manager.class | Bin 1722 -> 4237 bytes bin/uebung05/logistics/NeedCollector.class | Bin 1966 -> 1691 bytes bin/uebung05/logistics/Tank.class | Bin 3468 -> 2785 bytes bin/uebung05/logistics/Truck.class | Bin 3013 -> 2559 bytes bin/uebung05/logistics/Vehicle.class | Bin 2299 -> 1697 bytes bin/uebung05/logistics/demo.class | Bin 897 -> 1684 bytes .../logistics/material/BulletBelts.class | Bin 934 -> 672 bytes bin/uebung05/logistics/material/Grease.class | Bin 914 -> 646 bytes .../logistics/material/LiterDiesel.class | Bin 938 -> 669 bytes .../material/MetGallonsKerosene.class | Bin 966 -> 704 bytes bin/uebung05/logistics/material/Oil.class | Bin 902 -> 631 bytes .../logistics/material/RocketPods.class | Bin 1097 -> 839 bytes .../logistics/material/ShellBatches.class | Bin 1105 -> 850 bytes .../logistics/quantities/NeedCollector.class | Bin 2548 -> 4090 bytes .../logistics/storage/FloatStorage.class | Bin 2223 -> 2544 bytes .../logistics/storage/IntStorage.class | Bin 2183 -> 2555 bytes bin/uebung07/quantities/plain/Time.class | Bin 1751 -> 2156 bytes bin/uebung07/quantities/plain/TimeUnit.class | Bin 513 -> 0 bytes bin/uebung09/chess/Board.class | Bin 2482 -> 3418 bytes bin/uebung09/iterator/Array2dIterator.class | Bin 1144 -> 1481 bytes src/test/oop/ch03/chess/ChessTest.java | 168 -- .../oop/ch05/generic/mensa/MensaTest.java | 80 - src/test/oop/ch08/gui/mvc/TestModel.java | 24 - .../test/AdHocCalculatorEdgePairTest.java | 2040 ----------------- .../calc/test/AdHocCalculatorEdgeTest.java | 280 --- .../calc/test/CalculatorEdgePairTest.java | 2040 ----------------- src/test/oop/ch09/testing/ExceptionTest.java | 34 - .../uebung04/tournament/TournamentTest.java | 134 -- .../uebung05/logistics/ManagerTest.java | 23 +- .../logistics/storage/IntStorageTest.java | 4 +- src/uebung04/ByeGame.java | 12 +- src/uebung04/OrdinaryGame.java | 14 +- src/uebung05/logistics/Demo.java | 8 +- src/uebung05/logistics/Helicopter.java | 18 +- src/uebung05/logistics/Manager.java | 12 +- src/uebung05/logistics/NeedCollector.java | 6 +- src/uebung05/logistics/Tank.java | 18 +- src/uebung05/logistics/Truck.java | 16 +- src/uebung05/logistics/Vehicle.java | 14 +- .../logistics/material/BulletBelts.java | 6 +- src/uebung05/logistics/material/Grease.java | 6 +- .../logistics/material/LiterDiesel.java | 6 +- .../material/MetGallonsKerosene.java | 6 +- src/uebung05/logistics/material/Oil.java | 6 +- .../logistics/material/RocketPods.java | 6 +- .../logistics/material/ShellBatches.java | 6 +- .../logistics/quantities/FloatUnit.java | 2 +- .../logistics/quantities/IntUnit.java | 2 +- .../logistics/quantities/NeedCollector.java | 16 +- src/uebung05/logistics/quantities/Unit.java | 2 +- .../logistics/storage/FloatStorage.java | 6 +- .../logistics/storage/IntStorage.java | 6 +- src/uebung07/quantities/plain/TimeUnit.java | 5 - src/uebung09/chess/Board.java | 4 +- src/uebung09/iterator/Array2dIterator.java | 63 +- 68 files changed, 165 insertions(+), 4928 deletions(-) delete mode 100644 bin/test/oop/ch03/chess/ChessTest.class delete mode 100644 bin/test/oop/ch05/generic/mensa/MensaTest.class delete mode 100644 bin/test/oop/ch08/gui/mvc/TestModel.class delete mode 100644 bin/test/oop/ch09/calc/test/AdHocCalculatorEdgePairTest.class delete mode 100644 bin/test/oop/ch09/calc/test/AdHocCalculatorEdgeTest.class delete mode 100644 bin/test/oop/ch09/calc/test/CalculatorEdgePairTest.class delete mode 100644 bin/test/oop/ch09/testing/ExceptionTest.class delete mode 100644 bin/test/uebung/uebung04/tournament/TournamentTest.class delete mode 100644 bin/uebung07/quantities/plain/TimeUnit.class delete mode 100644 src/test/oop/ch03/chess/ChessTest.java delete mode 100644 src/test/oop/ch05/generic/mensa/MensaTest.java delete mode 100644 src/test/oop/ch08/gui/mvc/TestModel.java delete mode 100644 src/test/oop/ch09/calc/test/AdHocCalculatorEdgePairTest.java delete mode 100644 src/test/oop/ch09/calc/test/AdHocCalculatorEdgeTest.java delete mode 100644 src/test/oop/ch09/calc/test/CalculatorEdgePairTest.java delete mode 100644 src/test/oop/ch09/testing/ExceptionTest.java delete mode 100644 src/test/uebung/uebung04/tournament/TournamentTest.java delete mode 100644 src/uebung07/quantities/plain/TimeUnit.java diff --git a/bin/test/oop/ch03/chess/ChessTest.class b/bin/test/oop/ch03/chess/ChessTest.class deleted file mode 100644 index 4a250b4e65c098442e9f3f1b8f8854749a95e82d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6732 zcmdT|-E!MR6h5n_@lQh21X|jZQY9_aEi`U^TA(dIw&M_ECw3E)w9{cavb?nw%UX@J z4$Tb@z$M&s$1^YkGxVM};AMcbvf?^q>+FR`<6L-;R(tl_Z_ge{pU+?a{Qf5ZWS|@a zjlfk-eV%5_O`FZT%h*ugPv=Bi#eo=%5jekR>>Fv@a2n}yZI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.class b/bin/test/oop/ch05/generic/mensa/MensaTest.class deleted file mode 100644 index 8550d09a6aa61cfd940ab45d32e2e82b5e837e5d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8794 zcmeHNUvt|;5MMb-Wjk*3rxYlqa1E3urLmfXLeqp4*Ch18PCAL}8J?Jne6f^DCy#VW z8yG$ipMV*dfp!`?-9(y>EMGxj6_KUg<+xA(i%?%v++%76X++aCZ>g6Ae=47e*; zB&;B4S+?`=k=10Jg|2P+j7QX}%4ZD;Oc*s_a-SYh%cHz$ZSC$eTNqF%Z*6Y;P%4+V zUT)S5n64a??1<3i%@qT#mIEFM%0-=eG0Q^E0CQ<+eqnL>F-~sPp097W5wcL|OfDOc zr?wr$TvVI5)%8j#=}}Ib3>g#%K62nMAZL|2;|<)dN^QsG>}X=qfH4vK^(rF8+}(Yx zUdMp(N|{E^i@;R~qjtdekdZcgnT8EqpWh29f3@Sg!jUV~(qwAfp**U_%=1`?gbFR0 zDzunj;g0S2ZUcE97f#^Qs7end<&{;JyJ8KQo}H^3Fj@{8%!E4zOdLyXJq&{|3!fMh zzr5rjivsU}HHaPfE!U&M4LE6q!LG;r=n2W^Y7Qd}W_vV5q87DZpSeire6oh=PO9jNHTteHPx5u;QpU6 zQwb^+v8GhdjZ8&nr#g(I;35Tcx^Oyl+P<+JWS;RFY5lzn`h13wWrNTtVxg!xVemSd zEqmBqt*t#EY5=3*?U-}vSLcY!Rk$bRMoMZCagSm_+G=^OEvd*Jx@Z{`(y$q0$S5L` zV0QTo++%i*%&(E3exA$cx~BDBSm)Z%6yc>8$pB2bkK#Qa?uJUmyzE3SmDW#OQ2IXF z<)GhC+P%h&kOu;H3ve4gGvLN-cL_u$`x6x`OKiseE(>eY*~(f;U{kN2gucn(sBqlK zfO{3KstlGX#v&%-mH{`>*9+HYbvJSmz9f@!RWCp^+$n5Y`&a@I)-#4)o~>lTGDg=l zDhz`bajKx@KToV_a4JpGFwE5Dnnc?gM^v9uJ6sy3l1Ih96E6QkC$O@-iN(Sf^iT$i zSP1Q;l#vNb26PvdBWA}~skBNlMz5j!qjFH4RVF+#V5%#al-1p1|0Rpj=)E2rxdRRF z)dhA&WSYvsXhuat%yw12pTZx6R5caae=;3co?=&BI2}4|@2wXqrM{6aeG;I5QA!Q# zsN~X%WB{hD5wYls_k6e;Ds`Cb{(B*Q(3zO#`M@}DCx}CvZMZUvy{0Y*8I={~M{E;T zF)Tdc^Gv|+-BVq>oA8YR+4fO0;h6!)NsS5LVz+bin6QESynW&0KM$&I6k(0Ch9%7i z?f`yO$A2{x-~$+gE7&u!mw_zy^C$Y_ICd4TsksT5RP9vKPABbkct?%jfOl2<9=xyG zn}{VbZzb)AsvW_-Zo^0T{1|7yKrRey^S=Z6etPCt`1DV;<{myJSAf4+d=`$VU=Hr9 zvCk190}m3ad2GAUiapS7^+bD!Xd|$o&@!-yT(yzE?1}tU59IqjkTbB1>of2KzQcAB RWxN7k!&Ce(Ng4N8{|8Lac$5GD diff --git a/bin/test/oop/ch08/gui/mvc/TestModel.class b/bin/test/oop/ch08/gui/mvc/TestModel.class deleted file mode 100644 index 82a0510c1a6c9870c17c7eff3ee53f200886a0cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 757 zcmbVK!EVz)5Pcg$otn^uKnsNf+n(Bs&4B|V2&t-C3CVy&LlE3Ho0Yx6-nG{2h%e|b zRRRg_d=%=~EhYLW&-b4I4)7#EhvBJLm5;40W0^gB5vR3|i=~Vw zRDEmbDi6?Q7%s$8#JMnO{C>7j(le~R(nkB&47c|7rwrXg0tZ-U7+hhGoU^WnI}E2E zjZ>A)muk+XElQmWudU&wv$I?kFL}5=$rPU}nF~jlQpm3&ReYC(MUAkCgheE5m(Q)L zxUrrW!pn?%YE$1z()4dzGgNe~Hw@9k-9Bz(gJE+oxl(%Koi^#XnPiY?qu$lUOu305 zaSWrxN|8^6(@lO^?D|Ys3_HmU{*B4K2J(j7`lNmKMLEl`{h>Bq7iy|2O`HdY25KE4 z%3)$%8ZT;UXxA|A;UOJ#qk{~=#X*uGJh8Qt>R31WHzt3V88s7Q2edW10-(sqj5Ue@ zWzX9j2!EjWc@&}3@A1j&@-giZ@)v_!>Fy@r@tLMxI}Hz`#Rg!3bt@1+oS(v N8?I#ACN&*AJ_n;QtXBX4 diff --git a/bin/test/oop/ch09/calc/test/AdHocCalculatorEdgePairTest.class b/bin/test/oop/ch09/calc/test/AdHocCalculatorEdgePairTest.class deleted file mode 100644 index 1b5b8e45c4d3e13c7278ed32c1230fee47e4dc70..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14239 zcmbW-ZERCj7zglk>)4=9hKLA=QVkZACrlU<5S6aGY#m*1?YfC?i1>zx zh^UB&sHmujiilt^K|dH{_+*UngCC4B#u#Ia9}F?Z5YOE`&jsyX3FoqfTzFupsbjvAo2_s56|xnlJh!9M zZpr4$t@`0Ls>)Ksy0iV+a3Ndl3@>W$wsRFrRk_c$)VOBDB|Yv8snJr^GxEiJWu~Rh znmnaVKX10vVb`d$Eme04om(zD<-zJ4OKnk3u$ z6YaGnJ^j<4=svU_JUbXvK~-0)YSb`GojB{$7D$zXfYX84CK)-~8dhJSI$x@>i_Z2Jo9=k2yo7Z?# zQJ>qu%cE_bTkZ^Z_vzO?9HZtK zGsn0&Cd@Hujwy3Yn`1`*77RE#!z;At6`J%4ZF+@9y+W&Ap;@ocu2*Q-D@2Zp92Ge# za#ZA~$Wf7_B1c7ziX0U=CUQ*Vn8-1aVeuAMUIOc7db9+ zT;#aOagh@uCqzz&oDex7a#HR}%3VqSE(uLaXi`Fx5}K6Il!T@vG$nFM`j=B_bQ`5EpiGh=>+yUxs*pW&`F zGv;TwYt4-L8SZNH#@yv*DnG+raAwTUaF?7J^E2Ee0c2Yz5}Z`y_bSsMklv847f)Gi{mAE0(Isr>@AaisPq)IywQRY7e$ zsfD06fz+l!?GjQ;Lv13dwLtAsQdbKJAI@zqsU3#eJW|7ZnQKVxIGo#jQu`8W*OJ<| zP+LH1KSS+0Qab^)W=_-Fc(fD0p45U+TS#gnp|*(BLQrcVwP{ehfz)t6T}*1YpDrP_ zW_YHpq}B$trKGkBYHg&}4YeCdtpc@Wq_z%f%Smk`)K-w%HmKc1YP+DelGOG=?PgLt z1hrd8?HJTwu;nnKh2WbH*jw4r1m4!a-{Yf)H+D*B-Ct9s~QZo)uc8YYMrDu z7HVCjHVJBZQfq)(H>oXv+8R<@2DJjI;cKcrq}C7TRwT6zP;*Fa3)D)awi9Z%ks9tY zWl}o~=hjPV_$p|H)V_do>mxPX7y3!w#;8)^@d z8orwM5UG6t=k_qEeFC+Oq=x&#Bcz6}zilEl{C(D=r1l4V-8OStbv4u;BQ^X9e+#Ky z4CnSZsZE92R#Hns?FmxDSIoAN+Cn(DCrNDu)SeJVR=Dzp#VU z@P6T0QripP)19Pt5Ngkn+A*l@BDLdCd!E$3g4%9U`wnU^klL?Mdy&-ef789hX*Kvd z(jHP90nhYhQp4ZNyh3XDdzn{B4evhok{aH9yhdtx_whQZ;oZj@q=t7N`$!FUnKwxd zcbWa9hP%vLq=vi9+oXoO%sZrpyUYPn!(HZGQo~*5AgSRl^B$?;E^~;~@LuM9{om~Y Gb@(r2m;6Ei diff --git a/bin/test/oop/ch09/calc/test/AdHocCalculatorEdgeTest.class b/bin/test/oop/ch09/calc/test/AdHocCalculatorEdgeTest.class deleted file mode 100644 index c474a6fe94507dc5401ea8962e80db15537c57a4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2856 zcmbW&&2JJx6aeryNP(^>Sijm@?Sfy_4;HqxS}`WHsqsK+Vv)q-vOB^e?2ut;j7N_> zdiLnqt40$|JR1K1{{YYa0UnHR*(I&@CF)%Ey_uc)?VAt6=b!IB06+~^k`QBH_k+jYQU{bOgT!subNxFE4i%P~IB!EZJPC&xWcJWaDTPeI5eB;tJ;{fnx5FLX7X5*X z#kj)L2U4_pynjpArW+luJKXMB62}ZI`-#=&dLGLt1}iECbrpj}=5TsAB$kikq{ zU*R&&|i}n;LR|G+;3IVC4C3pEup1i*U`ub&at>=KlvKha-e)whEBJKqsvJc#ipx=~L~$jGt5LiW#hX!F!y7Pm z5DF8N!UU->K`TrU3lr4B1i3IlFH9z&iA9fl%!zDHWOE{$C~MndByE1z4Nhm_!2O)u z@?vnhkORD>_*-ERgDFU0HjjA{Quv(4Rt4WOjM{t99?hiRz|oJ`ior2_CdO~@EHF=p zqu@B4z!u&f6k>2H8g&}upV};;Wk_xQH|@+nYqO-bpr}D{9Y3?Si8AoYXEVYP+O%Nl|-2YL^wYm!wuu)LxO=lA`vS z)UGIMZ%OT{qV|c@t|@9?NbS0!_LbC%irP0)GZeM&q*hYYevn#OO=EFVGZnQgsV(C_ IXbdX904mmHK>z>% diff --git a/bin/test/oop/ch09/calc/test/CalculatorEdgePairTest.class b/bin/test/oop/ch09/calc/test/CalculatorEdgePairTest.class deleted file mode 100644 index 1c664cc7670cf0becad487d3705895fa211e7d5f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14219 zcmbW-ZERCj7zgmvI<`?KLqz0FEQkn*>-yd@M0r)Q!h|saQR%wN*0Hs<>n6S-;u|6& zq9P)qqM{-yB7(sL{a}pYlQG5*elW%uV~jC=FvJ)`Ja_jzXBhv9`v0=~^tAo`&%N8( zvva$Xr;nddO3hKnYLwrn8Y)h2B~&byLb=YybSRhY&V>es=IN@hJ6kE17qoXc&Dngp zMZdB}Rr%ELu55oc)SWGKgqE~*Ik}2YRk?5Usj(R&B|T{nY4WM+S@}Y~GTW!lnmVmj zzhz#r-KkM$`&9j)x1d}umTT2HKDA|eq3rY)yZfE?V6NCx%Imr0i-lmRTx{!hdS(U# zLt8qXV7rs+&X)CSO4;1HY=;w^q-W6Jo=bx}rGe9%6l^a#y}?4U670!Va-G47extL# zq-TES8{N}x0PhY2R6y0&sTwuhr_P_68Jz91N;zNXXmZb{K9esvi~D-ooN`N6Ptd1E zWQuwQt=V$keQXA+DxLXWpK8qfz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c48-la6#lq^bT0-u8^Rb8xWZR%8Y$c-)H05HID6}EHgLiy;}Je)cm+NQ z1bfi{TdadU_W2@o#ivtqpH0nuGBx+P)ZC}q!Fdx(2?0zgucAg-V<*u?ngcjRs?!|L z@D)4D^qj+8oQLH5sYb^OBYB{%Vo$2qtK79dz1-PGt76y|BwaJE9 z483x_nVri@RTkO^S7+C_$IBQL2$h5cgPwhU$g`3YdZW0Hu3>O#c{9&|tuW|ZQl2*4 zGdo;{n0Pq$?LC8JrAEOZovX9WGiZAvJYk;F+v5{E3=&JKgh}XT(0$y&auBE>1(#Xs z?Y0-7R`L)_j;kuZklYC6Iewsu5-a+#lSvo$&?%uSc|ahay9YFGXY^<$qfSYoc06UA z3ODYaV+fD0eVW2ae6$=hwdJTcvvV`YB(-it#aDrGj>3-1y@g43SPq&I}LKrMzeK(mO_*l_0eP|C$<`%@`6yJ>5gcRYmE0J%mB;2N4$E+tjJ zml!CGp3O@+L6SZbsL^Jkb~~Y|*~QbWsqBT@jTz{Iz7A-Ieg*^Mxns+cH-YfV^O2?L z&Iu3K!%C6dQ&iCy^yZYySH0Y zAysQcl+;~N&hCfgv$Bi0s{)))!A-{AS(quioNOejVaH{|h^!AvyJfJYqs)m?;RVSi zxQq%qx$YBEMpm4J9AWH(g^F{3>Qf~VxxWm{F3oY&Ptf~09 zQoR3^;yG0=2=^cbV~qW5nB>jGxNr`FK_;)lz(uM7WDR=i5=O;+CbAPrn4(W7^(cdm zHK8>*ivs;C)-VF}-Gn~kw7@lJg*JLhR-aN7NkfM2TPfBK9dzxarw4>))Mh?I*Q?&1 zkI?(IiXWhB^fu6MkggG)P;dpVR%1gHiTbFau2XxK?M4jSU@Y6MQ*6VrY)%Z@a4g%X j1>5Zywy9XQyB2KsV%Q$Vu(iNA&8-C{V4B(lt?A@%DUL`= diff --git a/bin/test/uebung/uebung05/logistics/storage/IntStorageTest.class b/bin/test/uebung/uebung05/logistics/storage/IntStorageTest.class index ab442b75852a4e2f5ed527781d90b7babad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mef$3D3jiF$?KU(7?36ew&Enp{`0)y#s~p?V6tHy` z4Iu&TB2z1L_XP|lZ`D$bGi4UzDLHKxM*><8wbArQz@6dw^yCk$qtU5=<`bK6qe}w% zztEmKXI%%jg!u5>m!71~3obxI zk~ptTicS-wsF^3HVv;#hY7-e)?Jtmyv+QNX%nwKZ3v&(lpaKj7=Gy0q;`C6)${0&b z$t=;4oI9IWlSs01z00UOT^UmEC5B~4=1le-8h=+Nm?1Ic6g}H27p79 z(ltZvLu1ePS@WvHe{q&vR+W~;#gz5!_j#eb>N18y?-l%g~3o$Te=vZ z=`cvIZm}P9274gj0*hZj11>^~y$1Vj=&wvQ%AAN@C&7k)Yw!c<2m)W+s1~@xl i+pGKtuD~w8crkG8H-u2PM!3EKVS6LOP5#q>TR#B9=Kzxc diff --git a/bin/uebung04/OrdinaryGame.class b/bin/uebung04/OrdinaryGame.class index 24743487855d82e1fec4be29aec407c59f5bbf51..ef42194dd17713d28550fd289d7c44f11f702b37 100644 GIT binary patch literal 822 zcma)3Yik-&5IwVQ-D);3qcLq-n?BO039*%Yiv*<5Qdru8#m~L!WqZTA%FS-Tf0eXI zpdb1J@}o-Ut`7t)l!e*3XXc!F-T(RZ8$c7U9aw}yEIV=Nzd5UY);$#pJ^CQ}(t%A_ zpN9-YuvCvg9|`G(3RQGLI4XOW;#$-K5&E@Oq*dsjFC&#U!G1UB$t+S>bK$@xq{@|c z280b4o7f^a!$6FreoM$LE11Nbi=BnUy1@!Ac9CXscMyk>)CSvg@xWl4o(kosxZjcb ztLOyWf6g0pMbH*nnfDa5qwng9Q1s@*F7Dx+ko9HsW!781Tv_gJF{jRJV?r|sCLAL@ zR%5x`g=wlah;>)KS7xs5#g0$SLGYXxk>V@! z&}JL#+3Y)b$Tq{TA*>``s@@@6JsxAddNRg#^#}4}6xrI}ej@%+$5&$&;@r}-`U(F{%%U4(lM3ks*-6ygNpz}4 fc=jL6;!5TLZ^FWhq{_==@_*OfU#aja;U4}4M`M-( literal 1695 zcmcIkU2jrB5Iu{?$1N3$+N$+q(HDqG(WXzOX+n$|6QU;6CVgCBfi?H;lD&H|{1RXM zA10dUyT8TXV4MpEsNSS4=*wni=ggVe*|Yoo=jX2g8hDsRis42i+mY@+-mAT~U8RK` zzYu}UBF(Tq3&mRuDb;0QFBviiN-KBBP_8sjVd{Ul)nkVAQ`05BHHP9lF%mUj=zi^) zwZ`VK&e)H)+RD)QBiZF06AYCvoHCjZt!eu*2=}>{KN=4u4^$Wk*BR{dj?mgTLhF&V zj`yqyc-$d(hPRwmy1!h?KyoWxWHonjK^1bPvD^`MLO$#B;zf7=Nzs)$UN+f-hhhO)TqWUE znsYr&$5D^o;1 zYLQcZtzoSgH&y5emT#%P7If=W=utB2;O|Bc>p9$J_;4QaUi^kvmeu0vcXPP=-#T4c zi}cH!dNet3hL7hQ>#{Oj>B-V;TPCs{`CP@~+*p*|PONB@!ElMbSW+%7BSTi2>@0G$ z=E>WmXdL&xz&j}wKH1BKHA5I+jWU74#P)Cv*U6(7gH1whk)6WL8B>g(GTlmG fDkU;)pTTq|foU_5>E0Pk_Y;`56Pe1Bb3OP4I9uLR diff --git a/bin/uebung05/logistics/Helicopter.class b/bin/uebung05/logistics/Helicopter.class index 4bfeee0509ba6a9fef6d6f344df7a35e29e88b0f..01286a73efc4be61078d227e248785f06fd0631a 100644 GIT binary patch literal 2810 zcmb7GTUQfT6#kBhNeDv~ZBU`0wxW{+jar~Bu_#cZk&Bja5$tUe4q;?6gUN(yZ?-S} z6@6`=+qEiTwQKdctG}mDedy}mXT~H82UvYzW}i9x?C;y(*?Wh-{{8I_02BBwiX#I3 zby=+2<*OqZ%PE^R*DTdCcco>PoGn*YqX-N12DmKA4YOoPfv{`Xn*zz10H>PkRE@IC z8cn{Cn}Y?ZMvpo3y8cx*OX(|h={vn zSalhq^eD3^Ip*rpqNVs-AacW`BjW<6^_j=Uwvn+6yPPSwRnsnKbNPI7iISOe)?^$Z zysqIm5(1|JeAzXMQv!nrq}(DO#~JiR(M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N7)r{ z$-9;4aCQz(!8r!Yfp+P8fNCn?uT(<^{KqXr6GBWAL!;K7hD!{dPtcVoSN-@4 zD1(`wq*8l>4W$^IsCwg7VyX&Rg85dtIvhTHJ7I94>L(xX&PJ^;sB9XeQ0T@q)EN9Z zfy)1x_-4SX!#VL4M!Ciyo4_c?pDN_b9h2D@x24a4h4DkzM|1} z1oN;0CkyWjgl3f1AJV!=h+D+wxhgMU>Bq(8U*ODd`MDKZrwBunGki?zT>ifTpTPNi zj|xM9p+tK}Ww-zrgA6<%!=0cEt8lr%;AI`k5MpQs89s$81%|N}A%@36hO6*dkf9pT jqWdolp9dMf2r!rcLkX^v<|SBzue}AJ40X5xH{td_wRIJN diff --git a/bin/uebung05/logistics/Manager.class b/bin/uebung05/logistics/Manager.class index a074bb5032444a08298da2cc1f343ce1e36b63cd..822047c15830167d29e5a9aea0973dc59a839d9d 100644 GIT binary patch literal 4237 zcmb7H`F9i78NE+d7+W42EWnhdK_uW<-UOimW4RPCapG2%X$+=7lV&81rNN^aF*7o8 z(>C3=q)U>vS-PhS-P@#zQ^;vgf9}7M{tZpiJR6~qMg)b&E$Dj$9%W7=iI^^BsMnbj<V6Q-L6R5W+t&Gh=ORE%OwpojbCjcU!*^IDba?Pzhr zfQD73m&15i!I4(D{yP;%@eu)KSu^YU+@iohJHioMq01yI^O%a`7#G-8)t2-r+bU|_ zMZ>G`m+NVkM@r*SXW`B}eMM=nA)dgb0_HTRqE-b}d=xA_r6xr+t=qB`x=1f1Fo9Fj zHX#WH#k)=oHOhj;uxOa(g<81a$|`wO#WWsct_)9iG|zSf`WrI)4K)+4XS*?jPbl~} ztGHQHjkhXtm}RS2`ZFwz);S3rYWPIS8)MsM5Us+ zc|QOf^KvIXC6J~`Dx~kGsO+f zyk`^C5=4g0BelHOE@`QpML~A*+SJc0mp%Dabced=uYdg>&LP7|>d|%+u-77S-6&Tq_(P`7x8ktQZj%Q_B zejwBGLxGc<*c~C;%*Y~MkqW=MIUv(Xp5w1eWq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eeGVO80-DMGN>m!uggP^taaaKMhcYU+{o= AK>z>% literal 2299 zcmds3TTc@~6h1?1FG~@uAX*Uz6y17hQ2~t@5+GulRCoZI_&D7T?cnTAGdm^t%S<%U zcYlSy#CUeQy_hZ-9@NB#-P4(VbLKne%zS6R{rL0+05;)88pa3|I=tTTn#-$YshYw! z!tu*B-V%=FX-E>7I%X%VESc9V@70gFV+bTY=5hl0>fo<^qlMR8Cy-D=63A66p4m4_ zvnI#MR8w>2k2xJlQriXqdJYhBn%-W+{RVu|A zQrT7w_Lmu26rUW z2x>FuJ#wat{bVfChT=Z;l%Xy&PKz4E^V2qFVi@1cVrj6j>sq*Nr48**Q-^thvpT0e zYX2E^}tJA&epSCn$9f^IzKRA7=C-TOZ=Jj>*XI+1Qbancw3q z$ir+7CgD1PnHZG_G-9$UJigm;>s%i&y!L@|DTm1#(;^s0lS$JOK7qMv?<$W9B1+l# zk&yDRy~TXtpxW8RS_UWqq}sd9X9~?lG8Ad&`AI^Zbx=Y(E|2I;XNINIgBf#EFK zaq$FyZYwEK#FSnSk~H338m-E9qui7z)mF4eI7r%E+4ax?fq6U7`JhVc#UX{>Qc7~> zVYaAU?HBS4NXDpc^B^#74||DPN(M><7S2yE$~f}eR~_x}9T8MG7qzfb&=u0~6dOyQ zNE%iUJ*Y++)(E7dKyc|>;rrOk4p5`~U>s37oEw7) zD8S`k#ug;;d`=Y^3iuJH?0S{}j9v0!w5QnjIIc$u2z>kT$=pp#1SVAs=y$AP0YeO-z55j04 i!lR*`2GKr_iS}r8C#*vm{fxmfJV%?soIinQu=*3QAbbD- diff --git a/bin/uebung05/logistics/demo.class b/bin/uebung05/logistics/demo.class index 33773c74c312c71a0b53c602bb56e0e7bd52ba3a..9ae7dbb3201fea8e59673b6454c38f34bccb0d31 100644 GIT binary patch literal 1684 zcmah}OH&(15dH=vR+2Y17UpST@DqW+5{j`Cu$}NQ5wQ>$EwW{&Qnl=kR|BhEWwmRU zlgcHB+)|ZXa_}vw{DEAM%T(o(TYgk3J&RoUunvdq?dh5B`M#d+{^#Gfe*sv=R|A=(V1UoLk3dl3wlLh5&%FdD7~+};@nkTPz!h4T=5H-*D!9fl z65*|RfkD`AP~ui<#lr2m>SXEfKP<}*9J8ImRT*WPA+_s>rfU@og@UA-Q!$Gjn38+pchKrclH!1s^j^MSyJT#7^jTzAQ*t z6THoB6$`jcDYCe~QK@RnmDL9fx$JZlhA96f3Fi|PpJI_AA>l|I46~6ez6t2zgikl; z*KJq#DII>7(p?qzB&D;@g>CP)x_l{j{rF79=UAp^r()NHaX?j;-H?e`#RCOv3^)Fd z?2c<3aDUr1+mh=#!^|n{P8>pVB}r~Wx<%#WJw_YO37?0cS}C9M3@d?cbAN@~eh95{ zdg9;nkiDjR7PaF*M5|G!8{B2cL}BhW8%0oB$Bp!XgYSxtqS-Q9+?P#3|HgcAp(+1C z``{Hr^4piL<~oktOI6*#Gx)lYwVYg|p>$IY0!)IU&HL|k~oWVWFcqfQOE?@em_Egy+cFm2m|%>UEYkUZaGksFS9U_fv}1gJ=H% D6*r%D literal 897 zcmcIj!EO^V5Pc45lPrOhKnoQYtEbRI!vQW7AyEpa6(CxQ5GSv9v~laTS6*+$m9Ihq z3GRFpVzwm>pd7gL;IU`?_RaXs?2n&cz5#fO%^o@ew;ReDSKNO%wZ1TQG`gPVRQeve z0&B1n7*r{Jq6(5*7u9UZ+*2)`kFr!z&tzmgeXO{e zKk@Tt>?}S!r#5BfLzEX`sg-NVGLrMsE(4gFNMYYlO?GLGfV?EyX>u zap`@6KCTV1g6jh7lXM~dK@7$fyKQSmsd4nODKiR(iq#evr(P?2q=ISv-@$I2nOa~o zoh$gyAnbCJOJ$tE#^l4YOnqz!eEN?@U#=tq$$@WzrWdAt>tLUUc&8Nx52FC0Sa1*yU(lTuS#jw7F;qDnj Mo0oqzwjJF01@&kEJpcdz diff --git a/bin/uebung05/logistics/material/BulletBelts.class b/bin/uebung05/logistics/material/BulletBelts.class index c4a0e4b214f168e2eb717eb870fbd060ad4ece31..5828171a1f5c08a9c171706bc0e5466e050d29c8 100644 GIT binary patch delta 384 zcmY+8%SyvQ6o&sv=p`|&u@|*gF$&!jG$N>L5d}frs0)`#i8VE(N+xTcq2vWzx%Pq- z6x<3vl=x5TLWenXE_2Rz{)f_i!TkDu`v9tpZc%=4olJJ43! zWh@9Z{UDNwGrV+m*0(nuKaHY5CfSwd++l^II;}u66pP|?Xle;7Q_Ng?L0{;OVLdU> zP~}_9i#DbiTayOZ`M7}@)L2o&`|MVy@r?Q>D(?^%V>Dk-XZ{F8+@)YudSIT=79s5% kss?9iRA-Ym$L|Sqja~`TYb_%F$?5!&qyNegYx15PeQUH`xXfN=x~!TOpBxlyHCxMM!N`M5GW7Nh@)59BbpUu~)WJ(O-rH z65RO_{1n9Gt0^KvJ?z>uo_RCx&HViR^*exl@CZ4ECnMDxndJG)Mrsr7gOby{r2Gz!*1(}SbGdBueH(P4MV=R zd%{pSw0#v}m7%gIapatJMO4koHiBdzhYbjpNxS~=n5;5@=3hG?c6L;1b-o7pyuK)l5 diff --git a/bin/uebung05/logistics/material/Grease.class b/bin/uebung05/logistics/material/Grease.class index 6c93add550af5fbbb6bb9e690b9a594c03113625..2f18ee88c299e8c88eb09bd77a713d729c0d7e6e 100644 GIT binary patch delta 378 zcmY+8y-UMT6vfX=NYlimjr~w-6|2ytAaM~l!9k>hlR9)v%QFN+swSD;+-v>}7e9uA zf~(*kC7zc$=;PgY?z`{a-#ZWHyp7!#0O>hQY8Dg|>8P3eUegZd9R^MZy9$EkdfQ0+B*kB(2n?<5&}yi9NENiar?< zNU-N2`Y4E#TLU5j7Blv-eLkQ6_xb+g^H%@|;00tDYGc(OoA}v_W@2OQgO7v*f`~Fa;^qk+EJ<#5wtZtb+(_Vk>BG{sW()7pkyK(9ZH4# zAY#R9S5g`aDK$Q@%5!4_rzJV$ffCinl!W}6xKPnpL6}{pN2zszU+r@#%!Jxkd{Jyv zYMF3MLRakZV7cJoB2`g@2-OM-SYz0%x0eodgVQG7pEy))Yoj{jQD3>9Akhr#Z7W4` zBItc6o-gLYPV%Yw>)#Nlicd)a{7&Zv~N4*SD*N&Z3ul1zR z@~n9plXE1nWu!Hp8cdn+Rx2l*99|Ugh@midi=pyPdr#7PWRJ%-s86U|cW`%}_xsJO@^)6-oW;FqefRNzM&L1hIU+v%3BA(gZvX%Q diff --git a/bin/uebung05/logistics/material/LiterDiesel.class b/bin/uebung05/logistics/material/LiterDiesel.class index f8bc02e5b6fe7d96c7a91bea2dd0573a4a9018e0..1d5f5d2044822a18de8ae786b7e1210753108792 100644 GIT binary patch delta 381 zcmY+8%}T>S6otK#OhpPk3y_~^tmp~ALcz${8JS}`EdwxFYKGPAi)Gk?BAUE{U|67 zmDNri3j$6QX2D(RCRgqynL$*H6!#uIPN@uyVMq*}sZb=Jl_}mls-S8cC9G#A3K~3X zRnfsTb8FH7ry4gfgC;9-c%R*JwO`Qsg#8Y2QDXKLE#9Aih<`~~g9^+O+9hPMg37@T hgYF#C=J-5eZc(Knwb>=&pPjWocGO=xf;`!^^aHYaGLrxR literal 938 zcma)4O>Yx15PeQUHrWOeN=x~!TOpBxlyHCxMMza?MWql9Nh@)59BbpUu~)WJ(O-rH z65RO}{1U|Et0^KvJ?z>u<9Rdh&HViR^*ew)@CZ4ECnMDxndJG)W@;1dgOE3<*im;r4b4YwNr5>nyD~J^F!}c$-q!LYInMO?fnCWoz@kxb{UGVwb9`XL%zOq z!cf?^eHCGap}Ht>;GA_OTxa-oY@G5oJyU%y?J(1+2-+H+IonIs(7)nwxjRt2uVgA5 zJ<5dqBof89FGw}!q_%nAD$k7#oLq9i10|}@8L_#XIH%HBf-o(nhnaPOU&Of-W{lcX zeBNwaK1{6$$3%5Wln2WN59gVRW5lRd5TVAfUT-Zl=me)tvOCtO+R{d~N5h_ST|u-N zR$Eqz^hD6C$euY1VW2(3N}|GIG|%c+A5IAy3|s$KoCK%Q2Rm(#VU6(rX__JK*pZX! zP>;KkRud^JGeW``@8b8yvIu_=W%b+-+erw6WFA$K!^|j00GtS82|tP diff --git a/bin/uebung05/logistics/material/MetGallonsKerosene.class b/bin/uebung05/logistics/material/MetGallonsKerosene.class index cc3f964c351dea41a3bdd1c6c784a0df62d6915c..7d8cbe22ad9cfaeb16a6336af695528ec1b59225 100644 GIT binary patch delta 388 zcmY+8%}&BV6ot>UfzsL{0*a`_YGO!?rfz%y7rHQUg)CgSC}boJwFTR*c?QxK@n=Dz ziE*PQK9uncxX{Vmxj%F7ch86MR-bHX%^AVW4C&a(Fwb-ydH1qf5UR%KTc} zZI!Sg(72VUJMhCWjuJP%afk9QPGltWiPoNAhr>FpKrU3Wu*}$AG@vpcH?e{$D{AJw_r?}3oJ6s$}StP|QK nWOEKxgKIRZtB}^<_kwvyuLSAUCK3PS?ER6W|H={MsjjUb623L$ literal 966 zcmb7CO>Yx15PeQUKDL3hr6qjVtvI9{k_y3vBBZKnp&|{3q?I^2o6*MY#$I`yivBVr zkl@a*;FlmKUk#`cQV+ZK*q-<1y_uiCzkUa>2U$QypgyGT&_p}08nKOZ>UEel2FjDu zDsCK;f2ZQun)CxXo06ddasta|>OwVQWunH%?iqz%pm@}3clKKQ2Le0In?ddh`Tvy^f_Tse<#iq)fXU4$n+qw&daNN z87ebE?UI}o8JE>A&jcKmc zE)cZs(1moUM@3h!k63+_!@`eD$b-itNyfj|cKtXV$t;({ z%)c#yB$v62GXFTqFA_OEII=A0aBP^c$_Ejyn-FN*Fwn4=IoxM?FuXnqZq9=+j>>Iq z(`#T^z%CM*XT9{Qm&&+2)jD_B;DpYoF-(P^Cmot%vogz@PZiYKU;_JziH0W6dR25W z$K0Maz^%qj%)?_v4Ii>wt@bloA8_6vE+<%cL5ufCAm(2R)}#U*Lc4^lR8Tdz$e=ry dv?V@InOjt4NcXx#{Ik>lV@LnBBgj)-t3OO6FYy2X literal 902 zcmaiy&2AGh6orqIkeN&aX-iA_uUooEStKlALlII{6%i?shbR28qGO$ z6<~#-wm=^{XI+Tf3_nkeQ<+UJ)qqPoN_8T!czH&W5q8ZlPR*K|I zP-SR6+bsE^&KOo=q3$FoZlO%GA_`V3Jf;!YrmsZAC%*yF;^3D6 diff --git a/bin/uebung05/logistics/material/RocketPods.class b/bin/uebung05/logistics/material/RocketPods.class index e305bfccddb77eb4c37641f79157dfd52f8a7e31..d7fdb58f847f47a3a5d5a3598a2dda5631475b26 100644 GIT binary patch literal 839 zcma)4O>fgc5PcKp!%34Sq@_?kQ&3S_0q&&&sR*g6iWDgXL`o!%8+S3=I(D(w{Z$_3pfxdGlu0zyEyy31A=hD<}{iWOAHE!OpH1#(_$;@>6dj zv`mx;y*IIcD)sC5IIW;aXq||2;e{d!yjSBB>FWy0gv|vEA2ShYrIk#*UZmefN)z1P zV0g4YI5;G9`wMawRNW(#pDE6MPH?(gBSP^YK9)5&Xw*?fjnM3?NDi{eSSCke97;mF zANwL43GRUH94zV&DkUrhQqN>;cenmmNEL+DIx28$d}{DJ)WSb~DbDf&u8xN~QBlBg zOgo#@6y0-igFRg^JHf-=_Gc#tjbNL9*Hnx@x^Y>v{^czn$%-2YtFqq0|sit zI7@u_LYZ!xvpafhieiKHIlM}|szxwhb_oSDEk>5u@^~kMZeO7Og%1TR^S5ll7Mgsn zPXo}h=~Y}on-PT>Ba7RKj*yfIX{1Y{SM#&J03C&Pe!sg(&4ig^~i)OaVkjaL*b-V zBB~#o;7q!Yrk{AoGOVA9b5W0k4(lI!r!sI1`9`bVIcOaoF;tsZL+vxqJ|bnCM*gd0>XIiiA@}^VphRB!|f>?iV@($@?;h zgr!Td2+l+(dF4`4Z7!+8`$i^Q8^>uY7;r}q<>#2hEI*tpsihF6!PGD|*73`89tb_A z_9UMt>lYf@osiI!Gwuu*++D=d_u->dgoky8t!i`OK-*cR!~L;CrKZxdH5&G$?FbUh zu+cPuh`NI6MC;jR)(up`uog=-r)|4+_zBayBv zq7kKfgc5PcKp!%34iO-oDpOsOiRRlxgRTsfrXSgo8^Yj%%|d+d4MH>;5VZ zd>kr)#1)Ajg_zw~G^%pIvb{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1Av$CAPX4=3lTP=z<>O-ER`=pBiyk3 zA>x4%MqpUpM)cN{l;|3zvoOkF>X0AvvgCnZ-f0|?pFv&(CI+I%pjb=dkrA@I#oHB% z)`cH%6KQ0yc{aLS8(e)OFnfV8m6NQbCb`f@U0EUK@dK%NxAH%7SL58j*%N2NJ+>^U z@(P2I()>Py(KY2^7K(Jh)APU9TIn2IU?T^6fyPkDWAq$Xwc0{*BUIqDwQ5Lgh0mQr zez%E^hpyzBKyB_GaUY$z?$nn~r#|O+3PUGQ#%XcmHXTE$_^D09?oI8?ZYh=Hq@ZZE zl{QWn;kZ1Ac^l|-8vb8_>l%58sRJ1hsy9)})%dQ^9ZDOf74S~EM`+$EFFoH9UX5rO z%_>Tho^Ffp2$|Y;KmQh*buOg}!cEjF#2|fQL&9pppngTdg6UmY;suz5ixV&oml({H zdQ_oqvS2yi=UHBj$zT0RETHRW=-&$Wo{Kh9Cp6d{9076m$^ekWzgE6wQiIpQe-(we&@8d8*i1UPaLRpMH3twUK{q)plnEsyR z&CoSw0eWAiYm6rpT!E{J?;2buPlq9{e8O-eg<-J|!>yqio~1I}hC4kBnSnjL=)>R) Y&G06bVYbgC=Thddm&$OD`p&@p-&*hSvj6}9 diff --git a/bin/uebung05/logistics/storage/FloatStorage.class b/bin/uebung05/logistics/storage/FloatStorage.class index 912a91f4486c33e6f48b768c360d7ca2f0a52932..94770e762b7dd348d67f7e48c76540606d2f060c 100644 GIT binary patch literal 2544 zcmb7F-%}e^6#i}!vLvL1MkocOMt-zOXbGUTDz&vxVyOXI1F6`jC0xRmWjD=kXshF! z|3W*?==kbeM`!xOsWbZSlYf!=-Q5KOtkpi`?%A{VeCIpoJNM>~zh3?Z;41EDhzOi* z%C)9do48Og?V91ZM%5`euHDdUvQRW_-7Whs8e#%ncl8~;VCq(_u(WnpR$UG8aEN+rI4gy5z_*3MMka*h@wDrTYo^;C4(@R1;(?*|BY14RhWO) zUYAKk(Un39CkU9$RW!UIFtlIUylKjsZeDHFn%mN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`5+z@LbK#~FGHev>Szgv_fF`4TJgz-V=G0N&uGg#^QVTh`isV{xVIsfHUyt`nBS zNNLfK<%%C|cb67Y3{(5!K$Jb(y_O!Gq4InvLz1b z=#@+VUNcM*^SQxeO1;O-@w$>B_f^DOB66BMB0qT;&@)E;`fQX= z0(7r(TY=IMAN=Ny@MF-L&o*eA4>l_K5R@N zKMosL7-kC9VG(Xe+VvZ2agpY#t}i#+t(w$3g6fVTUsaCq_JnrheeW<8HQkV5q1vyZ zQx!!@u^O@?8iuh#aiEI~ZZY_0DEteo3Q{n|5^FscZn99UWN?pR_Vg%7eWY!2+=xYP zIm!>)En+8Cs1!;2sZXxwb$3K!I^OLD9dz2-TE;qxvrcpts>jk#tY`3uf!OJ5>aX%Y z=6Dfx!;pzoH~S3Jl$aAWkwJ;!{pqpAo#{*oA}Y33TRZZd8&_72oO(UC6kkkLS@C0L zsWnSK`rt|}w9`DY@SG^`-C$vbVd5AQ4C5Pa7*YxEPzwn$3u2zyeiC_HLYh_ySjf4MjpKB>OqMB{?eCcQn9qI1<)0m&X&TdH1NvrY9Pg}cT*bA{*>&6)L5S_T z2saG~OGbp-xMM`PYd}~vBJgt{tQ!$#F*g!JV(1jmRlkB1`&Lnciz x1V)4f6h;t+uP7RrJTf9Y#*-0*VGK_V2ww~cNtB7Z1QxMGGw_1GH0_^Z`41m>8p!|v diff --git a/bin/uebung07/quantities/plain/Time.class b/bin/uebung07/quantities/plain/Time.class index f266978968e304a732b420236057f1eea6e1abc2..73a6f04e8cc910a0c5459facf1350e233a46d66a 100644 GIT binary patch literal 2156 zcmeHI!EVz)5PfUXBsHOh00jyyo0NhBCFubPi6A6OK^$Bplr|E_O}a`K>~*l$5jpW$ zNFc$Tk3x(aLUY(AEfSo#%+9Q5pPy&ut-t^H{1w1cY!=`!tfsP)>fYwV#`{!gql}VC zqaO&R8@no$1>_j2$LG8r9U3y^QmqVw>u1OI$Zs;_A1iX6Ff4f6NBgxlWj~Ad3H&U> z;#)BgjX>yL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F&X{Hk4 zl+ir1W|GMCkcYL)G)q*h9M63wEvax~QgNZVe45)X7=|ILXwcpJ+LRroc22fZQywn59JuL4y@*(!tqv3=??s^J@| gH?8mm^$%htGzkk0Xud{R|50HbEn*BCge7c#1FBMt=Kufz diff --git a/bin/uebung09/chess/Board.class b/bin/uebung09/chess/Board.class index bfa82bb37b33ceb0aeb5eaaee3fe498c1dabdc1b..8dee0abad3d8fd1f824fb8c39b8e981d60883f9d 100644 GIT binary patch literal 3418 zcmaJ@`*Ryt75=U)du4f@C~_1hwMpe94Yq7YiQ}eCSGLrrZbL?OXRd90<4wefma ztX64E4CN6XEp368LR%g!&|n_J3^1)j90vLeFvCB<|I*12zI#`)WZ9`bcXjvNbH97e zcOG~D^S`yf1DL=cG=v0pR?NAIGk^GaI$t!)<@71n@Cq8j0T zwics6KKArCuLpDtT!^9%`!(#_8~~-E;{YBJh|HV5LL{~Q1I<{$SsFeru&*I1wr$QE z_JlWISu`F0sq1;O);}{+j&{V7^e1V7hCnq=A9dHoEabz@{*pO(! z(K^QP1YxcjcEvn%Mc`ngc|kH}27*Lsv^dVZ9@p_CCIq?{jRiC7I(fstX!%9X%D&5pkFW+KQ5^dBxgsqveZ+cg`%ST+7B0!WD@|z7qY}Ezlyc z1jI7cJ(-|llC!*Pb4Cb}=g9IHwzvF(463K23^Et7WdHJAkFjEL)q|}18s(V|T*Gw@ z#0RGi_9ZUE!yN+XCC)my!LPNjI$Y!*x<16?oPxIZt`DWd9O8W3M9bd;c1fqGv z$r`1gAwIB&T#6HZJdQBNrJ>)}@g01Z>=ljjjIxPskr4}(j>yM|z@eIr8~k`+gVpdd zb7;Mt*Vsy{-Z@gJ@esvJ_`Yl-KVZ@I^8%RE_)G2Jc544i?amsc5vhNwCY11#dg>n=>#v2-bB55EES8yBL74@^gg;$cafOAjqdlc`_F3ULkcU* zXO#8Off%uRIPalECmJ#M|1ti8-TUDx{@;k-LP>6L70J{sbl%0m*?9kLr2dhjXqe;3 zDn_S={)L@#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1cKEoKQ zlv(Df%F1+vJB}%f1$>BWjQJP}xK1uX3nTalH|VQKKV^K(tlp&N0rb7Wka&X(X;8z( zl6Z~XuemSOy&dQFCiPS;1}1*N;Bc}wHA4E48=dJL51|;5;M)QX#89XlLlKy7r<}l5 zm$Zv^t4q=HU5j=HcVlRqEp#jUg{~GpVImW#gfZL?JMv77rT-NkEQptQv^Bsh9ftbj j0F$hRO2gyW)aUqu>s{Qj2(T9ZKf#g;k!yz)tK;B*q|-Bj diff --git a/bin/uebung09/iterator/Array2dIterator.class b/bin/uebung09/iterator/Array2dIterator.class index 6dff3bddb674e0f5dd16689327e361e814067f16..b957bf400a6cbbf4554ef5dbdb93124c7016f559 100644 GIT binary patch literal 1481 zcmah}OHUI~7(KT$rBGW6Z7G7~C5mkkibX}BREfrfq{0G%0X7VDEQ6&bWols0A92No zg(d=tCM;dJaO+?2HyB^%&P>arBrNWo`#sP39__ckpHBfyBjbTfps%8@Rf_qM@uXqu zWz8&=lhft0wwKDyII;(-K+C4~PD>WFVm>*ywyCe19yAC9Ep5d#3dyRsfLoLC0^yaF z?B%FQfu?yQU)0P>S*PpD%EAJ5YQfks1=?(XE1yLoOEt}%SLxG?%+TmIiaC8(K+Fg< zq>Z9sW(3+}SAoYD1sZ8#qsnz^D;rXFl&ZO5 z>%0F*v>u+Ca+trGSR`zhUM;E=_vA8w&Xw`gi(=B!LupgoiA0&>-tMWb~}7&mxpD20@LY*iTW&=deylBR~OtShdxeO;c@eJ z$tB^tiN7lsygVF!P4-jfI?<+5*Me5cwr3C_YPTr6_-#*|Ae>N+_!vAwM}xQ7^T39VTrfUuv? z!_%&=9wYu0ZuL+(q+PXeo9PAgl6oJ4%p&pZoM8v=3`J@rN|J}|2@+@o4{8;sEZ8{~ zA}NI|*d^jFtE;S=*dMGoS#5*mGIkCvREH)t63r!ln>CP83**KHZFq(r zeupTJ0*#3SNEnC+L^$+|WB*bt2 R`v!gy)J0cWY1&zyssC@)BLx5e delta 632 zcmZXSJx>Bb5Qg8~JLG`lTfR?0#1qiOghDMe@q?dWthH1te*q1Z9U-x|!h%8*iHQXz ziBxvB7XAejV~G0h9U{hDc6VlWX7+g}_ZWCL{KL6(=({&zL>N7$ zFL{Qm_lQ=t9%id6JtS|Pf;9ISbnbrc1`7jhU?Rgv(k(+4IeKj1Jlhbk=$L# tumVM.deposit(hansMueller, 10)); - - assertEquals(15, vm1.getEuros()); - assertEquals(2, vm2.getEuros()); - assertEquals(0, tumVM.getEuros()); - assertEquals(1000, hansMueller.getBalance()); - assertEquals(500, peterSchmidt.getBalance()); - assertEquals(200, thomasMayer.getBalance()); - - hansMueller.pass(unibwMensa); - assertEquals(733, hansMueller.getBalance()); - assertEquals(1, unibwMensa.getCounter()); - assertEquals(267, unibwMensa.getCents()); - - frankSmith.pass(unibwMensa); - assertEquals(0, accountMgt.getAmount(CONF_ACCOUNT)); - assertThrows(RejectedException.class, () -> conf.pass(unibwMensa)); - assertThrows(RejectedException.class, () -> thomasMayer.pass(unibwMensa)); - hansMueller.pass(unibwMensa); - hansMueller.pass(unibwMensa); - assertEquals(199, hansMueller.getBalance()); - - assertThrows(RejectedException.class, () -> hansMueller.pass(unibwMensa)); - - accountMgt.deposit(CONF_ACCOUNT, 1000); - accountMgt.deposit(OTHER_ACCOUNT, 2000); - assertEquals(100000, accountMgt.getAmount(CONF_ACCOUNT)); - assertEquals(200000, accountMgt.getAmount(OTHER_ACCOUNT)); - - conf.pass(unibwMensa); - assertEquals(99505, accountMgt.getAmount(CONF_ACCOUNT)); - assertEquals(200000, accountMgt.getAmount(OTHER_ACCOUNT)); - assertEquals(5, unibwMensa.getCounter()); - } -} diff --git a/src/test/oop/ch08/gui/mvc/TestModel.java b/src/test/oop/ch08/gui/mvc/TestModel.java deleted file mode 100644 index 2275ed6..0000000 --- a/src/test/oop/ch08/gui/mvc/TestModel.java +++ /dev/null @@ -1,24 +0,0 @@ -package oop.ch08.gui.mvc; - -import oop.ch08.gui.mvc.model.CounterModel; -import org.junit.Test; - -import static org.junit.Assert.assertEquals; - -public class TestModel { - @Test - public void testInitWithZero() { - final CounterModel model = new CounterModel(); - assertEquals(0, model.getCounter()); - } - - @Test - public void testInc() { - final CounterModel model = new CounterModel(); - int counter = model.getCounter(); - model.increment(); - assertEquals(++counter, model.getCounter()); - model.increment(); - assertEquals(++counter, model.getCounter()); - } -} diff --git a/src/test/oop/ch09/calc/test/AdHocCalculatorEdgePairTest.java b/src/test/oop/ch09/calc/test/AdHocCalculatorEdgePairTest.java deleted file mode 100644 index df6d4ff..0000000 --- a/src/test/oop/ch09/calc/test/AdHocCalculatorEdgePairTest.java +++ /dev/null @@ -1,2040 +0,0 @@ -package oop.ch09.calc.test; - -import oop.ch06.calc.AdHocCalculator; -import oop.ch06.calc.Ops; -import org.junit.Before; -import org.junit.Test; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -public class AdHocCalculatorEdgePairTest { - private AdHocCalculator calc; - - @Before - public void setup() { - calc = new AdHocCalculator(); - calc.digit(6); - calc.binOp(Ops.MULT); - calc.digit(7); - calc.eval(); - } - - @Test - public void test0() { - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(45.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(45.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-45.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(-45.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(-51.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(-51.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(-51.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(-102.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(5.0345753587649823E-45, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-5.0345753587649823E-45, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(0.3, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(-1.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-5.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(148.4131591025766, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(0.03368973499542734, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.03368973499542734, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(0.1835476368560144, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test1() { - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(0.6, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1096.6331584284585, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(-1093.6331584284585, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1196033.485214206, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test2() { - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test3() { - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test4() { - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - } - - @Test - public void test5() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-9.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(51.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(51.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(51.0, calc.getValue(), 1e-10); - } - - @Test - public void test6() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - } - - @Test - public void test7() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test8() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test9() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test10() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(35.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - } - - @Test - public void test11() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - } - - @Test - public void test12() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(93.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(2.451245542920086E40, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test13() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test14() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test15() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test16() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(84.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(84.0, calc.getValue(), 1e-10); - } - - @Test - public void test17() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1764.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(1764.0, calc.getValue(), 1e-10); - } - - @Test - public void test18() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test19() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test20() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test21() { - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(20.085536923187668, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test22() { - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test23() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(-6.0, calc.getValue(), 1e-10); - } - - @Test - public void test24() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test25() { - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(6.0, calc.getValue(), 1e-10); - } - - @Test - public void test26() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test27() { - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test28() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(2.0, calc.getValue(), 1e-10); - } - - @Test - public void test29() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test30() { - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test31() { - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test32() { - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test33() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test34() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(69.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(69.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-69.0, calc.getValue(), 1e-10); - } - - @Test - public void test35() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(6.0, calc.getValue(), 1e-10); - } - - @Test - public void test36() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test37() { - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test38() { - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(2.3, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(2.3, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(2.3, calc.getValue(), 1e-10); - } - - @Test - public void test39() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test40() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test41() { - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - } - - @Test - public void test42() { - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test43() { - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test44() { - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test45() { - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test46() { - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(12.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(12.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(3.4641016151377544, calc.getValue(), 1e-10); - } - - @Test - public void test47() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test48() { - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test49() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(8103.083927575384, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test50() { - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.digit(8); - assertEquals(78.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(8.831760866327848, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test51() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test52() { - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(72.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test53() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(64.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test54() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(421.0, calc.getValue(), 1e-10); - } - - @Test - public void test62() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test63() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test64() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test65() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test66() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(-0.0, calc.getValue(), 1e-10); - } - - @Test - public void test67() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test68() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test69() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test70() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test71() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(0.3, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(0.33, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test72() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test73() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test74() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test75() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(0.7, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(0.7, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test76() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test77() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test78() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(0.9, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(2.45960311115695, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test79() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test80() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test81() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test82() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test83() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test84() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test85() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-4.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(0.01831563888873418, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(4.7, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(109.94717245212352, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test86() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(652.4540390039687, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test87() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.5457298950218306, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test88() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.5457298950218306, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(12.752532700090239, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(29.24746729990976, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test89() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test90() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(35.51925930159214, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test91() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test92() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(0.3, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - } - - @Test - public void test93() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-1.73927494152050099E18, calc.getValue(), 1e-10); - } - - @Test - public void test94() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.5457298950218306, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertTrue(Double.isNaN(calc.getValue())); - calc.digit(6); - assertTrue(Double.isNaN(calc.getValue())); - } - - @Test - public void test95() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - } - - @Test - public void test96() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test97() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(-1764.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test98() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - } - - @Test - public void test99() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(2.4147993510032952E-17, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(2.4147993510032952E-17, calc.getValue(), 1e-10); - } - - @Test - public void test100() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test101() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(48.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.1347969605334383E21, calc.getValue(), 1e-10); - } - - @Test - public void test102() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test103() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(51.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(515.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(-473.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(-473.0, calc.getValue(), 1e-10); - } - - @Test - public void test104() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(272.19110933313016, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test105() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test106() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(84.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test107() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(7.304954754386104E19, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test108() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test109() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test110() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(168.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test111() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - } - - @Test - public void test112() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(44.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test113() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test114() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test115() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(252.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(2.7682763318657856E109, calc.getValue(), 1e-10); - } - - @Test - public void test116() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test117() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test118() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test119() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(252.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - } - - @Test - public void test120() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test121() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(43.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(43.0, calc.getValue(), 1e-10); - } - - @Test - public void test122() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test123() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test124() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(36.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test125() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test126() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test127() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(41.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.4031242374328485, calc.getValue(), 1e-10); - } - - @Test - public void test128() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(54.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - } - - @Test - public void test129() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(126.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test130() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.8284271247461903, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(44.82842712474619, calc.getValue(), 1e-10); - } - - @Test - public void test131() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(33.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test132() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-6.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test133() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(2980.9579870417283, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test134() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertTrue(Double.isNaN(calc.getValue())); - } - - @Test - public void test135() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - } - - @Test - public void test136() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - } - - @Test - public void test137() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(27.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(27.0, calc.getValue(), 1e-10); - } - - @Test - public void test138() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(31.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(73.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test139() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(43.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-43.0, calc.getValue(), 1e-10); - } - - @Test - public void test140() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(20.085536923187668, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test141() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(75.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test142() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test143() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test144() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test145() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test146() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test147() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertTrue(Double.isNaN(calc.getValue())); - calc.binOp(Ops.MINUS); - assertTrue(Double.isNaN(calc.getValue())); - } - - @Test - public void test148() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test149() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test150() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(0.6, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test151() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test152() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test153() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test154() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-1.0, calc.getValue(), 1e-10); - } - - @Test - public void test155() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(0.4, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(41.6, calc.getValue(), 1e-10); - } - - @Test - public void test156() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test157() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test158() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - } - - @Test - public void test159() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - } - - @Test - public void test160() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(0.9, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(0.97, calc.getValue(), 1e-10); - } -} diff --git a/src/test/oop/ch09/calc/test/AdHocCalculatorEdgeTest.java b/src/test/oop/ch09/calc/test/AdHocCalculatorEdgeTest.java deleted file mode 100644 index 3d7efc8..0000000 --- a/src/test/oop/ch09/calc/test/AdHocCalculatorEdgeTest.java +++ /dev/null @@ -1,280 +0,0 @@ -package oop.ch09.calc.test; - -import oop.ch06.calc.AdHocCalculator; -import oop.ch06.calc.Ops; -import org.junit.Before; -import org.junit.Test; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -public class AdHocCalculatorEdgeTest { - private AdHocCalculator calc; - - @Before - public void setup() { - calc = new AdHocCalculator(); - calc.digit(6); - calc.binOp(Ops.MULT); - calc.digit(7); - calc.eval(); - } - - @Test - public void test0() { - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(62.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(62.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test1() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.5457298950218306, calc.getValue(), 1e-10); - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(5.25, calc.getValue(), 1e-10); - } - - @Test - public void test2() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test3() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test4() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test5() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test6() { - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test7() { - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test8() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(9.0, calc.getValue(), 1e-10); - } - - @Test - public void test9() { - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-5.0, calc.getValue(), 1e-10); - } - - @Test - public void test11() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test12() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(0.2, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.2214027581601699, calc.getValue(), 1e-10); - } - - @Test - public void test13() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test14() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test15() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(-1.73927494152050099E18, calc.getValue(), 1e-10); - } - - @Test - public void test16() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(-1.73927494152050099E18, calc.getValue(), 1e-10); - } - - @Test - public void test17() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test18() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertTrue(Double.isNaN(calc.getValue())); - } - - @Test - public void test19() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(25.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-25.0, calc.getValue(), 1e-10); - } - - @Test - public void test20() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(51.0, calc.getValue(), 1e-10); - } - - @Test - public void test21() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.6457513110645907, calc.getValue(), 1e-10); - } - - @Test - public void test22() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test23() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(0.3, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test24() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - } -} diff --git a/src/test/oop/ch09/calc/test/CalculatorEdgePairTest.java b/src/test/oop/ch09/calc/test/CalculatorEdgePairTest.java deleted file mode 100644 index f3254d6..0000000 --- a/src/test/oop/ch09/calc/test/CalculatorEdgePairTest.java +++ /dev/null @@ -1,2040 +0,0 @@ -package oop.ch09.calc.test; - -import oop.ch06.calc.Ops; -import oop.ch07.calc.Calculator; -import org.junit.Before; -import org.junit.Test; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -public class CalculatorEdgePairTest { - private Calculator calc; - - @Before - public void setup() { - calc = new Calculator(); - calc.digit(6); - calc.binOp(Ops.MULT); - calc.digit(7); - calc.eval(); - } - - @Test - public void test0() { - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(45.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(45.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-45.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(-45.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(-51.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(-51.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(-51.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(-102.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(5.0345753587649823E-45, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-5.0345753587649823E-45, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(0.3, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(-1.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-5.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(148.4131591025766, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(0.03368973499542734, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.03368973499542734, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(0.1835476368560144, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test1() { - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(0.6, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1096.6331584284585, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(-1093.6331584284585, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1196033.485214206, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test2() { - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test3() { - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test4() { - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - } - - @Test - public void test5() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-9.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(51.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(51.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(51.0, calc.getValue(), 1e-10); - } - - @Test - public void test6() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - } - - @Test - public void test7() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test8() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test9() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test10() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(35.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - } - - @Test - public void test11() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - } - - @Test - public void test12() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(93.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(2.451245542920086E40, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test13() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test14() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test15() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test16() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(84.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(84.0, calc.getValue(), 1e-10); - } - - @Test - public void test17() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1764.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(1764.0, calc.getValue(), 1e-10); - } - - @Test - public void test18() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test19() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test20() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test21() { - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(20.085536923187668, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test22() { - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test23() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(-6.0, calc.getValue(), 1e-10); - } - - @Test - public void test24() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test25() { - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(6.0, calc.getValue(), 1e-10); - } - - @Test - public void test26() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test27() { - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test28() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(2.0, calc.getValue(), 1e-10); - } - - @Test - public void test29() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test30() { - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test31() { - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test32() { - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test33() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test34() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(69.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(69.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-69.0, calc.getValue(), 1e-10); - } - - @Test - public void test35() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(6.0, calc.getValue(), 1e-10); - } - - @Test - public void test36() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test37() { - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test38() { - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(2.3, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(2.3, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(2.3, calc.getValue(), 1e-10); - } - - @Test - public void test39() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test40() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test41() { - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - } - - @Test - public void test42() { - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test43() { - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test44() { - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test45() { - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test46() { - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(12.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(12.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(3.4641016151377544, calc.getValue(), 1e-10); - } - - @Test - public void test47() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test48() { - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test49() { - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(8103.083927575384, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test50() { - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.digit(8); - assertEquals(78.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(8.831760866327848, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test51() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test52() { - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(72.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test53() { - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(64.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test54() { - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(421.0, calc.getValue(), 1e-10); - } - - @Test - public void test62() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test63() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test64() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test65() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test66() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(-0.0, calc.getValue(), 1e-10); - } - - @Test - public void test67() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test68() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test69() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test70() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test71() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(0.3, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(0.33, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test72() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test73() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test74() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test75() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(0.7, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(0.7, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test76() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test77() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test78() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(0.9, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(2.45960311115695, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test79() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test80() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test81() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test82() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test83() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test84() { - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test85() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-4.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(0.01831563888873418, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(4.7, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(109.94717245212352, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test86() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(652.4540390039687, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test87() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.5457298950218306, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test88() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.5457298950218306, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(12.752532700090239, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(29.24746729990976, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test89() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test90() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(35.51925930159214, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test91() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test92() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(0.3, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - } - - @Test - public void test93() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-1.73927494152050099E18, calc.getValue(), 1e-10); - } - - @Test - public void test94() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.5457298950218306, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertTrue(Double.isNaN(calc.getValue())); - calc.digit(6); - assertTrue(Double.isNaN(calc.getValue())); - } - - @Test - public void test95() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - } - - @Test - public void test96() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test97() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(-1764.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test98() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - } - - @Test - public void test99() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(2.4147993510032952E-17, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(2.4147993510032952E-17, calc.getValue(), 1e-10); - } - - @Test - public void test100() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test101() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(48.48074069840786, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.1347969605334383E21, calc.getValue(), 1e-10); - } - - @Test - public void test102() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test103() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(51.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(515.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(-473.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(-473.0, calc.getValue(), 1e-10); - } - - @Test - public void test104() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(272.19110933313016, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test105() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test106() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(84.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test107() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(7.304954754386104E19, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test108() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test109() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test110() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.48074069840786, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(168.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test111() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - } - - @Test - public void test112() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.73927494152050099E18, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(44.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test113() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test114() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MINUS); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test115() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(252.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(2.7682763318657856E109, calc.getValue(), 1e-10); - } - - @Test - public void test116() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test117() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test118() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test119() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(252.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - } - - @Test - public void test120() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test121() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(43.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(43.0, calc.getValue(), 1e-10); - } - - @Test - public void test122() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test123() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test124() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(36.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test125() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test126() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test127() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(41.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(6.4031242374328485, calc.getValue(), 1e-10); - } - - @Test - public void test128() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(5.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(54.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - } - - @Test - public void test129() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(126.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test130() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(2.8284271247461903, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(44.82842712474619, calc.getValue(), 1e-10); - } - - @Test - public void test131() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(9.0, calc.getValue(), 1e-10); - calc.binOp(Ops.DIV); - assertEquals(33.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test132() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-6.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test133() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(8); - assertEquals(8.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(2980.9579870417283, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - } - - @Test - public void test134() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertTrue(Double.isNaN(calc.getValue())); - } - - @Test - public void test135() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - } - - @Test - public void test136() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(4); - assertEquals(4.0, calc.getValue(), 1e-10); - } - - @Test - public void test137() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(2); - assertEquals(2.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(27.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(27.0, calc.getValue(), 1e-10); - } - - @Test - public void test138() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(31.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(73.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test139() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(1); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(43.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-43.0, calc.getValue(), 1e-10); - } - - @Test - public void test140() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(20.085536923187668, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test141() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - calc.digit(5); - assertEquals(75.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test142() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(3); - assertEquals(3.0, calc.getValue(), 1e-10); - } - - @Test - public void test143() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.PLUS); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test144() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test145() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test146() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test147() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertTrue(Double.isNaN(calc.getValue())); - calc.binOp(Ops.MINUS); - assertTrue(Double.isNaN(calc.getValue())); - } - - @Test - public void test148() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.binOp(Ops.MULT); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test149() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test150() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(6); - assertEquals(0.6, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test151() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - } - - @Test - public void test152() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test153() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.clear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test154() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.EXP); - assertEquals(1.0, calc.getValue(), 1e-10); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-1.0, calc.getValue(), 1e-10); - } - - @Test - public void test155() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(4); - assertEquals(0.4, calc.getValue(), 1e-10); - calc.binOp(Ops.MINUS); - assertEquals(41.6, calc.getValue(), 1e-10); - } - - @Test - public void test156() { - calc.binOp(Ops.PLUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.unOp(Ops.SQRT); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(7.0, calc.getValue(), 1e-10); - } - - @Test - public void test157() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.eval(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - } - - @Test - public void test158() { - calc.binOp(Ops.DIV); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.digit(6); - assertEquals(6.0, calc.getValue(), 1e-10); - } - - @Test - public void test159() { - calc.binOp(Ops.MINUS); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.allClear(); - assertEquals(0.0, calc.getValue(), 1e-20); - calc.unOp(Ops.CHANGE_SIGN); - assertEquals(-0.0, calc.getValue(), 1e-10); - } - - @Test - public void test160() { - calc.binOp(Ops.MULT); - assertEquals(42.0, calc.getValue(), 1e-10); - calc.dot(); - assertEquals(0.0, calc.getValue(), 1e-10); - calc.digit(9); - assertEquals(0.9, calc.getValue(), 1e-10); - calc.digit(7); - assertEquals(0.97, calc.getValue(), 1e-10); - } -} diff --git a/src/test/oop/ch09/testing/ExceptionTest.java b/src/test/oop/ch09/testing/ExceptionTest.java deleted file mode 100644 index 20533be..0000000 --- a/src/test/oop/ch09/testing/ExceptionTest.java +++ /dev/null @@ -1,34 +0,0 @@ -package oop.ch09.testing; - -import org.junit.Test; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -public class ExceptionTest { - @Test - public void testDivZero1() { - int zero = 0; - int result = 4 / zero; - assertTrue(true); - } - - @Test - public void testDivZero2() { - int zero = 0; - try { - int result = 4 / zero; - fail("ArithmeticException kam nicht"); - } - catch (ArithmeticException ex) { - assertEquals("/ by zero", ex.getMessage()); - } - } - - @Test(expected = ArithmeticException.class) - public void testDivZero2b() { - int zero = 0; - int result = 4 / zero; - } -} diff --git a/src/test/uebung/uebung04/tournament/TournamentTest.java b/src/test/uebung/uebung04/tournament/TournamentTest.java deleted file mode 100644 index 5dbff2d..0000000 --- a/src/test/uebung/uebung04/tournament/TournamentTest.java +++ /dev/null @@ -1,134 +0,0 @@ -package test.uebung.uebung04.tournament; - -import org.junit.Before; -import org.junit.Test; - -import java.util.Collection; -import java.util.HashSet; -import java.util.Set; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThrows; - -public class TournamentTest { - - private static final String BORGHOFF = "Prof. Borghoff"; - private static final String HOMMEL = "Prof. Hommel"; - private static final String KOCH = "Prof. Koch"; - private static final String MINAS = "Prof. Minas"; - private static final String BUCHENRIEDER = "Prof. Buchenrieder"; - private static final String DREO = "Prof. Dreo"; - private static final String ROSE = "Prof. Rose"; - private static final String SIEGLE = "Prof. Siegle"; - private static final String TEEGE = "Prof. Teege"; - private static final Set SET1 = Set.of(BORGHOFF, HOMMEL, KOCH, MINAS, BUCHENRIEDER, DREO, ROSE, SIEGLE, TEEGE); - private static final Set SET2 = Set.of(BORGHOFF, MINAS, SIEGLE, HOMMEL, DREO); - private static final Set SET3 = Set.of(BORGHOFF, MINAS, SIEGLE); - private static final Set SET4 = Set.of(MINAS, SIEGLE); - private static final Set SET5 = Set.of(MINAS); - - private Tournament tournament; - private Game r1s1; - private Game r1s2; - private Game r1s3; - private Game r1s4; - private Game r2s1; - private Game r2s2; - private Game r3s1; - private Game r4s1; - - @Before - public void setup() { - r1s1 = new SeededGame(HOMMEL, KOCH); - r1s2 = new SeededGame(MINAS, BUCHENRIEDER); - r1s3 = new SeededGame(DREO, ROSE); - r1s4 = new SeededGame(SIEGLE, TEEGE); - r2s1 = new ByeGame(BORGHOFF, r1s1); - r2s2 = new OrdinaryGame(r1s2, r1s3); - r3s1 = new OrdinaryGame(r2s1, r2s2); - r4s1 = new OrdinaryGame(r3s1, r1s4); - tournament = new Tournament("UniBw Sportschießen", r4s1); - } - - @Test - public void testBeforeFirstRound() { - assertEquals(SET1, asSet(tournament.getAllPlayers())); - assertEquals(SET1, asSet(tournament.getRemainingPlayers())); - } - - @Test - public void testFirstRound() { - r1s1.setWinner(HOMMEL); - r1s2.setWinner(MINAS); - r1s3.setWinner(DREO); - r1s4.setWinner(SIEGLE); - assertEquals(SET1, asSet(tournament.getAllPlayers())); - assertEquals(SET2, asSet(tournament.getRemainingPlayers())); - } - - @Test - public void testSecondRound() { - r1s1.setWinner(HOMMEL); - r1s2.setWinner(MINAS); - r1s3.setWinner(DREO); - r1s4.setWinner(SIEGLE); - r2s1.setWinner(BORGHOFF); - r2s2.setWinner(MINAS); - assertEquals(SET1, asSet(tournament.getAllPlayers())); - assertEquals(SET3, asSet(tournament.getRemainingPlayers())); - } - - @Test - public void testThirdRound() { - r1s1.setWinner(HOMMEL); - r1s2.setWinner(MINAS); - r1s3.setWinner(DREO); - r1s4.setWinner(SIEGLE); - r2s1.setWinner(BORGHOFF); - r2s2.setWinner(MINAS); - r3s1.setWinner(MINAS); - assertEquals(SET1, asSet(tournament.getAllPlayers())); - assertEquals(SET4, asSet(tournament.getRemainingPlayers())); - } - - @Test - public void testCompleteTournament() { - r1s1.setWinner(HOMMEL); - r1s2.setWinner(MINAS); - r1s3.setWinner(DREO); - r1s4.setWinner(SIEGLE); - r2s1.setWinner(BORGHOFF); - r2s2.setWinner(MINAS); - r3s1.setWinner(MINAS); - r4s1.setWinner(MINAS); - assertEquals(SET1, asSet(tournament.getAllPlayers())); - assertEquals(SET5, asSet(tournament.getRemainingPlayers())); - } - - @Test - public void testException() { - r1s1.setWinner(HOMMEL); - r1s2.setWinner(MINAS); - r1s3.setWinner(DREO); - r1s4.setWinner(SIEGLE); - r2s1.setWinner(BORGHOFF); - r2s2.setWinner(MINAS); - r3s1.setWinner(MINAS); - assertThrows(IllegalArgumentException.class, () -> r4s1.setWinner(BUCHENRIEDER)); - } - - @Test(expected = IllegalStateException.class) - public void testException2() { - r4s1.setWinner(MINAS); - } - - @Test - public void testException3() { - r1s1.setWinner(HOMMEL); - assertThrows(IllegalStateException.class, () -> r1s1.setWinner(HOMMEL)); - } - - private static Set asSet(Collection collection) { - return new HashSet<>(collection); - } -} diff --git a/src/test/uebung/uebung05/logistics/ManagerTest.java b/src/test/uebung/uebung05/logistics/ManagerTest.java index 0eb3a56..9038428 100644 --- a/src/test/uebung/uebung05/logistics/ManagerTest.java +++ b/src/test/uebung/uebung05/logistics/ManagerTest.java @@ -1,13 +1,18 @@ -package logistics; +package test.uebung.uebung05.logistics; + +import uebung05.logistics.Helicopter; +import uebung05.logistics.Manager; +import uebung05.logistics.Tank; +import uebung05.logistics.material.BulletBelts; +import uebung05.logistics.material.Grease; +import uebung05.logistics.material.LiterDiesel; +import uebung05.logistics.material.MetGallonsKerosene; +import uebung05.logistics.material.Oil; +import uebung05.logistics.material.RocketPods; +import uebung05.logistics.material.ShellBatches; +import uebung05.logistics.quantities.NeedCollector; + -import logistics.material.BulletBelts; -import logistics.material.Grease; -import logistics.material.LiterDiesel; -import logistics.material.MetGallonsKerosene; -import logistics.material.Oil; -import logistics.material.RocketPods; -import logistics.material.ShellBatches; -import logistics.quantities.NeedCollector; import org.junit.Before; import org.junit.Test; diff --git a/src/test/uebung/uebung05/logistics/storage/IntStorageTest.java b/src/test/uebung/uebung05/logistics/storage/IntStorageTest.java index b6ca56a..5f85bfa 100644 --- a/src/test/uebung/uebung05/logistics/storage/IntStorageTest.java +++ b/src/test/uebung/uebung05/logistics/storage/IntStorageTest.java @@ -1,6 +1,8 @@ package test.uebung.uebung05.logistics.storage; -import uebung05.*; +import uebung05.logistics.material.Oil; +import uebung05.logistics.storage.IntStorage; + import org.junit.Before; import org.junit.Test; diff --git a/src/uebung04/ByeGame.java b/src/uebung04/ByeGame.java index dbb47f1..a0797a4 100644 --- a/src/uebung04/ByeGame.java +++ b/src/uebung04/ByeGame.java @@ -1,20 +1,26 @@ package uebung04; +import java.util.ArrayList; + public class ByeGame extends Game{ private String player1; + private String player2; - public ByeGame(String player1, Game player2){ + public ByeGame(String player1, String player2){ this.player1 = player1; this.player2 = player2; } public String getPlayer1(){return player1;} + public String getPlayer2(){return player2;} - public ??? getPlayer2(){ - return player2.getAllPlayers(); + @Override + public ArrayList getAllPlayers() { + // TODO Auto-generated method stub + throw new UnsupportedOperationException("Unimplemented method 'getAllPlayers'"); } diff --git a/src/uebung04/OrdinaryGame.java b/src/uebung04/OrdinaryGame.java index 3d718aa..7bf948f 100644 --- a/src/uebung04/OrdinaryGame.java +++ b/src/uebung04/OrdinaryGame.java @@ -7,7 +7,7 @@ public class OrdinaryGame extends Game{ private final int id; - public OrdinaryGame(Game player1, Game player2){ + public OrdinaryGame(String player1, String player2){ this.player1 = player1; this.player2 = player2; @@ -15,18 +15,16 @@ public class OrdinaryGame extends Game{ counter++; } - public ArrayList getPlayer1(){ - return player1.getAllPlayers(); + public String getPlayer1(){ + return null; } - public ArrayList getPlayer2(){ - return player2.getAllPlayers(); + public String getPlayer2(){ + return null; } public ArrayList getAllPlayers(){ - ArrayList rtn = player1.getAllPlayers(); - rtn.addAll(player2.getAllPlayers()); - return rtn; + return null; } } diff --git a/src/uebung05/logistics/Demo.java b/src/uebung05/logistics/Demo.java index 9081424..e1278cc 100755 --- a/src/uebung05/logistics/Demo.java +++ b/src/uebung05/logistics/Demo.java @@ -1,8 +1,8 @@ -package logistics; +package uebung05.logistics; -import logistics.material.BulletBelts; -import logistics.material.LiterDiesel; -import logistics.material.RocketPods; +import uebung05.logistics.material.BulletBelts; +import uebung05.logistics.material.LiterDiesel; +import uebung05.logistics.material.RocketPods; class demo { diff --git a/src/uebung05/logistics/Helicopter.java b/src/uebung05/logistics/Helicopter.java index 8d53e33..2243148 100755 --- a/src/uebung05/logistics/Helicopter.java +++ b/src/uebung05/logistics/Helicopter.java @@ -1,13 +1,13 @@ -package logistics; +package uebung05.logistics; -import logistics.material.BulletBelts; -import logistics.material.MetGallonsKerosene; -import logistics.material.RocketPods; -import logistics.quantities.FloatUnit; -import logistics.quantities.IntUnit; -import logistics.quantities.NeedCollector; -import logistics.storage.FloatStorage; -import logistics.storage.IntStorage; +import uebung05.logistics.material.BulletBelts; +import uebung05.logistics.material.MetGallonsKerosene; +import uebung05.logistics.material.RocketPods; +import uebung05.logistics.quantities.FloatUnit; +import uebung05.logistics.quantities.IntUnit; +import uebung05.logistics.quantities.NeedCollector; +import uebung05.logistics.storage.FloatStorage; +import uebung05.logistics.storage.IntStorage; /** * The Helicopter class represents a helicopter in the logistics system. diff --git a/src/uebung05/logistics/Manager.java b/src/uebung05/logistics/Manager.java index b954c8e..16d4780 100755 --- a/src/uebung05/logistics/Manager.java +++ b/src/uebung05/logistics/Manager.java @@ -1,9 +1,9 @@ -package logistics; +package uebung05.logistics; -import logistics.quantities.FloatUnit; -import logistics.quantities.IntUnit; -import logistics.quantities.NeedCollector; -import logistics.quantities.Unit; +import uebung05.logistics.quantities.FloatUnit; +import uebung05.logistics.quantities.IntUnit; +import uebung05.logistics.quantities.NeedCollector; +import uebung05.logistics.quantities.Unit; import java.util.ArrayList; import java.util.List; @@ -63,7 +63,7 @@ public class Manager { * * @return The NeedCollector object containing the needs of all the vehicles */ - NeedCollector collectNeeds() { + public NeedCollector collectNeeds() { NeedCollector collector = new NeedCollector(); for (Vehicle vehicle : vehicles) { vehicle.reportNeeds(collector); diff --git a/src/uebung05/logistics/NeedCollector.java b/src/uebung05/logistics/NeedCollector.java index 0aec1bc..4e7427f 100755 --- a/src/uebung05/logistics/NeedCollector.java +++ b/src/uebung05/logistics/NeedCollector.java @@ -1,7 +1,7 @@ -package logistics; +package uebung05.logistics; -import logistics.quantities.FloatUnit; -import logistics.quantities.IntUnit; +import uebung05.logistics.quantities.FloatUnit; +import uebung05.logistics.quantities.IntUnit; import java.util.HashMap; import java.util.Map; diff --git a/src/uebung05/logistics/Tank.java b/src/uebung05/logistics/Tank.java index 489875a..cb8a2df 100755 --- a/src/uebung05/logistics/Tank.java +++ b/src/uebung05/logistics/Tank.java @@ -1,13 +1,13 @@ -package logistics; +package uebung05.logistics; -import logistics.material.BulletBelts; -import logistics.material.LiterDiesel; -import logistics.material.ShellBatches; -import logistics.quantities.FloatUnit; -import logistics.quantities.IntUnit; -import logistics.quantities.NeedCollector; -import logistics.storage.FloatStorage; -import logistics.storage.IntStorage; +import uebung05.logistics.material.BulletBelts; +import uebung05.logistics.material.LiterDiesel; +import uebung05.logistics.material.ShellBatches; +import uebung05.logistics.quantities.FloatUnit; +import uebung05.logistics.quantities.IntUnit; +import uebung05.logistics.quantities.NeedCollector; +import uebung05.logistics.storage.FloatStorage; +import uebung05.logistics.storage.IntStorage; /** * The Tank class represents a tank in the logistics system. diff --git a/src/uebung05/logistics/Truck.java b/src/uebung05/logistics/Truck.java index 83deb6e..7b47e12 100755 --- a/src/uebung05/logistics/Truck.java +++ b/src/uebung05/logistics/Truck.java @@ -1,12 +1,12 @@ -package logistics; +package uebung05.logistics; -import logistics.material.BulletBelts; -import logistics.material.LiterDiesel; -import logistics.quantities.FloatUnit; -import logistics.quantities.IntUnit; -import logistics.quantities.NeedCollector; -import logistics.storage.FloatStorage; -import logistics.storage.IntStorage; +import uebung05.logistics.material.BulletBelts; +import uebung05.logistics.material.LiterDiesel; +import uebung05.logistics.quantities.FloatUnit; +import uebung05.logistics.quantities.IntUnit; +import uebung05.logistics.quantities.NeedCollector; +import uebung05.logistics.storage.FloatStorage; +import uebung05.logistics.storage.IntStorage; /** * The Truck class represents a truck in the logistics system. diff --git a/src/uebung05/logistics/Vehicle.java b/src/uebung05/logistics/Vehicle.java index 6ae0002..04a3735 100755 --- a/src/uebung05/logistics/Vehicle.java +++ b/src/uebung05/logistics/Vehicle.java @@ -1,11 +1,11 @@ -package logistics; +package uebung05.logistics; -import logistics.material.Grease; -import logistics.material.Oil; -import logistics.quantities.FloatUnit; -import logistics.quantities.IntUnit; -import logistics.quantities.NeedCollector; -import logistics.storage.IntStorage; +import uebung05.logistics.material.Grease; +import uebung05.logistics.material.Oil; +import uebung05.logistics.quantities.FloatUnit; +import uebung05.logistics.quantities.IntUnit; +import uebung05.logistics.quantities.NeedCollector; +import uebung05.logistics.storage.IntStorage; /** * The Vehicle abstract class represents a vehicle in the logistics system. diff --git a/src/uebung05/logistics/material/BulletBelts.java b/src/uebung05/logistics/material/BulletBelts.java index 7df7b9b..45e166c 100755 --- a/src/uebung05/logistics/material/BulletBelts.java +++ b/src/uebung05/logistics/material/BulletBelts.java @@ -1,6 +1,6 @@ -package logistics.material; +package uebung05.logistics.material; -import logistics.quantities.IntUnit; +import uebung05.logistics.quantities.IntUnit; /** * The BulletBelts class represents a unit of measurement for 7.62 bullets. @@ -11,7 +11,7 @@ import logistics.quantities.IntUnit; */ public class BulletBelts implements IntUnit { - private static BulletBelts INSTANCE; + public static BulletBelts INSTANCE; private BulletBelts() {} diff --git a/src/uebung05/logistics/material/Grease.java b/src/uebung05/logistics/material/Grease.java index d752195..c0eef9c 100755 --- a/src/uebung05/logistics/material/Grease.java +++ b/src/uebung05/logistics/material/Grease.java @@ -1,6 +1,6 @@ -package logistics.material; +package uebung05.logistics.material; -import logistics.quantities.IntUnit; +import uebung05.logistics.quantities.IntUnit; /** * The Grease class represents a unit of measurement for grease. @@ -11,7 +11,7 @@ import logistics.quantities.IntUnit; */ public class Grease implements IntUnit { - private static Grease INSTANCE; + public static Grease INSTANCE; private Grease() {} diff --git a/src/uebung05/logistics/material/LiterDiesel.java b/src/uebung05/logistics/material/LiterDiesel.java index 2e16e58..31f638d 100755 --- a/src/uebung05/logistics/material/LiterDiesel.java +++ b/src/uebung05/logistics/material/LiterDiesel.java @@ -1,6 +1,6 @@ -package logistics.material; +package uebung05.logistics.material; -import logistics.quantities.FloatUnit; +import uebung05.logistics.quantities.FloatUnit; /** * The LiterDiesel class represents a unit of measurement for diesel fuel. @@ -11,7 +11,7 @@ import logistics.quantities.FloatUnit; */ public class LiterDiesel implements FloatUnit { - private static LiterDiesel INSTANCE; + public static LiterDiesel INSTANCE; private LiterDiesel() {} diff --git a/src/uebung05/logistics/material/MetGallonsKerosene.java b/src/uebung05/logistics/material/MetGallonsKerosene.java index a50399c..b8e7f1c 100755 --- a/src/uebung05/logistics/material/MetGallonsKerosene.java +++ b/src/uebung05/logistics/material/MetGallonsKerosene.java @@ -1,6 +1,6 @@ -package logistics.material; +package uebung05.logistics.material; -import logistics.quantities.FloatUnit; +import uebung05.logistics.quantities.FloatUnit; /** * The MetGallonsKerosene class represents a unit of measurement for kerosene. @@ -11,7 +11,7 @@ import logistics.quantities.FloatUnit; */ public class MetGallonsKerosene implements FloatUnit { - private static MetGallonsKerosene INSTANCE; + public static MetGallonsKerosene INSTANCE; private MetGallonsKerosene() {} diff --git a/src/uebung05/logistics/material/Oil.java b/src/uebung05/logistics/material/Oil.java index 4f991b1..6bb60ae 100755 --- a/src/uebung05/logistics/material/Oil.java +++ b/src/uebung05/logistics/material/Oil.java @@ -1,6 +1,6 @@ -package logistics.material; +package uebung05.logistics.material; -import logistics.quantities.IntUnit; +import uebung05.logistics.quantities.IntUnit; /** * The Oil class represents a unit of measurement for oil. @@ -11,7 +11,7 @@ import logistics.quantities.IntUnit; */ public class Oil implements IntUnit { - private static Oil INSTANCE; + public static Oil INSTANCE; private Oil() {} diff --git a/src/uebung05/logistics/material/RocketPods.java b/src/uebung05/logistics/material/RocketPods.java index 44f07b3..a3a07d6 100755 --- a/src/uebung05/logistics/material/RocketPods.java +++ b/src/uebung05/logistics/material/RocketPods.java @@ -1,6 +1,6 @@ -package logistics.material; +package uebung05.logistics.material; -import logistics.quantities.IntUnit; +import uebung05.logistics.quantities.IntUnit; /** * The RocketPods class represents a unit of measurement for 70mm rocket pods. @@ -11,7 +11,7 @@ import logistics.quantities.IntUnit; */ public class RocketPods implements IntUnit { - private static RocketPods INSTANCE; + public static RocketPods INSTANCE; private RocketPods() {} diff --git a/src/uebung05/logistics/material/ShellBatches.java b/src/uebung05/logistics/material/ShellBatches.java index ee6f820..0f14656 100755 --- a/src/uebung05/logistics/material/ShellBatches.java +++ b/src/uebung05/logistics/material/ShellBatches.java @@ -1,6 +1,6 @@ -package logistics.material; +package uebung05.logistics.material; -import logistics.quantities.IntUnit; +import uebung05.logistics.quantities.IntUnit; /** * The ShellBatches class represents a unit of measurement for 120mm shell batches. @@ -11,7 +11,7 @@ import logistics.quantities.IntUnit; */ public class ShellBatches implements IntUnit { - private static ShellBatches INSTANCE; + public static ShellBatches INSTANCE; private ShellBatches() {} diff --git a/src/uebung05/logistics/quantities/FloatUnit.java b/src/uebung05/logistics/quantities/FloatUnit.java index 69d5cf3..1d60f93 100755 --- a/src/uebung05/logistics/quantities/FloatUnit.java +++ b/src/uebung05/logistics/quantities/FloatUnit.java @@ -1,4 +1,4 @@ -package logistics.quantities; +package uebung05.logistics.quantities; /** * @author Nikolaus Köberlein diff --git a/src/uebung05/logistics/quantities/IntUnit.java b/src/uebung05/logistics/quantities/IntUnit.java index 1b6ed1f..27da450 100755 --- a/src/uebung05/logistics/quantities/IntUnit.java +++ b/src/uebung05/logistics/quantities/IntUnit.java @@ -1,4 +1,4 @@ -package logistics.quantities; +package uebung05.logistics.quantities; /** * @author Nikolaus Köberlein diff --git a/src/uebung05/logistics/quantities/NeedCollector.java b/src/uebung05/logistics/quantities/NeedCollector.java index 00b0597..8edf4e8 100755 --- a/src/uebung05/logistics/quantities/NeedCollector.java +++ b/src/uebung05/logistics/quantities/NeedCollector.java @@ -1,12 +1,12 @@ -package logistics.quantities; +package uebung05.logistics.quantities; -import logistics.material.BulletBelts; -import logistics.material.Grease; -import logistics.material.LiterDiesel; -import logistics.material.MetGallonsKerosene; -import logistics.material.Oil; -import logistics.material.RocketPods; -import logistics.material.ShellBatches; +import uebung05.logistics.material.BulletBelts; +import uebung05.logistics.material.Grease; +import uebung05.logistics.material.LiterDiesel; +import uebung05.logistics.material.MetGallonsKerosene; +import uebung05.logistics.material.Oil; +import uebung05.logistics.material.RocketPods; +import uebung05.logistics.material.ShellBatches; import java.util.HashMap; import java.util.Map; diff --git a/src/uebung05/logistics/quantities/Unit.java b/src/uebung05/logistics/quantities/Unit.java index 258b194..db0f6e5 100755 --- a/src/uebung05/logistics/quantities/Unit.java +++ b/src/uebung05/logistics/quantities/Unit.java @@ -1,4 +1,4 @@ -package logistics.quantities; +package uebung05.logistics.quantities; /** * @author Nikolaus Köberlein diff --git a/src/uebung05/logistics/storage/FloatStorage.java b/src/uebung05/logistics/storage/FloatStorage.java index 9c42a30..f57805c 100755 --- a/src/uebung05/logistics/storage/FloatStorage.java +++ b/src/uebung05/logistics/storage/FloatStorage.java @@ -1,7 +1,7 @@ -package logistics.storage; +package uebung05.logistics.storage; -import logistics.quantities.FloatUnit; -import logistics.quantities.NeedCollector; +import uebung05.logistics.quantities.FloatUnit; +import uebung05.logistics.quantities.NeedCollector; /** * The FloatStorage class represents a floating-point storage for a specific FloatUnit object. diff --git a/src/uebung05/logistics/storage/IntStorage.java b/src/uebung05/logistics/storage/IntStorage.java index 0092f91..435f3e5 100755 --- a/src/uebung05/logistics/storage/IntStorage.java +++ b/src/uebung05/logistics/storage/IntStorage.java @@ -1,7 +1,7 @@ -package logistics.storage; +package uebung05.logistics.storage; -import logistics.quantities.IntUnit; -import logistics.quantities.NeedCollector; +import uebung05.logistics.quantities.IntUnit; +import uebung05.logistics.quantities.NeedCollector; /** * The IntStorage class represents an integer storage for a specific IntUnit object. diff --git a/src/uebung07/quantities/plain/TimeUnit.java b/src/uebung07/quantities/plain/TimeUnit.java deleted file mode 100644 index 9e4523b..0000000 --- a/src/uebung07/quantities/plain/TimeUnit.java +++ /dev/null @@ -1,5 +0,0 @@ -package uebung07.quantities.plain; - -public class TimeUnit extends Unit{ - -} diff --git a/src/uebung09/chess/Board.java b/src/uebung09/chess/Board.java index c14dd7f..b0744ce 100644 --- a/src/uebung09/chess/Board.java +++ b/src/uebung09/chess/Board.java @@ -9,7 +9,7 @@ import uebung09.iterator.Array2dIterator; public class Board implements Iterable{ private final Piece[][] field = new Piece[8][8]; - //private final List pieces = new ArrayList<>(); + private final List pieces = new ArrayList<>(); void add(Piece piece) { @@ -42,7 +42,7 @@ public class Board implements Iterable{ } public void check() { - for (Piece p1 : iterator()) { + for (Piece p1 : pieces) { System.out.println(p1.toString()); for (Piece p2 : pieces) if (p1 != p2) diff --git a/src/uebung09/iterator/Array2dIterator.java b/src/uebung09/iterator/Array2dIterator.java index 7ca27e3..8cb6fa4 100644 --- a/src/uebung09/iterator/Array2dIterator.java +++ b/src/uebung09/iterator/Array2dIterator.java @@ -1,39 +1,70 @@ package uebung09.iterator; +import java.util.ArrayList; import java.util.Iterator; public class Array2dIterator implements Iterator{ private T[][] array; + private ArrayList list; private int index = 0; public Array2dIterator(T[][] array) { this.array = array; + list = flatten(); } @Override public boolean hasNext() { - for (int i = 0; i < array.length; i++) { - for (int j = 0; j < array[i].length; j++) { - if (array[i][j+1] != null) { - return true; - } - if (array[i+1][j] != null) { - return true; - } - } + // for (int i = 0; i < array.length; i++) { + // for (int j = 0; j < array[i].length; j++) { + // if (array[i][j+1] != null) { + // return true; + // } + // if (array[i+1][j] != null) { + // return true; + // } + // } + // } + // return false; + + + if (list.get(index+1) != null) { + return true; + } else { + return false; } - return false; } @Override public T next() { - for (int i = 0; i < array.length; i++) { - for (int j = 0; j < array[i].length; j++) { - - } - } - return null; + // for (int i = 0; i < array.length; i++) { + // for (int j = 0; j < array[i].length; j++) { + // if (array[i][j+1] != null) { + // return array[i][j+1]; + // } + + // } + // if (array[i+1][0] != null) { + // return array[i+1][0]; + // } + // } + // return null; + + + return list.get(index++); + } + private ArrayList flatten(){ + ArrayList list = new ArrayList<>(); + + for (int i = 0; i < array.length; i++) { + for (int j = 0; j < array[i].length; j++) { + list.add(array[i][j]); + } + } + + return list; + } }