public void FingerprintTest(string input, string expectedOutput) { Schema s = Schema.Parse(input); long carefulFP = AltFingerprint(SchemaNormalization.ToParsingForm(s)); Assert.AreEqual(long.Parse(expectedOutput), carefulFP); Assert.AreEqual(carefulFP, SchemaNormalization.ParsingFingerprint64(s)); }
public void CanonicalTest(string input, string expectedOutput) { Assert.AreEqual(expectedOutput, SchemaNormalization.ToParsingForm(Schema.Parse(input))); }