@@ -62,20 +62,16 @@ describe("Generic (NDFrame)", function () {
6262
6363 it ( "Throws error on duplicate column name" , function ( ) {
6464 let data = [ [ 21 , 20 , 1 ] , [ 20 , 25 , 3 ] ] ;
65- assert . throws ( ( ) => {
66- new NDframe ( { data, isSeries : false , columns : [ "A" , "A" , "C" ] } ) ,
67- Error ,
68- "ColumnIndexError: Column index must contain unique values"
69- } ) ;
65+ assert . throws (
66+ ( ) => new NDframe ( { data, isSeries : false , columns : [ "A" , "A" , "C" ] } ) , Error ,
67+ "ColumnIndexError: Column index must contain unique values" ) ;
7068 } ) ;
7169
7270 it ( "Throws error on duplicate index" , function ( ) {
73- let data = [ [ 21 , 20 , 1 ] , [ 20 , 25 , 3 ] ] ;
74- assert . throws ( ( ) => {
75- new NDframe ( { data, isSeries : false , index : [ 1 , 1 , 2 ] } ) ,
76- Error ,
77- "IndexError: Row index must contain unique values"
78- } ) ;
71+ let data = [ [ 21 , 20 , 1 ] , [ 20 , 25 , 3 ] , [ 19 , 30 , 5 ] ] ;
72+ assert . throws (
73+ ( ) => new NDframe ( { data, isSeries : false , index : [ 1 , 1 , 2 ] } ) , Error ,
74+ "IndexError: Row index must contain unique values" ) ;
7975 } ) ;
8076
8177 it ( "Successfully create a 2D Frame when first value is empty" , function ( ) {
0 commit comments