Skip to content

🦆I can't believe I'm doing this again 🦆

Notifications You must be signed in to change notification settings

mrwilson/advent-of-code-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advent-of-code-2022

Yeah, I think we're back.

This year I'll be using SQL (again) but with DuckDB rather than SQLite.

We've got a neat little TAP-compatible test framework using DuckDB's macros.

.read testing.sql
.read 00/00.sql

select run_all([
  assert_equals(fuel(14), 2, '14 weight needs 2 fuel'),
  assert_equals(fuel(1969), 654, '1969 weight needs 654 fuel')
]);
1..2
ok - 14 weight needs 2 fuel
ok - 1969 weight needs 654 fuel

About

🦆I can't believe I'm doing this again 🦆

Topics

Resources

Stars

Watchers

Forks

Languages