<s> import unittest <EOL> from zohmg . utils import compare_triples <EOL> class TestUtils ( unittest . TestCase ) : <EOL> def test_tuplecompare ( self ) : <EOL> k = ( <NUM_LIT:10> , <NUM_LIT:2> , '<STR_LIT>' ) <EOL> l = ( <NUM_LIT:10> , <NUM_LIT:1> , '<STR_LIT>' ) <EOL> m = ( <NUM_LIT:0> , <NUM_LIT:200> , '<STR_LIT>' ) <EOL> self . assertEqual ( compare_triples ( k , k ) , <NUM_LIT:0> ) <EOL> self . assertEqual ( compare_triples ( k , l ) , <NUM_LIT:1> ) <EOL> self . assertEqual ( compare_triples ( l , k ) , - <NUM_LIT:1> ) <EOL> self . assertEqual ( compare_triples ( k , m ) , <NUM_LIT:1> ) <EOL> self . assertEqual ( compare_triples ( m , k ) , - <NUM_LIT:1> ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
