Commits

Ed Brannin  committed f1b1660

Moar

  • Participants
  • Parent commits 5ae8d70

Comments (0)

Files changed (2)

       unknown += letter
   print "Remaining: %(total)d points for %(unknown)s." % dict(total=total, unknown=unknown)
 
-guess_letters("quod", 92)
-guess_letters("queer", 245)
+if __name__ == "__main__":
+  guess_letters("quod", 92)
+  guess_letters("queer", 245)

File value_test.py

 from value import score
 
-assert score("are") == 9
-assert score("the") == 18
-assert score("zoo") == 72
-# assert score("heffalump") == 0
-assert score("quod") == 92
-assert score("doe") == 12
-assert score("sed") == 12
-assert score("wap") == 24)
-assert score("wee") == 18)
+known_values = dict(
+are=9,
+the=18,
+zoo=72,
+# heffalump=0,
+# quod=92,
+doe=12,
+sed=12,
+wap=24,
+wee=18,
+)
+
+for word, value in known_values.items():
+  assert score(word) == value
+