// aoc (12/10/21)
// © 2021 Joe Sherwood. All rights reserved.

import XCTest

class Test202109: XCTestCase {
  
  func testp1_1() {
    let input = """
                2199943210
                3987894921
                9856789892
                8767896789
                9899965678
                """
    let d = AOC21.Day09(raw: input)
    let p1 = d.p1()
    
    XCTAssertEqual(p1, "15")
  }
  
  func testp2_1() {
    let input = """
                2199943210
                3987894921
                9856789892
                8767896789
                9899965678
                """
    let d = AOC21.Day09(raw: input)
    let p2 = d.p2()
    
    XCTAssertEqual(p2, "1134")
  }
}
