From ceccfdd0d6a46a60bbe2424a91c0eb2ffaa86948 Mon Sep 17 00:00:00 2001 From: Thomas Bolinger Date: Wed, 15 Nov 2023 12:56:54 -0500 Subject: [PATCH] Reset Stack exercise files --- .../cypress/downloads/downloads.htm | Bin 0 -> 3844 bytes exercises/tdd_stack/stack.mjs | 2 +- .../test/ignore/stack_solution.test.mjs | 28 ++++++++++++++++++ exercises/tdd_stack/test/stack.test.mjs | 18 +++-------- .../tdd_stack/test/stack_solution.test.mjs | 19 ------------ 5 files changed, 33 insertions(+), 34 deletions(-) create mode 100644 Cypress/react_todo/cypress/downloads/downloads.htm create mode 100644 exercises/tdd_stack/test/ignore/stack_solution.test.mjs delete mode 100644 exercises/tdd_stack/test/stack_solution.test.mjs diff --git a/Cypress/react_todo/cypress/downloads/downloads.htm b/Cypress/react_todo/cypress/downloads/downloads.htm new file mode 100644 index 0000000000000000000000000000000000000000..53acb939d60a0504e6379239e59508132fc54628 GIT binary patch literal 3844 zcmZ{mcTf||y2cZ_NC)K$ReCY>-VqS#MdS-1bO8k;p$ZrvG)2H5H6e6qA_5W-r5EYF zH|Yq1hF${^IC{@5=boAK?(FQd`_8lT>_0m{U0+#wasU8un*sn}DWjn+rjU*#$g`JR`H5Hu)V@vXhb@$k``@qpZ=0}DO=n%6Ed@VLrBxvOK!| zTW+bAuuT)aY8bdpZ0$goyVR@q{c(Z8!?UP3%%%D`i`f*Vv}828|1=QctjMsBzxq~0 zI5@s_>&>{oL1!vSTuGbb-1*G^^}*+1;)XsM5o&3@K|0&cqdQPXS92c?oFhy?sGnk40|vo2Y`f1p z;0w-8Vn$&im%$MTf|*r^z%W>mU2jdr+7v>y4%ejjcE&^QtfFHaKz%0QvL2o9>oWfxF0k|M3@tS{P?YG_a#DswTPD0pddyOlE3&}T5 zm%_6RvEkedb^W2@&K!hsQJVh5;xk+(UY(P=>2V$>kyp}+x_7IKYSdIpo<9CHSCjSF zpn?#Y@)qq+Sbe>4L7ZIgW3uY(2S)Fu;RgUnA!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>fh(_GG+8F>265+dq;>yTcA zH5hXuHf;PUp~J$?ws4YwdADa875I(jzDMof1+dZ}y#99b-TQ@UsQ&uC1eD$7p5n#L zTT(#=mu_nZ@S5DO%f}zvLb(t1p?*VBiv2MkG;b4_DUW82V*vNmx?$G*AJ z48D(=dEOPZ`*tbHy}Wr|F$@q{xcb^Y4P>1}?rYk*EsB45#a>t04vZ{Tz+MgZ;*2mp zMU_|+9#D446g}|PaIW3r5u|QR8qeD?wq88p-1M3xwNgI`ikVq1=SXI6l6xHV`vn0X z+K}g{c1}c_+L(Ge#5G1~L0x`FkaOYuNf7te?j&8$)x~kehMKTQFn9GyE_v@h&oE3Y ztZ<=7PivtwH)ZXPrS56!EU`Vn(%{M^;}TK#?ZwWzRm(f3kef}<@mT5OFN@#2zD#c= zK#7cG42vS}%fV6i8>aUYw4v$kf@UFSQh#8JoAG&z+!X*okoga60m<0N|Bn>^6~z9K z;y()r5Cr~F|BoC0-TJTB{vox0)*oyAZ~0%=|K>IeV@j$&U9#UJ;P)y@`)BtL=`<~r literal 0 HcmV?d00001 diff --git a/exercises/tdd_stack/stack.mjs b/exercises/tdd_stack/stack.mjs index afc6260..651d352 100644 --- a/exercises/tdd_stack/stack.mjs +++ b/exercises/tdd_stack/stack.mjs @@ -3,5 +3,5 @@ * the LIFO (Last In, First Out) principle. */ class Stack { - + } \ No newline at end of file diff --git a/exercises/tdd_stack/test/ignore/stack_solution.test.mjs b/exercises/tdd_stack/test/ignore/stack_solution.test.mjs new file mode 100644 index 0000000..e00df34 --- /dev/null +++ b/exercises/tdd_stack/test/ignore/stack_solution.test.mjs @@ -0,0 +1,28 @@ +import Stack from "../stack.mjs" +import { expect } from "chai" + +describe("Stack", function () { + //Satisfy these tests in order + it("is initially empty", function () { + const stack = new Stack(); + expect(stack.top).to.equal(-1); + }); + + it("pushes to the top", function () { + const stack = new Stack(); + stack.push(5); + expect(stack.top).to.equal(5); + stack.push("test"); + expect(stack.top).to.equal("test"); + }); + + it("pops from the top", function () { + const stack = new Stack(); + stack.push(5); + stack.push("test"); + let top = stack.pop(); + expect(top).to.equal("test") + }); + + +}) \ No newline at end of file diff --git a/exercises/tdd_stack/test/stack.test.mjs b/exercises/tdd_stack/test/stack.test.mjs index e00df34..c5773e4 100644 --- a/exercises/tdd_stack/test/stack.test.mjs +++ b/exercises/tdd_stack/test/stack.test.mjs @@ -2,27 +2,17 @@ import Stack from "../stack.mjs" import { expect } from "chai" describe("Stack", function () { + //Satisfy these tests in order it("is initially empty", function () { - const stack = new Stack(); - expect(stack.top).to.equal(-1); + }); it("pushes to the top", function () { - const stack = new Stack(); - stack.push(5); - expect(stack.top).to.equal(5); - stack.push("test"); - expect(stack.top).to.equal("test"); + }); it("pops from the top", function () { - const stack = new Stack(); - stack.push(5); - stack.push("test"); - let top = stack.pop(); - expect(top).to.equal("test") + }); - - }) \ No newline at end of file diff --git a/exercises/tdd_stack/test/stack_solution.test.mjs b/exercises/tdd_stack/test/stack_solution.test.mjs deleted file mode 100644 index 45b4d1d..0000000 --- a/exercises/tdd_stack/test/stack_solution.test.mjs +++ /dev/null @@ -1,19 +0,0 @@ -import Stack from "../stack.mjs" -import { expect } from "chai" - -describe("Stack", function () { - //Satisfy these tests in order - it("is initially empty", function () { - - }); - - it("pushes to the top", function () { - - }); - - it("pops from the top", function () { - - }); - - -}) \ No newline at end of file