plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

compare_test_output.py (198B)


      1 import sys
      2 
      3 file0 = sys.argv[1]
      4 file1 = sys.argv[2]
      5 
      6 with open(file0) as f:
      7     content0 = f.read()
      8 
      9 with open(file1) as f:
     10     content1 = f.read()
     11 
     12 print(int(sorted(content0) == sorted(content1)))