From 6b4a89309ea2bebf5e9dff4d0a8b6b5c86a2e833 Mon Sep 17 00:00:00 2001 From: Kashyap Date: Mon, 2 Sep 2024 23:26:23 +0530 Subject: [PATCH] Made corrections to test_parse fns --- test_parser.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test_parser.py b/test_parser.py index 85124e1..52ad149 100644 --- a/test_parser.py +++ b/test_parser.py @@ -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") \ No newline at end of file