Skip to content

dradtke/advent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consolidated Advent of Code submissions

Running

Erlang

To run part1.erl:

$ erlc part1.erl
$ cat input | erl -noshell -s part1 -s init stop

To run tests in part1_tests.erl:

$ erlc part1_tests.erl
$ erl -noshell -s eunit test -s init stop

Rust

To run:

$ cat input | cargo run

To test:

$ cargo test

Zig

To run part1.zig:

$ cat input | zig run part1.zig

To test it:

$ zig test part1.zig

To debug the tests using GDB:

$ zig test part1.zig --test-cmd 'gdb' --test-cmd '--args' --test-cmd-bin --test-cmd "$(which zig)"