Moved Test Data

master
Arne Wischer 6 years ago
parent 2bf5f3816e
commit 8ffb078c2e
  1. 2
      days/day1.py
  2. 2
      days/day2.py
  3. 3
      days/day3.py
  4. 0
      days/input/day1_input
  5. 0
      days/input/day2_input
  6. 0
      days/input/day3_input

@ -2,7 +2,7 @@ import unittest
import os import os
class Day1(unittest.TestCase): 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): def calc_fuel(self, mass):
fuel = mass // 3 - 2 fuel = mass // 3 - 2

@ -2,7 +2,7 @@ import unittest
import os import os
class Day2(unittest.TestCase): 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): def test_day2a(self):
self.assertTrue(1 == 1) self.assertTrue(1 == 1)

@ -2,12 +2,11 @@ import unittest
import os import os
class Day3(unittest.TestCase): 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): def test_day3a(self):
with open(self.inputfile) as fp: with open(self.inputfile) as fp:
steps = fp.readline().split(',') steps = fp.readline().split(',')
pass pass
if __name__ == "__main__": if __name__ == "__main__":

Loading…
Cancel
Save