From d655212067f4cea9310e7394aab698e73e3cc7ad Mon Sep 17 00:00:00 2001 From: Renato771 Date: Wed, 27 Oct 2021 21:09:35 -0300 Subject: [PATCH 1/2] add empty line to end of file --- Linear-Algebra/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linear-Algebra/README.md b/Linear-Algebra/README.md index 8c0fd79ab8..3f3a922d20 100644 --- a/Linear-Algebra/README.md +++ b/Linear-Algebra/README.md @@ -111,4 +111,4 @@ The test-suite use the JavaScript test-framework **mocha**. You can contribute to this project. Feel free and pull request some new features or documention. **TODO:** Global functions for special matrices. -**TODO:** Documention of the classes and functions. \ No newline at end of file +**TODO:** Documention of the classes and functions. From bd93c7963a69bfd9e5a0957389be3a6bf2cbf0bd Mon Sep 17 00:00:00 2001 From: Renato771 Date: Wed, 27 Oct 2021 21:10:37 -0300 Subject: [PATCH 2/2] Move all test files to /test following convention --- Cellular-Automata/{ => test}/ConwaysGameOfLife.test.js | 2 +- Data-Structures/Array/{ => test}/QuickSelect.test.js | 2 +- Data-Structures/Vectors/{ => test}/Vector2.test.js | 2 +- Recursive/{ => test}/FloodFill.test.js | 2 +- Recursive/{ => test}/KochSnowflake.test.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename Cellular-Automata/{ => test}/ConwaysGameOfLife.test.js (81%) rename Data-Structures/Array/{ => test}/QuickSelect.test.js (98%) rename Data-Structures/Vectors/{ => test}/Vector2.test.js (98%) rename Recursive/{ => test}/FloodFill.test.js (97%) rename Recursive/{ => test}/KochSnowflake.test.js (92%) diff --git a/Cellular-Automata/ConwaysGameOfLife.test.js b/Cellular-Automata/test/ConwaysGameOfLife.test.js similarity index 81% rename from Cellular-Automata/ConwaysGameOfLife.test.js rename to Cellular-Automata/test/ConwaysGameOfLife.test.js index 5062339067..9432457bdf 100644 --- a/Cellular-Automata/ConwaysGameOfLife.test.js +++ b/Cellular-Automata/test/ConwaysGameOfLife.test.js @@ -1,4 +1,4 @@ -import { newGeneration } from './ConwaysGameOfLife' +import { newGeneration } from '../ConwaysGameOfLife' describe('newGeneration', () => { it('should produce the next generation according to the rules', () => { diff --git a/Data-Structures/Array/QuickSelect.test.js b/Data-Structures/Array/test/QuickSelect.test.js similarity index 98% rename from Data-Structures/Array/QuickSelect.test.js rename to Data-Structures/Array/test/QuickSelect.test.js index 433f360edf..1af373e7ce 100644 --- a/Data-Structures/Array/QuickSelect.test.js +++ b/Data-Structures/Array/test/QuickSelect.test.js @@ -1,4 +1,4 @@ -import { QuickSelect } from './QuickSelect' +import { QuickSelect } from '../QuickSelect' describe('QuickSelect tests', () => { it('should return the only element of a list of length 1', () => { diff --git a/Data-Structures/Vectors/Vector2.test.js b/Data-Structures/Vectors/test/Vector2.test.js similarity index 98% rename from Data-Structures/Vectors/Vector2.test.js rename to Data-Structures/Vectors/test/Vector2.test.js index c3f1857f96..847716ded7 100644 --- a/Data-Structures/Vectors/Vector2.test.js +++ b/Data-Structures/Vectors/test/Vector2.test.js @@ -1,4 +1,4 @@ -import { Vector2 } from './Vector2.js' +import { Vector2 } from '../Vector2.js' describe('Vector2', () => { describe('#equalsExactly', () => { diff --git a/Recursive/FloodFill.test.js b/Recursive/test/FloodFill.test.js similarity index 97% rename from Recursive/FloodFill.test.js rename to Recursive/test/FloodFill.test.js index 1c00cdf5fb..0468d84732 100644 --- a/Recursive/FloodFill.test.js +++ b/Recursive/test/FloodFill.test.js @@ -1,4 +1,4 @@ -import { breadthFirstSearch, depthFirstSearch } from './FloodFill' +import { breadthFirstSearch, depthFirstSearch } from '../FloodFill' // some constants const black = [0, 0, 0] diff --git a/Recursive/KochSnowflake.test.js b/Recursive/test/KochSnowflake.test.js similarity index 92% rename from Recursive/KochSnowflake.test.js rename to Recursive/test/KochSnowflake.test.js index a46359419c..74f164e906 100644 --- a/Recursive/KochSnowflake.test.js +++ b/Recursive/test/KochSnowflake.test.js @@ -1,4 +1,4 @@ -import { iterate, Vector2 } from './KochSnowflake' +import { iterate, Vector2 } from '../KochSnowflake' describe('KochSnowflake', () => { it('should produce the correctly-transformed vectors', () => {