Skip to content

Commit 7222c91

Browse files
committed
update inverse attr test 3
1 parent 51acb99 commit 7222c91

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/cpp/schema_specific/inverse_attr3.cc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,13 @@ int main( int argc, char * argv[] ) {
4444
}
4545
cout << "instance #" << instance->StepFileId() << endl;
4646

47-
/* The inverse could be set with
48-
* const Inverse_attribute * ia =...;
49-
* const EntityDescriptor * inv_ed = reg.FindEntity( ia->inverted_entity_id_() );
50-
* instance->isdefinedby_(inv_ed);
51-
*/
5247
EntityAggregate * aggr = instance->isdefinedby_(); //should be filled in when the file is loaded? not sure how to do it using STEPfile...
53-
if( aggr ) {
54-
cout << aggr->EntryCount() << endl;
48+
if( aggr && aggr->EntryCount() ) {
49+
cout << "Found " << aggr->EntryCount() << " inverse references." << endl;
50+
exit( EXIT_SUCCESS );
5551
} else {
5652
cout << "inverse attr is not defined" << endl;
5753
exit( EXIT_FAILURE );
5854
}
59-
exit( EXIT_SUCCESS );
6055
}
6156

0 commit comments

Comments
 (0)