forked from sollidy/telegram-bot-vercel-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from nikele2001/Branch-Input-Validation
Add input validation
- Loading branch information
Showing
5 changed files
with
174 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { AlgorithmRunner } from './AlgorithmRunner'; | ||
import { AlgorithmTester } from './TestAlgorithmUtil'; | ||
import { Project } from './Project'; | ||
|
||
// Random project with 27 nodes and 10 groups and random weights | ||
const project = AlgorithmTester.generateProjectWithRandomWeights(27); | ||
const logic = new AlgorithmRunner(project, 10); // 3 is the number of groups desired | ||
console.log(logic.prettyPrintGroupings()); | ||
|
||
// Project with 27 nodes and 10 groups and 0 weights | ||
const project2 = AlgorithmTester.generateProjectWithNoWeights(27); | ||
const project2 = Project.createBlankProject('proj name', 27); | ||
const logic2 = new AlgorithmRunner(project2, 10); // 3 is the number of groups desired | ||
console.log(logic2.prettyPrintGroupings()); |
Oops, something went wrong.