From 8ffb078c2e810b1864f844b35c07dd5285fca86d Mon Sep 17 00:00:00 2001 From: Arne Wischer Date: Wed, 4 Dec 2019 16:51:44 +0100 Subject: [PATCH] Moved Test Data --- days/day1.py | 2 +- days/day2.py | 2 +- days/day3.py | 5 ++--- days/{ => input}/day1_input | 0 days/{ => input}/day2_input | 0 days/{ => input}/day3_input | 0 6 files changed, 4 insertions(+), 5 deletions(-) rename days/{ => input}/day1_input (100%) rename days/{ => input}/day2_input (100%) rename days/{ => input}/day3_input (100%) diff --git a/days/day1.py b/days/day1.py index 22cc110..8d32ce6 100644 --- a/days/day1.py +++ b/days/day1.py @@ -2,7 +2,7 @@ import unittest import os class Day1(unittest.TestCase): - inputfile = os.path.join(os.path.dirname(__file__), "day1_input") + inputfile = os.path.join(os.path.dirname(__file__), "input/day1_input") def calc_fuel(self, mass): fuel = mass // 3 - 2 diff --git a/days/day2.py b/days/day2.py index c643b73..901ba2a 100644 --- a/days/day2.py +++ b/days/day2.py @@ -2,7 +2,7 @@ import unittest import os class Day2(unittest.TestCase): - inputfile = os.path.join(os.path.dirname(__file__), "day2_input") + inputfile = os.path.join(os.path.dirname(__file__), "input/day2_input") def test_day2a(self): self.assertTrue(1 == 1) diff --git a/days/day3.py b/days/day3.py index 05ad0c1..5b0f486 100644 --- a/days/day3.py +++ b/days/day3.py @@ -2,13 +2,12 @@ import unittest import os class Day3(unittest.TestCase): - inputfile = os.path.join(os.path.dirname(__file__), "day3_input") + inputfile = os.path.join(os.path.dirname(__file__), "input/day3_input") def test_day3a(self): with open(self.inputfile) as fp: steps = fp.readline().split(',') - - pass + pass if __name__ == "__main__": unittest.main() \ No newline at end of file diff --git a/days/day1_input b/days/input/day1_input similarity index 100% rename from days/day1_input rename to days/input/day1_input diff --git a/days/day2_input b/days/input/day2_input similarity index 100% rename from days/day2_input rename to days/input/day2_input diff --git a/days/day3_input b/days/input/day3_input similarity index 100% rename from days/day3_input rename to days/input/day3_input