import sys
import libxml2
# Memory debug specific
#
# Testing XML Node comparison and Node hash-value
#
# Create two different objects which point to foo
# Now check that [in]equality tests work ok
print "Error comparing nodes with ==, nodes should be equal but are unequal"
print "Error comparing nodes with ==, nodes should not be equal but are equal"
print "Error comparing nodes with !=, nodes should not be equal but are equal"
print "Error comparing nodes with !=, nodes should be equal but are unequal"
# Next check that the hash function for the objects also works ok
print "Error hash values for two equal nodes are different"
print "Error hash values for two unequal nodes are not different"
print "Error hash values for two unequal nodes are equal"
# Basic tests successful
# Memory debug specific
print "OK"
else: