[7] | 1 | package tudelft.mentalhealth.perfectfit;
|
---|
| 2 |
|
---|
| 3 | import static org.junit.Assert.assertEquals;
|
---|
| 4 |
|
---|
| 5 | import java.io.IOException;
|
---|
| 6 |
|
---|
| 7 | import org.junit.Test;
|
---|
| 8 |
|
---|
| 9 | public class CharacteristicsTest {
|
---|
| 10 |
|
---|
| 11 | @Test
|
---|
| 12 | public void testMinNormalization() throws IOException {
|
---|
| 13 | Characteristics minchar = new Characteristics(0, 0, 0, 0, 0, 0, 0, 0, 0,
|
---|
| 14 | 0);
|
---|
| 15 | Characteristics min = Characteristics.normalize(0, 000, 0, 0, 0, 0, 00,
|
---|
| 16 | 00, 00, 00);
|
---|
| 17 | assertEquals(minchar, min);
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | // FIXME age max 52 is assumed from the max values from Nele.
|
---|
| 21 | @Test
|
---|
| 22 | public void testMaxNormalization() throws IOException {
|
---|
| 23 | Characteristics maxchar = new Characteristics(1, 1, 1, 1, 1, 1, 1, 1, 1,
|
---|
| 24 | 1);
|
---|
| 25 | Characteristics max = Characteristics.normalize(2, 100, 5, 7, 5, 7, 24,
|
---|
| 26 | 52, 13, 11);
|
---|
| 27 | assertEquals(maxchar, max);
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | }
|
---|