From 2ba7501d516afa4ab240faccefb6a3f72223598e Mon Sep 17 00:00:00 2001 From: Tomasz Chojnacki Date: Thu, 2 Mar 2023 20:57:57 +0100 Subject: Update to Gleam v0.27 --- aoc-2020-gleam/src/days/day02.gleam | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'aoc-2020-gleam/src/days/day02.gleam') diff --git a/aoc-2020-gleam/src/days/day02.gleam b/aoc-2020-gleam/src/days/day02.gleam index 3099d23..cedb604 100644 --- a/aoc-2020-gleam/src/days/day02.gleam +++ b/aoc-2020-gleam/src/days/day02.gleam @@ -34,7 +34,7 @@ fn parse_line(string: String) -> Line { |> p.map2(with: Line) |> p.labeled(with: "line") - assert Ok(policy) = p.parse_entire(string, with: line_parser) + let assert Ok(policy) = p.parse_entire(string, with: line_parser) policy } @@ -76,8 +76,8 @@ fn part2(lines: List(String)) -> Int { pub fn run() -> Nil { let test = input_util.read_lines("test02") - assert 2 = part1(test) - assert 1 = part2(test) + let assert 2 = part1(test) + let assert 1 = part2(test) let input = input_util.read_lines("day02") io.debug(part1(input)) -- cgit v1.2.3