User short grade names in grades summary (#141)

This commit is contained in:
Mikołaj Pich
2018-06-29 11:27:18 +02:00
committed by Rafał Borcz
parent dab1bd4ac6
commit 8725640168
4 changed files with 32 additions and 5 deletions

View File

@ -75,4 +75,11 @@ public class GradeUtilsTest {
assertEquals(R.color.default_grade, GradeUtils.getValueColor("7"));
assertEquals(R.color.default_grade, GradeUtils.getValueColor(""));
}
@Test
public void getShortGradeValueTest() {
assertEquals("6", GradeUtils.getShortGradeValue("celujący"));
assertEquals("1", GradeUtils.getShortGradeValue("niedostateczny"));
assertEquals("wzorowe", GradeUtils.getShortGradeValue("wzorowe"));
}
}