We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a55879b commit 466fdc5Copy full SHA for 466fdc5
2024/init.sh
@@ -0,0 +1,30 @@
1
+#!/bin/bash
2
+
3
+day="$(date '+%d')"
4
5
+cat > lib/day$day.ex <<- EOM
6
+defmodule Day${day}a do
7
+ def run do
8
+ File.read!(".input.txt") |> run
9
+ end
10
11
+ def run(input) do
12
13
+end
14
+EOM
15
16
+cat > test/day${day}_test.exs <<- EOM
17
+defmodule Day${day}Test do
18
+ use ExUnit.Case
19
20
+ def example, do: ""
21
22
+ test "Part 1 Example" do
23
+ assert Day${day}a.run(example()) == :todo
24
25
26
+# test "Part 2 Example" do
27
+# assert Day${day}b.run(example()) == :todo
28
+# end
29
30
0 commit comments