Exemple #1
0
        public void Flatten(List <Interval <int> > input, List <Interval <int> > expectedOutput)
        {
            var output = Intervals.Flatten(input);

            // Comparison is done on the string representation of intervals in order to handle infinity cases which are
            // not comparable.
            Assert.Equal(expectedOutput.Select(i => i.ToString()), output.Select(i => i.ToString()));
        }