@@ -60,15 +60,19 @@ describe("Generic (NDFrame)", function () {
6060 it ( "Throws error on duplicate column name" , function ( ) {
6161 let data = [ [ 21 , 20 , 1 ] , [ 20 , 25 , 3 ] ] ;
6262 assert . throws (
63- ( ) => new dfd . NDframe ( { data, isSeries : false , columns : [ "A" , "A" , "C" ] } ) , Error ,
64- "ColumnIndexError: Column index must contain unique values" ) ;
63+ ( ) => new dfd . NDframe ( { data, isSeries : false , columns : [ "A" , "A" , "C" ] } ) ,
64+ Error ,
65+ "ColumnIndexError: Column index must contain unique values"
66+ ) ;
6567 } ) ;
6668
6769 it ( "Throws error on duplicate index" , function ( ) {
6870 let data = [ [ 21 , 20 , 1 ] , [ 20 , 25 , 3 ] , [ 19 , 30 , 5 ] ] ;
6971 assert . throws (
70- ( ) => new dfd . NDframe ( { data, isSeries : false , index : [ 1 , 1 , 2 ] } ) , Error ,
71- "IndexError: Row index must contain unique values" ) ;
72+ ( ) => new dfd . NDframe ( { data, isSeries : false , index : [ 1 , 1 , 2 ] } ) ,
73+ Error ,
74+ "IndexError: Row index must contain unique values"
75+ ) ;
7276 } ) ;
7377
7478 it ( "Successfully create a 2D Frame when first value is empty" , function ( ) {
0 commit comments