| 1234567891011121314151617181920212223242526272829303132333435 |
- import org.junit.Assert;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
-
- /**
- * The test class ScrabbleTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class ScrabbleTest
- {
- /**
- * Default constructor for test class ScrabbleTest
- */
- public ScrabbleTest()
- {
- }
-
- @Test
- public void testScore(){
- Scrabble scrabble = new Scrabble();
- String word = "pontificate";
- int expectedScore = 18;
-
- int actualScore = scrabble.score(word);
-
-
- Assert.assertEquals(expectedScore, actualScore);
-
- }
- }
|