/mstd-lab2

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

mstd-lab2

KPI MTSD Lab2

Variant

My gradebook number is 1330, as to formula: 1330 % 4 = 2. So my variant is 2.

Description of the task (Variant 2)

  • First implementation of this program is list which is based on built-in array.
  • Second implementation is the circular-linked list.

Installation

  • Install Node.JS and Git
sudo apt install nodejs
sudo apt install git
  • Clone this repository
git clone git@github.com:gonnagetbetter/mstd-lab2.git
  • Install dependencies via npm
npm install

Usage

To test the list, run the following command:

npm run test

Reference to the failed CI commit

Commit

Conclusion

Code testing is greatly aided by unit tests. They aid in the discovery of faults and coding flaws. They also aid in improving the stability and dependability of the code. Large projects with a lot of code and commercial projects benefit greatly from it. Time and money are saved as a result. Finding bugs in the code is more challenging in the absence of unit tests.