public static boolean equalsOrDie ( int [ ] expected , int [ ] got ) { if ( expected . length != got . length ) { die ( "Lengths did not match, expected length" , expected . length , "but got" , got . length ) ; } for ( int index = 0 ; index < expected . length ; index ++ ) { if ( expected [ index ] != got [ index ] ) { die ( "value at index did not match index" , index , "expected value" , expected [ index ] , "but got" , got [ index ] ) ; } } return true ; }
Checks to see if two arrays are equals