From 4f694ff9e4b61dba116c2140cbb06ba5c2983920 Mon Sep 17 00:00:00 2001 From: Maksim Moiseenkov Date: Wed, 29 Jun 2022 12:25:30 +0500 Subject: [PATCH] resolved task 2 from chapter 4.5 --- exercises/chapter_04.5_task_2/index.html | 16 ++++++++++++++++ exercises/chapter_04.5_task_2/test.js | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100644 exercises/chapter_04.5_task_2/index.html create mode 100644 exercises/chapter_04.5_task_2/test.js diff --git a/exercises/chapter_04.5_task_2/index.html b/exercises/chapter_04.5_task_2/index.html new file mode 100644 index 0000000..2bd5cc8 --- /dev/null +++ b/exercises/chapter_04.5_task_2/index.html @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/exercises/chapter_04.5_task_2/test.js b/exercises/chapter_04.5_task_2/test.js new file mode 100644 index 0000000..a7b3b09 --- /dev/null +++ b/exercises/chapter_04.5_task_2/test.js @@ -0,0 +1,10 @@ +describe("Calculator", function() { + + context("Simple tests", function() { + it("Begin from 4 and add 2 = 6", function() { + let acc = new Accumulator("4") + acc.read("2") + assert.equal(acc.value, 6); + }); + }); +});