# Rosalind: BA1G — Compute the Hamming Distance Between Two Strings # https://rosalind.info/problems/ba1g/ # # Given: Two strings of equal length. # Return: Their Hamming distance. let p = "GGGCCGTTGGT" let q = "GGACCGTTGAC" let result = hamming_distance(p, q) println("Result: " + str(result)) println("Expected: 3") fn test_ba1g_hamming_distance() { assert result == 3, "BA1G: got " + str(result) }