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

ScrabbleTest.java 534B

12345678910111213141516171819202122232425262728293031
  1. import static org.junit.Assert.*;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. public class ScrabbleTest
  6. {
  7. @Test
  8. public void testScrabble()
  9. {
  10. int expected =10;
  11. Scrabble t1=new Scrabble();
  12. int actual=t1.score("q");
  13. assertEquals(actual,expected);
  14. }
  15. @Test
  16. public void testScrabble1()
  17. {
  18. int expected =10;
  19. Scrabble t1=new Scrabble();
  20. int actual=t1.score("bmw");
  21. assertEquals(actual,expected);
  22. }
  23. }