package fpc.aoc.day1;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class TestDay1Solver {

    public static final String TEST_INPUT = """
            199
            200
            208
            210
            200
            207
            240
            269
            260
            263
            """;

    @Test
    public void testExampleDay1Part1() {
        final long actual = new Day1Part1Solver().createProblem(TEST_INPUT).solve();
        Assertions.assertEquals(7,actual);
    }

    @Test
    public void testExampleDay1Part2() {
        final long actual = new Day1Part2Solver().createProblem(TEST_INPUT).solve();
        Assertions.assertEquals(5,actual);
    }
}

{'avg_line_length': 22.12121212121212, 'max_line_length': 84, 'alphanum_fraction': 0.5684931506849316, 'licenses': ['MIT'], 'repository_name': 'baracil/aoc-2021-java', 'path': 'fpc.aoc.problems/fpc.aoc.day01/src/test/java/fpc/aoc/day1/TestDay1Solver.java', 'size': 730, 'lang': 'Java'}