Skip to content

Commit a323fd0

Browse files
committed
Release 0.5.0
1 parent 0118e8f commit a323fd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/kmeans.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { kmeans } from "../src";
33
test("test kmeans constructor", () => {
44
const km = kmeans();
55
expect(km.maxIters()).toBe(300);
6+
expect(km.maxIters(400).maxIters()).toBe(400);
67
expect(km.distance()).toBeTruthy();
8+
expect(km.centroids()).toBeUndefined();
79
});
810

911
test("test euclidean distance", () => {

0 commit comments

Comments
 (0)