Commit Graph

58 Commits

Author SHA1 Message Date
Julia Friesel 125fe03678 Fix test file name spelling 2018-08-02 15:52:32 +02:00
Julia Friesel 8bbf122d12 Ignore 0 -> 1 mucus shift 2018-08-02 11:12:01 +02:00
Julia Friesel 574e7ed854 Ignore highest quality after end of eval 2018-08-01 16:45:41 +02:00
tina 00a7de0faf little improvements and test for array of one element 2018-08-01 15:49:44 +02:00
tina 9664984e72 rounds period stats, adds tests 2018-08-01 15:19:59 +02:00
tina cceecc071d computes the stats about the period lengths, started tests 2018-07-31 15:06:16 +02:00
Julia Friesel 5ce6bc8cfc Handle cycle with mucus on first cycle day 2018-07-24 14:21:10 +02:00
Julia Friesel 67ebacfdd7 Fix whitespace 2018-07-18 16:39:52 +02:00
Julia Friesel 58aa0c4b8d Remove assumeFertility from status, derive from phases instead 2018-07-18 14:18:04 +02:00
Julia Friesel 42a96da69d Change cycle module API, add getCycleForDay, remove unused functions 2018-07-18 13:32:40 +02:00
Julia Friesel 52b6e5de0a Make previousCycle explicit in signature 2018-07-18 10:02:11 +02:00
Julia Friesel c96d3d4550 Merge branch 'master' into 73-implement-nfp-logic-for-mucus-mode 2018-07-16 13:55:07 +02:00
emelko 7e0456c10f Adding unit tests to all possible mucus feeling/texture combinations 2018-07-16 11:58:42 +02:00
Julia Friesel 85e2703b2f Get previous cycles before detecting fertility status 2018-07-13 11:30:54 +02:00
Julia Friesel 125fd84d59 Add another test 2018-07-13 09:09:12 +02:00
Julia Friesel b3467005e1 Fix line length linter warnings 2018-07-13 07:20:52 +02:00
Julia Friesel 7382bff0dd Implement minus 8 day rule 2018-07-13 07:14:36 +02:00
Julia Friesel 93ff7a0f8f Set up failing test for minus 8 rule 2018-07-12 11:55:42 +02:00
Julia Friesel 19e880183e Accept previousCycles as array 2018-07-11 14:14:42 +02:00
Julia Friesel 9e645ddd8e Add more tests for combinations of fhm and mucus peak 2018-07-11 13:00:16 +02:00
Julia Friesel a1306cd7c5 Use assert for args check 2018-07-10 17:18:50 +02:00
Julia Friesel 60c6189466 Shorten pre-ovu phase when early mucus 2018-07-10 17:04:54 +02:00
Julia Friesel d027c6e9c4 Throw if args are wrong 2018-07-10 16:37:38 +02:00
Julia Friesel 81b7b46b23 Use explicit dates with gaps and fix bugs that this uncovers 2018-07-10 14:22:40 +02:00
Julia Friesel 0de009335f Handle pre-ovulatory = current 2018-07-10 13:22:34 +02:00
Julia Friesel 51bd75fb0f Extract fixtures 2018-07-10 13:10:53 +02:00
Julia Friesel 672235a475 Detect all 3 phases 2018-07-10 13:03:19 +02:00
Julia Friesel f7e1152fdc Implement 5-day-rule 2018-07-10 12:35:40 +02:00
Julia Friesel 0179c4588e Detect pre- and postovulatory phase with no previous higher measurement 2018-07-10 10:56:33 +02:00
Julia Friesel 77ad491d30 Return evaluation completed day from mucus eval 2018-07-10 10:55:33 +02:00
Julia Friesel 9102bce7ce Return cycle phase starts 2018-07-05 14:28:21 +02:00
Julia Friesel 836bea778c Combine temp and mucus evaluation 2018-07-05 13:53:06 +02:00
Julia Friesel f1f9c7773a Expect cycle days, not numbers, in getTemperatureStatus 2018-07-05 12:10:18 +02:00
Julia Friesel 2f8054c1fa Add mucus shift detection 2018-07-05 09:39:08 +02:00
Julia Friesel e4bae38d13 Introduce facade for sympto 2018-07-05 09:39:08 +02:00
Julia Friesel fb990b5a4b Fix tests to fit new sympto api 2018-07-05 09:39:08 +02:00
Julia Friesel 9c1876e876 Change sympto module structure 2018-07-05 09:39:08 +02:00
Julia Friesel 03a0f1fb75 Implement second exception rule 2018-07-05 09:39:08 +02:00
Julia Friesel 8db92e96f3 Add tests for invalid shifts 2018-07-05 09:39:08 +02:00
Julia Friesel 1eb3f4a14a Change API so it doesn't return unnecessary info 2018-07-05 09:39:08 +02:00
Julia Friesel a90d393545 Return potential high temps as well 2018-07-05 09:39:08 +02:00
Julia Friesel 5e0601320b Add test for less than 6 low temps 2018-07-05 09:39:08 +02:00
Julia Friesel d1f2922357 Change function signature and remove fixtures 2018-07-05 09:39:08 +02:00
Julia Friesel e1f473de3b Detect missing shifts 2018-07-05 09:39:08 +02:00
Julia Friesel 9e92f072de Add 1st exception rule 2018-07-05 09:39:08 +02:00
Julia Friesel 3a090c5d8a For temperature, add 2 passing test for simple happy path 2018-07-05 09:39:08 +02:00
Julia Friesel 28b880a40c Gather general cycle-related functions in cycle module 2018-07-05 09:39:08 +02:00
Julia Friesel 97b8452b45 Add first failing test 2018-07-05 09:39:08 +02:00
Julia Friesel 46040f1a77 Create components and lib folder 2018-06-28 10:58:56 +02:00
Julia Friesel 9922b2e7b8 Fix bug for just one bleeding day 2018-06-13 12:49:29 +02:00