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 44bf1ae commit 2e92a06Copy full SHA for 2e92a06
t.rb
@@ -0,0 +1 @@
1
+test.rb
test.rb
@@ -0,0 +1,8 @@
+require_relative '../adventofcode-common/test'
2
+
3
+test_and_exit { |daypad|
4
+ scripts = Dir.glob("#{__dir__}/#{daypad}_*.rb")
5
+ next if scripts.empty?
6
+ raise "Need exactly one script not #{scripts}" if scripts.size != 1
7
+ "ruby #{scripts[0]}"
8
+}
0 commit comments