some code samples, various examples of simple modeling ideas and some minor algorithms.

ScrabbleTest.java 451B

12345678910111213141516171819202122232425
  1. import org.junit.Assert;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. /**
  6. * The test class ScrabbleTest.
  7. *
  8. * @author (your name)
  9. * @version (a version number or a date)
  10. */
  11. public class ScrabbleTest
  12. {
  13. @Test
  14. public void testWord() {
  15. Scrabble scrabble = new Scrabble();
  16. int actual = scrabble.score("zero");
  17. int expected = 13;
  18. Assert.assertEquals(actual, expected);
  19. }
  20. }