Solution: for compound types, recursively apply that check Two new cases are added 1) the compound type has a different number of members. Message printed is <obj1> has X members <obj2> has Y members Where X and Y are the number of members of each compound type being compared 2) the compound type has not comparable types (for example a double and an int at the same index) In this case the message Comparison not possible: object1 is of class1 and object2 is of class2 Is replaced with Comparison not possible: object1 has a class1 and object2 has a class2 Modified the test generator program to have these 2 cases Added a shell run for these 2 cases Tested: windows, h5committest
56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
|
|
file1 file2
|
|
---------------------------------------
|
|
x x /
|
|
x x /g1
|
|
x x /g1/dset1
|
|
x x /g1/dset2
|
|
x x /g1/dset4
|
|
x x /g2
|
|
x x /g2/dset1
|
|
x x /g2/dset2
|
|
x x /g2/dset3
|
|
x x /g2/dset4
|
|
x x /g2/dset5
|
|
x x /g2/dset6
|
|
x x /g2/dset7
|
|
x x /g2/dset8
|
|
x x /g2/dset9
|
|
|
|
group : </> and </>
|
|
0 differences found
|
|
group : </g1> and </g1>
|
|
0 differences found
|
|
dataset: </g1/dset1> and </g1/dset1>
|
|
0 differences found
|
|
dataset: </g1/dset2> and </g1/dset2>
|
|
0 differences found
|
|
dataset: </g1/dset4> and </g1/dset4>
|
|
0 differences found
|
|
group : </g2> and </g2>
|
|
0 differences found
|
|
dataset: </g2/dset1> and </g2/dset1>
|
|
</g2/dset1> or </g2/dset1> are empty datasets
|
|
0 differences found
|
|
dataset: </g2/dset2> and </g2/dset2>
|
|
0 differences found
|
|
dataset: </g2/dset3> and </g2/dset3>
|
|
0 differences found
|
|
dataset: </g2/dset4> and </g2/dset4>
|
|
0 differences found
|
|
dataset: </g2/dset5> and </g2/dset5>
|
|
0 differences found
|
|
dataset: </g2/dset6> and </g2/dset6>
|
|
0 differences found
|
|
dataset: </g2/dset7> and </g2/dset7>
|
|
0 differences found
|
|
dataset: </g2/dset8> and </g2/dset8>
|
|
0 differences found
|
|
dataset: </g2/dset9> and </g2/dset9>
|
|
</g2/dset9> or </g2/dset9> are empty datasets
|
|
0 differences found
|
|
--------------------------------
|
|
Some objects are not comparable
|
|
--------------------------------
|
|
Use -c for a list of objects.
|