Skip to content

Commit ad77f20

Browse files
committed
add failing cochran test
1 parent 95baf82 commit ad77f20

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/cochran.test.ts

+15
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,19 @@ describe('Cochran Algorithm', () => {
7676
expect(output?.outlierIndexes).toContain(0);
7777
expect(output?.outlierIndexes).toContain(5);
7878
})
79+
80+
it('Cochran Algorithm Test (New Values)', () => {
81+
const samples = [
82+
[1, 1],
83+
[1, 1],
84+
[1, 1],
85+
[1, 1],
86+
[1, 1],
87+
[1, 1],
88+
[1, 1],
89+
];
90+
91+
const output = Cochran(samples);
92+
expect(output?.hasOutliers).toBe(false); // Adjust the expectation based on your algorithm's behavior
93+
});
7994
});

0 commit comments

Comments
 (0)