123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
-
-
- import static 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
- {
- @Test
- public void ScrabbleTest(){
-
- //expected
- int expected = 5;
-
- //actaul
- int actual = Scrabble.score("gato");
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void ScrabbleTest2(){
- int expected = 8;
-
- int actual = Scrabble.score("house");
-
- assertEquals(expected, actual);
-
- }
-
- @Test
- public void ScrabbleTest3(){
- int expected = 22;
-
- int actual = Scrabble.score("quiz");
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void ScrabbleTest4(){
- int expected = 13;
-
- int actual = Scrabble.score("yugioh");
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void ScrabbleTest5(){
- int expected = 5;
-
- int actual = Scrabble.score("ps4");
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void ScrabbleTest6(){
- int expected = 11;
-
- int actual = Scrabble.score("iphone");
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void ScrabbleTest7(){
- int expected = 10;
-
- int actual = Scrabble.score("samsung");
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void ScrabbleTest8(){
- int expected = 23;
-
- int actual = Scrabble.score("philosophy");
-
- assertEquals(expected, actual);
-
- }
-
- @Test
- public void ScrableTest9(){
- int expected = 23;
-
- int actual = Scrabble.score("quadrilateral");
-
- assertEquals(expected, actual);
- }
-
- }
|