Skip to content

Commit

Permalink
Made corrections to test_parse fns
Browse files Browse the repository at this point in the history
  • Loading branch information
Kashyap committed Sep 2, 2024
1 parent f7ff2c8 commit 6b4a893
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 @@ -10,37 +10,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 6b4a893

Please sign in to comment.