@Test
public void checkShape_list() {

	List<int[]> expected = new ArrayList<int[]>();
	List<Tensor<?>> actual = new ArrayList();
	expected.add(new int[]{2,1,3});
	actual.add(new Tensor_F64(2,1,3));
	TensorOps.checkShape("",expected,actual,false);
	List<Tensor<?>> actual2 = new ArrayList();
	actual2.add(new Tensor_F64(2,2,1,3));
	TensorOps.checkShape("",expected,actual2,true);
	expected.add(new int[]{5,1,4});
	actual.add(new Tensor_F64(2,1,4));
	try {
		TensorOps.checkShape("",expected,actual,false);
		fail("Should have thrown an exception");
	} catch( IllegalArgumentException ignore){}
	expected.add(new int[]{5,1,4});
	actual2.add(new Tensor_F64(2,2,1,4));
	try {
		TensorOps.checkShape("",expected,actual,true);
		fail("Should have thrown an exception");
	} catch( IllegalArgumentException ignore){}
}