From 272fcc5e1b75780946de339ff273649ddaf87569 Mon Sep 17 00:00:00 2001 From: Daniel Lin Date: Wed, 20 Dec 2023 17:17:27 -0500 Subject: [PATCH] Update skipped tests --- hs/test/Day20Spec.hs | 6 +++--- py/aoc2023/day20.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hs/test/Day20Spec.hs b/hs/test/Day20Spec.hs index ca823d0d..a2cc7958 100644 --- a/hs/test/Day20Spec.hs +++ b/hs/test/Day20Spec.hs @@ -3,13 +3,12 @@ module Day20Spec (spec) where import Data.Text (Text) import qualified Data.Text as T (unlines) -import Day20 (part1) +import Day20 (part1, part2) import Test.Hspec (Spec, describe, it, pendingWith, shouldBe) example1, example2 :: Text example1 = T.unlines - [ -- :r!wl-paste | sed 's/.*/ , "&"/;1s/,/ /' - "broadcaster -> a, b, c" + [ "broadcaster -> a, b, c" , "%a -> b" , "%b -> c" , "%c -> inv" @@ -32,3 +31,4 @@ spec = do describe "part 2" $ do it "examples" $ do pendingWith "No examples provided" + part2 "" `shouldBe` Right (Just undefined) diff --git a/py/aoc2023/day20.py b/py/aoc2023/day20.py index ead8637c..31764c2d 100644 --- a/py/aoc2023/day20.py +++ b/py/aoc2023/day20.py @@ -141,7 +141,7 @@ def _loop(machines, dst): def part2(data): """ - >>> # part2(SAMPLE_INPUT) + >>> part2(SAMPLE_INPUT) # doctest: +SKIP """ machines, dependencies = _parse(data) if machines.get("broadcast", (None,))[0] is not None: