Skip to content

Commit

Permalink
Update test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
arsh73552 authored Jul 10, 2023
1 parent 47c909f commit 2987efc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions __tests__/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const KMeansMatrixConverter = require('../Backend/src/kMeans.js')

console.log(typeof(KMeansMatrixConverter.arrayToMatrix([1,2,3,4,5,6,7,8,9], 3, 3)));
console.log(typeof([ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ]))
test("Accepts an Array of values and returns a matrix of values with the given dimensions.", () => {
expect(JSON.stringify(KMeansMatrixConverter.arrayToMatrix([1,2,3,4,5,6,7,8,9], 3, 3)))
.toBe(JSON.stringify([ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ]));
Expand Down

0 comments on commit 2987efc

Please sign in to comment.