Skip to content

Commit

Permalink
Merge pull request #8 from PixlatedBatman/main
Browse files Browse the repository at this point in the history
Made changes to the test_parse functions
  • Loading branch information
tushar3q34 authored Sep 4, 2024
2 parents 626097a + 52d4847 commit 8558d51
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,37 @@ def test_scraper():
pytest.fail("Scraper could not fetch")


# def test_parser_int():
# p = Problem("2008","A")
# try:
# check_all()
# except:
# pytest.fail("Parser failed for pair of integers")
def test_parser_int():
p = Problem("2008","A")
try:
check_all(p.input)
except:
pytest.fail("Parser failed for pair of integers")

# def test_parser_array():
# p = Problem("2008", "F")
# try:
# check_all()
# check_all(p.input)
# except:
# pytest.fail("Parser failed for array of integers")

def test_parser_string():
def test_parser_string(p.input):
p = Problem("1922", "A")
try:
check_all()
check_all(p.input)
except:
pytest.fail("Parser failed for string")

# def test_parser_matrix():
# p = Problem("1980", "E")
# try:
# check_all()
# check_all(p.input)
# except:
# pytest.fail("Parser failed for matrix")

# def test_parser_string_array():
# p = Problem("1980", "E")
# try:
# check_all()
# check_all(p.input)
# except:
# pytest.fail("Parser failed for array of strings")

0 comments on commit 8558d51

Please sign in to comment.