Skip to content

Commit

Permalink
Forgot to check the test code after the redesign (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
breki committed Dec 26, 2020
1 parent bc359e2 commit ee6c03f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
open System
open DataAnalysis.DatedTypes
open DataAnalysis.AgeGroupsTimeline
open AgeGroupsTimelineViz.Synthesis
open TestHelpers
open Xunit
open Swensen.Unquote
Expand Down Expand Up @@ -45,14 +44,13 @@ let ``Can extract data for individual age group``() =

let baseDate = DateTime(2020, 03, 01)

let sourceData = {
let sourceData: CasesByAgeGroupsTimeline = {
StartDate = baseDate
Data = [| day0; day1 |]
}

let timeline =
sourceData
|> extractTimelineForAgeGroup (groupKey 1) Daily
extractTimelineForAgeGroup (groupKey 1) Daily sourceData sourceData

test <@ timeline.StartDate = baseDate @>
test <@ timeline.Data = [| 15; 25 |] @>

0 comments on commit ee6c03f

Please sign in to comment.