Skip to content

Commit 9741741

Browse files
ignacio chiazzo cardarelloignacio chiazzo cardarello
ignacio chiazzo cardarello
authored and
ignacio chiazzo cardarello
committed
Create Test file
1 parent 451a7dc commit 9741741

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Solutions of algorithm problems using Javascript. https://ignacio-chiazzo.githu
66
The solutions are located under `/LeetcodeProblems`. Each problem has a test file located under `/LeetcodeProblemsTest`.
77

88
### Run Scripts
9-
To run all the test run `node Main.js` in the console.
9+
To run all the test run `node Test.js` in the console.
1010

1111
To run a specific problem in your console, go to the file test, add the call to the test function (`test()` ) and run in the console `node <problem_file_path>` (e.g. `node LeetcodeProblems/Lowest_Common_Ancestor_of_a_Binary_Tree.js`).
1212

Main.js renamed to Test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const fs = require('fs');
33
const TESTS_FOLDER = './LeetcodeProblemsTests/Algorithms/';
44
const REGEX_PATTERN_HIDDEN_FILES = /(^|\/)\.[^\/\.]/g;
55

6-
var main = async function() {
6+
var test_all = async function() {
77
try {
88
const problems = await loadProblems();
99
for(i in problems) {
@@ -35,4 +35,4 @@ var loadProblems = () => {
3535
});
3636
}
3737

38-
main();
38+
test_all();

0 commit comments

Comments
 (0)