[svn-r16461] Bug fix: for compound types, the not comparable test for members was not done
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
This commit is contained in:
@@ -13,6 +13,9 @@ file1 file2
|
||||
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
|
||||
@@ -39,6 +42,13 @@ 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
|
||||
--------------------------------
|
||||
|
||||
Reference in New Issue
Block a user