Skip to content

mrwilson/advent-of-code-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advent-of-code-2021

Tests

Advent of SQL was not enough. This year, it's ...

👽 Jadvent of Qode 👽

So, what's here?

  • Each day's puzzles live under the corresponding numeric directory nn/

  • Directory numbers are zero-padded because numeric order is important to me

  • Each directory will probably have:

    • day_nn.jq (the solution)
    • day_nn_test.jq (the unit tests)
    • input.txt from the AoC site
  • Teeny-tiny test/matcher framework that lives in testing.jq. I'll probably pull this out as a separate module once AoC is over called "jamqrest"

  • 00/ is the testing spike and corresponds to Day 1 of AoC 2019

  • Utilities library in util.jq

  • Test runner logic in test.sh

$ ./run.sh

Usage: run.sh [-d (day)] [-p (part)] [-t (tests only)]