source: PerfectFit/Dialog/src/test/java/tudelft/mentalhealth/perfectfit/CharacteristicsTest.java@ 7

Last change on this file since 7 was 7, checked in by Wouter Pasman, 9 months ago

#124 release PerfectFit sources

File size: 786 bytes
Line 
1package tudelft.mentalhealth.perfectfit;
2
3import static org.junit.Assert.assertEquals;
4
5import java.io.IOException;
6
7import org.junit.Test;
8
9public 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}
Note: See TracBrowser for help on using the repository browser.