Skip to content

Commit 5724594

Browse files
committed
Fix error on 'Throws error on duplicate index' tests
1 parent 25ac388 commit 5724594

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/danfojs-browser/tests/core/generic.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe("Generic (NDFrame)", function () {
6565
});
6666

6767
it("Throws error on duplicate index", function () {
68-
let data = [ [ 21, 20, 1 ], [ 20, 25, 3 ] ];
68+
let data = [ [ 21, 20, 1 ], [ 20, 25, 3 ], [ 19, 30, 5 ] ];
6969
assert.throws(
7070
() => new dfd.NDframe({ data, isSeries: false, index: [ 1, 1, 2 ] }), Error,
7171
"IndexError: Row index must contain unique values");

src/danfojs-node/test/core/generic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe("Generic (NDFrame)", function () {
6868
});
6969

7070
it("Throws error on duplicate index", function () {
71-
let data = [[21, 20, 1], [20, 25, 3]];
71+
let data = [[21, 20, 1], [20, 25, 3], [19, 30, 5]];
7272
assert.throws(
7373
() => new NDframe({ data, isSeries: false, index: [1, 1, 2] }), Error,
7474
"IndexError: Row index must contain unique values");

0 commit comments

Comments
 (0)