From 7ffc9a3f319e497b3f60188449a14b8fc165ad86 Mon Sep 17 00:00:00 2001 From: Ainur Gimadeev Date: Tue, 8 Mar 2022 12:03:51 +0300 Subject: [PATCH] Change arguments order --- hstest/stage/django_test.py | 4 +- hstest/stage/flask_test.py | 4 +- hstest/stage/plotting_test.py | 4 +- hstest/stage/stage_test.py | 2 +- .../test_command_line_args_changed/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../success_dynamic_input/test.py | 2 +- .../dynamic_input/test_dynamic_input/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test_multiple_dynamic_inputs/test.py | 2 +- .../test_dynamic_output/test.py | 2 +- .../test_dynamic_output_with_input/test.py | 2 +- .../test_dynamic_output_without_input/test.py | 2 +- .../feedback_on_exception_test_1/test.py | 2 +- .../feedback_on_exception_test_2/test.py | 2 +- .../feedback_on_exception_test_3/test.py | 2 +- .../feedback_on_exception_test_4/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../imports/test_import_absolute/test.py | 2 +- .../imports/test_import_absolute_2/test.py | 2 +- .../test_import_absolute_error/test.py | 2 +- .../test_import_absolute_error_2/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../imports/test_import_package/test.py | 2 +- .../imports/test_import_package_3/test.py | 2 +- .../imports/test_import_package_5/test.py | 2 +- .../imports/test_import_package_6/test.py | 2 +- .../imports/test_import_relative/test.py | 2 +- .../test_import_relative_error/test.py | 2 +- .../test_import_relative_error_2/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../imports/user_main_file_not_exists/test.py | 2 +- .../test.py | 2 +- .../imports/user_module_not_exists/test.py | 2 +- .../test.py | 2 +- .../exception_while_reading/test.py | 2 +- .../exception_while_reading_2/test.py | 2 +- .../success_but_not_used_input_1/test.py | 2 +- .../success_but_not_used_input_2/test.py | 2 +- .../test.py | 2 +- .../input_handle/test_out_of_input_1/test.py | 2 +- .../input_handle/test_out_of_input_2/test.py | 2 +- .../input_handle/test_out_of_input_3/test.py | 2 +- .../input_handle/test_out_of_input_4/test.py | 2 +- .../lib/exception_in_user_code/test.py | 2 +- .../lib/exception_in_user_code_2/test.py | 2 +- .../lib/exception_in_user_code_3/test.py | 2 +- .../lib/order/test_order_complex/test.py | 2 +- tests/outcomes/lib/success/test.py | 2 +- tests/outcomes/lib/success2/test.py | 2 +- .../lib/test_case_same_objects/test.py | 2 +- .../outcomes/lib/test_copy_to_attach/test.py | 2 +- .../outcomes/lib/test_curr_test_case/test.py | 2 +- tests/outcomes/lib/test_curr_test_num/test.py | 2 +- .../outcomes/lib/test_custom_checker/test.py | 2 +- .../lib/test_custom_checker_fail/test.py | 2 +- .../outcomes/lib/test_nbsp_in_output/test.py | 2 +- .../lib/test_run_test_inside_test/test.py | 4 +- .../long_output_on_raise_wrong_answer/test.py | 2 +- .../long_output_on_unexpected_error/test.py | 2 +- .../long_output_with_arguments/test.py | 2 +- .../test_label_on_long_output/test.py | 2 +- .../test.py | 2 +- .../wrong_output_with_too_long_output/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../correct/test_parametrized_data/test.py | 2 +- .../correct/test_parametrized_data_2/test.py | 2 +- .../correct/test_parametrized_data_3/test.py | 2 +- .../correct/test_parametrized_data_4/test.py | 2 +- .../correct/test_parametrized_data_5/test.py | 2 +- .../wrong/test_wrong_data/test.py | 2 +- .../wrong/test_wrong_data_2/test.py | 2 +- tests/outcomes/plot/area/pandas/test.py | 2 +- tests/outcomes/plot/bar/matplotlib/test.py | 2 +- tests/outcomes/plot/bar/pandas/test.py | 2 +- tests/outcomes/plot/bar/seaborn/test.py | 2 +- tests/outcomes/plot/box/matplotlib/test.py | 2 +- tests/outcomes/plot/box/pandas/test.py | 2 +- tests/outcomes/plot/box/seaborn/test.py | 2 +- tests/outcomes/plot/cat/seaborn/test.py | 2 +- tests/outcomes/plot/dis/pandas/test.py | 2 +- tests/outcomes/plot/dis/seaborn/test.py | 2 +- .../outcomes/plot/heatmap/matplotlib/test.py | 2 +- tests/outcomes/plot/heatmap/seaborn/test.py | 2 +- tests/outcomes/plot/hexbin/pandas/test.py | 2 +- .../plot/hist/matplotlib/test_data/test.py | 2 +- .../hist/matplotlib/test_sorting_data/test.py | 2 +- .../plot/hist/pandas/test_data/test.py | 2 +- .../plot/hist/pandas/test_group_by/test.py | 2 +- .../hist/pandas/test_sorting_data/test.py | 2 +- .../plot/hist/seaborn/test_data/test.py | 2 +- .../hist/seaborn/test_sorting_data/test.py | 2 +- tests/outcomes/plot/line/matplotlib/test.py | 2 +- tests/outcomes/plot/line/pandas/test.py | 2 +- tests/outcomes/plot/line/seaborn/test.py | 2 +- tests/outcomes/plot/lm/seaborn/test.py | 2 +- tests/outcomes/plot/pie/matplotlib/test.py | 2 +- tests/outcomes/plot/pie/pandas/test.py | 2 +- .../outcomes/plot/scatter/matplotlib/test.py | 2 +- tests/outcomes/plot/scatter/pandas/test.py | 2 +- tests/outcomes/plot/scatter/seaborn/test.py | 2 +- .../plot/test_matplotlib/test_revert/test.py | 2 +- .../plot/test_pandas/test_revert/test.py | 2 +- .../plot/test_seaborn/test_revert/test.py | 2 +- .../outcomes/plot/violinplot/seaborn/test.py | 2 +- .../outcomes/repeating/test_repeating/test.py | 2 +- .../repeating/test_repeating_2/test.py | 2 +- .../repeating/test_repeating_3/test.py | 2 +- .../test.py | 2 +- .../test_repeating_wrong_amount/test.py | 2 +- tests/outcomes/runtime_exit/test_quit/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../simple_test/test_simple_test_case/test.py | 2 +- .../test_simple_test_case_fail/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../syntax_error/test_empty_eval/test.py | 2 +- .../test_error_using_eval/test.py | 2 +- .../test_error_using_eval_and_print/test.py | 2 +- .../test_error_using_exec/test.py | 2 +- .../syntax_error/test_syntax_error_1/test.py | 2 +- .../syntax_error/test_syntax_error_2/test.py | 2 +- .../test_passed_thrown_in_check_1/test.py | 2 +- .../test_passed_thrown_in_check_2/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../timeout/test_default_time_limit/test.py | 2 +- .../timeout/test_no_time_limit/test.py | 2 +- tests/outcomes/timeout/test_timeout_1/test.py | 2 +- tests/outcomes/timeout/test_timeout_2/test.py | 2 +- tests/outcomes/timeout/test_timeout_3/test.py | 2 +- .../unexpected_error_add_input_1/test.py | 2 +- .../unexpected_error_add_input_2/test.py | 2 +- .../unexpected_error_add_input_3/test.py | 2 +- .../unexpected_error_during_checking/test.py | 2 +- .../test.py | 2 +- .../unexpected_error_empty_test_cases/test.py | 2 +- .../unexpected_error_generating_tests/test.py | 2 +- .../test.py | 2 +- .../unexpected_error_no_check_method/test.py | 2 +- .../test.py | 2 +- .../wrong_answer_dynamic_input_1/test.py | 2 +- .../wrong_answer_dynamic_input_2/test.py | 2 +- .../wrong_answer_dynamic_input_3/test.py | 2 +- .../wrong_answer_dynamic_input_4/test.py | 2 +- .../wrong_answer_in_test_1/test.py | 2 +- .../wrong_answer_in_test_2/test.py | 2 +- .../wrong_answer_thrown_in_check_1/test.py | 2 +- .../wrong_answer_thrown_in_check_2/test.py | 2 +- .../test.py | 2 +- .../test.py | 2 +- .../projects/go/coffee_machine/stage1/main.go | 15 -- .../go/coffee_machine/stage1_ce/main.go | 9 -- .../go/coffee_machine/stage1_ex/main.go | 5 - .../go/coffee_machine/stage1_wa/main.go | 9 -- .../projects/go/coffee_machine/stage2/main.go | 15 -- .../projects/go/coffee_machine/stage3/main.go | 36 ----- .../projects/go/coffee_machine/stage4/main.go | 84 ----------- .../projects/go/coffee_machine/stage5/main.go | 95 ------------- .../javascript/coffee_machine/stage1/main.js | 8 -- .../coffee_machine/stage1_ce/main.js | 8 -- .../coffee_machine/stage1_ex/main.js | 2 - .../coffee_machine/stage1_wa/main.js | 1 - .../javascript/coffee_machine/stage2/main.js | 10 -- .../stage2/node_modules/sync-input/index.js | 35 ----- .../javascript/coffee_machine/stage3/main.js | 25 ---- .../stage3/node_modules/sync-input/index.js | 35 ----- .../javascript/coffee_machine/stage4/main.js | 70 --------- .../stage4/node_modules/sync-input/index.js | 35 ----- .../javascript/coffee_machine/stage5/main.js | 77 ---------- .../stage5/node_modules/sync-input/index.js | 35 ----- .../simple_chatty_bot/stage1/main.js | 5 - .../simple_chatty_bot/stage2/main.js | 12 -- .../stage2/node_modules/sync-input/index.js | 35 ----- .../simple_chatty_bot/stage3/main.js | 22 --- .../stage3/node_modules/sync-input/index.js | 35 ----- .../simple_chatty_bot/stage4/main.js | 31 ---- .../stage4/node_modules/sync-input/index.js | 35 ----- .../simple_chatty_bot/stage5/main.js | 83 ----------- .../stage5/node_modules/sync-input/index.js | 35 ----- .../javascript/zookeeper/stage1/main.js | 7 - .../javascript/zookeeper/stage2/main.js | 20 --- .../stage2/node_modules/sync-input/index.js | 35 ----- .../javascript/zookeeper/stage3/main.js | 129 ----------------- .../stage3/node_modules/sync-input/index.js | 35 ----- .../javascript/zookeeper/stage4/main.js | 134 ------------------ .../stage4/node_modules/sync-input/index.js | 35 ----- .../stage1/machine/coffee_machine.py | 8 -- .../stage2/machine/coffee_machine.py | 18 --- .../stage3/machine/coffee_machine.py | 29 ---- .../stage4/machine/coffee_machine.py | 61 -------- .../stage5/machine/coffee_machine.py | 113 --------------- .../shell/coffee_machine/stage1/main.sh | 7 - .../shell/coffee_machine/stage1_ex/main.sh | 1 - .../shell/coffee_machine/stage1_wa/main.sh | 1 - .../shell/coffee_machine/stage2/main.sh | 6 - 231 files changed, 190 insertions(+), 1731 deletions(-) diff --git a/hstest/stage/django_test.py b/hstest/stage/django_test.py index 5c1b8709..2bfda27e 100644 --- a/hstest/stage/django_test.py +++ b/hstest/stage/django_test.py @@ -15,8 +15,8 @@ class DjangoTest(StageTest): test_database: str = attach.test_database use_database: bool = attach.use_database - def __init__(self, source_name: str = ''): - super().__init__(source_name) + def __init__(self, args='test_run_unittest', source_name: str = ''): + super().__init__(args, source_name) self.attach.use_database = self.use_database loop_detector.working = False Settings.do_reset_output = False diff --git a/hstest/stage/flask_test.py b/hstest/stage/flask_test.py index 3f5ed0ae..c1aede34 100644 --- a/hstest/stage/flask_test.py +++ b/hstest/stage/flask_test.py @@ -13,8 +13,8 @@ class FlaskTest(StageTest): runner = FlaskApplicationRunner() attach: FlaskSettings = FlaskSettings() - def __init__(self, source_name: str = ''): - super().__init__(source_name) + def __init__(self, args='test_run_unittest', source_name: str = ''): + super().__init__(args, source_name) loop_detector.working = False Settings.do_reset_output = False diff --git a/hstest/stage/plotting_test.py b/hstest/stage/plotting_test.py index 76164498..55437147 100644 --- a/hstest/stage/plotting_test.py +++ b/hstest/stage/plotting_test.py @@ -7,8 +7,8 @@ class PlottingTest(StageTest): - def __init__(self, source: str = ''): - super().__init__(source) + def __init__(self, args='test_run_unittest', source_name: str = ''): + super().__init__(args, source_name) self._all_drawings: List[Drawing] = [] self._new_drawings: List[Drawing] = [] self.runner = PlottingTestingRunner(self._all_drawings, self._new_drawings) diff --git a/hstest/stage/stage_test.py b/hstest/stage/stage_test.py index e81861be..2e4bca2e 100644 --- a/hstest/stage/stage_test.py +++ b/hstest/stage/stage_test.py @@ -45,7 +45,7 @@ class StageTest(unittest.TestCase, metaclass=DirMeta): curr_test_run: Optional[TestRun] = None curr_test_global: int = 0 - def __init__(self, source_name: str = '', args='test_run_unittest'): + def __init__(self, args='test_run_unittest', source_name: str = ''): super(StageTest, self).__init__(args) self.is_tests = False diff --git a/tests/outcomes/command_line_args/test_command_line_args_changed/test.py b/tests/outcomes/command_line_args/test_command_line_args_changed/test.py index 02a26062..c9a431a1 100644 --- a/tests/outcomes/command_line_args/test_command_line_args_changed/test.py +++ b/tests/outcomes/command_line_args/test_command_line_args_changed/test.py @@ -16,7 +16,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgsChanged('main').run_tests() + status, feedback = TestCommandLineArgsChanged(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed/test.py index de766dab..63edea29 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailed('main').run_tests() + status, feedback = TestCommandLineArgumentsFailed(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_2/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_2/test.py index a811ebb7..e5c06c49 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_2/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_2/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailed2('main').run_tests() + status, feedback = TestCommandLineArgumentsFailed2(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method/test.py index 4f33beb7..e92959d6 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method/test.py @@ -16,7 +16,7 @@ def test1(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicMethod('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicMethod(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_2/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_2/test.py index 74d66422..0d0d29d4 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_2/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_2/test.py @@ -16,7 +16,7 @@ def test1(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicMethod2('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicMethod2(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_3/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_3/test.py index 9cbe5798..c52c7715 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_3/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_3/test.py @@ -20,7 +20,7 @@ def test1(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicMethod3('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicMethod3(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_4/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_4/test.py index 143d144e..77bd6fdd 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_4/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_4/test.py @@ -20,7 +20,7 @@ def test1(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicMethod5('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicMethod5(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_5/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_5/test.py index c5382248..83e425c3 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_5/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_method_5/test.py @@ -20,7 +20,7 @@ def test1(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicMethod4('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicMethod4(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing/test.py index e44f9b32..4bc8c90e 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing/test.py @@ -21,7 +21,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicTesting('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicTesting(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_2/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_2/test.py index f0a3a71c..f1673fd0 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_2/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_2/test.py @@ -21,7 +21,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicTesting3('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicTesting3(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_3/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_3/test.py index 10543afd..87d2a398 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_3/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_3/test.py @@ -25,7 +25,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicTesting3('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicTesting3(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_4/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_4/test.py index 0a6e283c..7d6bcd91 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_4/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_4/test.py @@ -25,7 +25,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicTesting4('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicTesting4(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_5/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_5/test.py index c812ec7f..2382e06f 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_5/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_dynamic_testing_5/test.py @@ -25,7 +25,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedDynamicTesting4('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedDynamicTesting4(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test/test.py index 67a8ea01..9538f8ef 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedSecondTest('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedSecondTest(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test_dynamic_method/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test_dynamic_method/test.py index b301b7ea..116db4e1 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test_dynamic_method/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test_dynamic_method/test.py @@ -22,7 +22,7 @@ def test2(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedSecondTestDynamicMethod('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedSecondTestDynamicMethod(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test_dynamic_testing/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test_dynamic_testing/test.py index b1eb20d4..16ed6e00 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test_dynamic_testing/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_second_test_dynamic_testing/test.py @@ -27,7 +27,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedSecondTestDynamicTesting('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedSecondTestDynamicTesting(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_failed_with_spaces/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_failed_with_spaces/test.py index 330c51f1..acacac7d 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_failed_with_spaces/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_failed_with_spaces/test.py @@ -22,7 +22,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsFailedWithSpaces('main').run_tests() + status, feedback = TestCommandLineArgumentsFailedWithSpaces(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_passing/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_passing/test.py index 863d727a..b990b937 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_passing/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_passing/test.py @@ -22,7 +22,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommendLineArgumentsPassing('main').run_tests() + status, feedback = TestCommendLineArgumentsPassing(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual(feedback, 'test OK') diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_passing_dynamic_method/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_passing_dynamic_method/test.py index 2edc0612..26d61ccf 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_passing_dynamic_method/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_passing_dynamic_method/test.py @@ -22,7 +22,7 @@ def test2(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsPassingDynamicMethod('main').run_tests() + status, feedback = TestCommandLineArgumentsPassingDynamicMethod(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual(feedback, 'test OK') diff --git a/tests/outcomes/command_line_args/test_command_line_arguments_passing_dynamic_testing/test.py b/tests/outcomes/command_line_args/test_command_line_arguments_passing_dynamic_testing/test.py index e3c86c36..20d3554e 100644 --- a/tests/outcomes/command_line_args/test_command_line_arguments_passing_dynamic_testing/test.py +++ b/tests/outcomes/command_line_args/test_command_line_arguments_passing_dynamic_testing/test.py @@ -27,7 +27,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestCommandLineArgumentsPassingDynamicMethod('main').run_tests() + status, feedback = TestCommandLineArgumentsPassingDynamicMethod(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual(feedback, 'test OK') diff --git a/tests/outcomes/dynamic_input/success_dynamic_input/test.py b/tests/outcomes/dynamic_input/success_dynamic_input/test.py index b9c32fc8..3f44a898 100644 --- a/tests/outcomes/dynamic_input/success_dynamic_input/test.py +++ b/tests/outcomes/dynamic_input/success_dynamic_input/test.py @@ -42,7 +42,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = SuccessDynamicInput('main').run_tests() + status, feedback = SuccessDynamicInput(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual(feedback, 'test OK') diff --git a/tests/outcomes/dynamic_input/test_dynamic_input/test.py b/tests/outcomes/dynamic_input/test_dynamic_input/test.py index e5fd5276..2568883e 100644 --- a/tests/outcomes/dynamic_input/test_dynamic_input/test.py +++ b/tests/outcomes/dynamic_input/test_dynamic_input/test.py @@ -42,7 +42,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestDynamicInput('main').run_tests() + status, feedback = TestDynamicInput(source_name='main').run_tests() self.assertEqual('test OK', feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/dynamic_input/test_dynamic_input_fail_infinite_loop/test.py b/tests/outcomes/dynamic_input/test_dynamic_input_fail_infinite_loop/test.py index 6bfb1449..ba545990 100644 --- a/tests/outcomes/dynamic_input/test_dynamic_input_fail_infinite_loop/test.py +++ b/tests/outcomes/dynamic_input/test_dynamic_input_fail_infinite_loop/test.py @@ -16,7 +16,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestDynamicInputFailInfiniteLoop('main').run_tests() + status, feedback = TestDynamicInputFailInfiniteLoop(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( feedback, diff --git a/tests/outcomes/dynamic_input/test_dynamic_input_fail_infinite_loop_2/test.py b/tests/outcomes/dynamic_input/test_dynamic_input_fail_infinite_loop_2/test.py index 6bfb1449..ba545990 100644 --- a/tests/outcomes/dynamic_input/test_dynamic_input_fail_infinite_loop_2/test.py +++ b/tests/outcomes/dynamic_input/test_dynamic_input_fail_infinite_loop_2/test.py @@ -16,7 +16,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestDynamicInputFailInfiniteLoop('main').run_tests() + status, feedback = TestDynamicInputFailInfiniteLoop(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual( feedback, diff --git a/tests/outcomes/dynamic_input/test_multiple_dynamic_inputs/test.py b/tests/outcomes/dynamic_input/test_multiple_dynamic_inputs/test.py index 5c88cf19..57207935 100644 --- a/tests/outcomes/dynamic_input/test_multiple_dynamic_inputs/test.py +++ b/tests/outcomes/dynamic_input/test_multiple_dynamic_inputs/test.py @@ -78,7 +78,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestMultipleDynamicInputs('main').run_tests() + status, feedback = TestMultipleDynamicInputs(source_name='main').run_tests() self.assertEqual('test OK', feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/dynamic_output/test_dynamic_output/test.py b/tests/outcomes/dynamic_output/test_dynamic_output/test.py index 116cdae0..f94fb782 100644 --- a/tests/outcomes/dynamic_output/test_dynamic_output/test.py +++ b/tests/outcomes/dynamic_output/test_dynamic_output/test.py @@ -29,6 +29,6 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestDynamicOutput('main').run_tests() + status, feedback = TestDynamicOutput(source_name='main').run_tests() self.assertEqual('test OK', feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/dynamic_output/test_dynamic_output_with_input/test.py b/tests/outcomes/dynamic_output/test_dynamic_output_with_input/test.py index 6b744fcd..0c1b3386 100644 --- a/tests/outcomes/dynamic_output/test_dynamic_output_with_input/test.py +++ b/tests/outcomes/dynamic_output/test_dynamic_output_with_input/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestDynamicOutputWithInput('main').run_tests() + status, feedback = TestDynamicOutputWithInput(source_name='main').run_tests() self.assertTrue('Wrong answer in test #1' in feedback) self.assertTrue( diff --git a/tests/outcomes/dynamic_output/test_dynamic_output_without_input/test.py b/tests/outcomes/dynamic_output/test_dynamic_output_without_input/test.py index 4b9bc018..4c45dc2b 100644 --- a/tests/outcomes/dynamic_output/test_dynamic_output_without_input/test.py +++ b/tests/outcomes/dynamic_output/test_dynamic_output_without_input/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestDynamicOutputWithoutInput('main').run_tests() + status, feedback = TestDynamicOutputWithoutInput(source_name='main').run_tests() self.assertTrue('Wrong answer in test #1' in feedback) self.assertTrue( diff --git a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_1/test.py b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_1/test.py index 6acd0672..8872c01e 100644 --- a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_1/test.py +++ b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_1/test.py @@ -22,7 +22,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = FeedbackOnExceptionTest1('main').run_tests() + status, feedback = FeedbackOnExceptionTest1(source_name='main').run_tests() self.assertEqual(cleandoc(''' Exception in test #1 diff --git a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_2/test.py b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_2/test.py index bf10bea3..a451b2c0 100644 --- a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_2/test.py +++ b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_2/test.py @@ -23,7 +23,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = FeedbackOnExceptionTest2('main').run_tests() + status, feedback = FeedbackOnExceptionTest2(source_name='main').run_tests() self.assertEqual(cleandoc('''\ Exception in test #1 diff --git a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_3/test.py b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_3/test.py index 9257615f..44a32c47 100644 --- a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_3/test.py +++ b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_3/test.py @@ -23,7 +23,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = FeedbackOnExceptionTest3('main').run_tests() + status, feedback = FeedbackOnExceptionTest3(source_name='main').run_tests() self.assertEqual(cleandoc('''\ Exception in test #1 diff --git a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_4/test.py b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_4/test.py index a3de3846..ba4fc177 100644 --- a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_4/test.py +++ b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_4/test.py @@ -24,7 +24,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = FeedbackOnExceptionTest4('main').run_tests() + status, feedback = FeedbackOnExceptionTest4(source_name='main').run_tests() self.assertEqual(cleandoc('''\ Exception in test #1 diff --git a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_5_module/test.py b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_5_module/test.py index a6ec25ef..d82e68f3 100644 --- a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_5_module/test.py +++ b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_5_module/test.py @@ -26,7 +26,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = FeedbackOnExceptionTest5('main').run_tests() + status, feedback = FeedbackOnExceptionTest5(source_name='main').run_tests() self.assertEqual(cleandoc('''\ Exception in test #1 diff --git a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_5_process/test.py b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_5_process/test.py index e53e80a0..c183d8fb 100644 --- a/tests/outcomes/feedback_on_exception/feedback_on_exception_test_5_process/test.py +++ b/tests/outcomes/feedback_on_exception/feedback_on_exception_test_5_process/test.py @@ -27,7 +27,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = FeedbackOnExceptionTest5('main').run_tests() + status, feedback = FeedbackOnExceptionTest5(source_name='main').run_tests() self.assertEqual(cleandoc('''\ Exception in test #1 diff --git a/tests/outcomes/imports/test_import_absolute/test.py b/tests/outcomes/imports/test_import_absolute/test.py index cbf2760b..97e731e6 100644 --- a/tests/outcomes/imports/test_import_absolute/test.py +++ b/tests/outcomes/imports/test_import_absolute/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportAbsolute('random_module.main').run_tests() + status, feedback = TestImportAbsolute(source_name='random_module.main').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_import_absolute_2/test.py b/tests/outcomes/imports/test_import_absolute_2/test.py index e77ddecb..2077e6ff 100644 --- a/tests/outcomes/imports/test_import_absolute_2/test.py +++ b/tests/outcomes/imports/test_import_absolute_2/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportAbsolute2('random_module.main').run_tests() + status, feedback = TestImportAbsolute2(source_name='random_module.main').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_import_absolute_error/test.py b/tests/outcomes/imports/test_import_absolute_error/test.py index dc557b16..144cf79a 100644 --- a/tests/outcomes/imports/test_import_absolute_error/test.py +++ b/tests/outcomes/imports/test_import_absolute_error/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportAbsoluteError('main').run_tests() + status, feedback = TestImportAbsoluteError(source_name='main').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_import_absolute_error_2/test.py b/tests/outcomes/imports/test_import_absolute_error_2/test.py index e6910c82..23da2395 100644 --- a/tests/outcomes/imports/test_import_absolute_error_2/test.py +++ b/tests/outcomes/imports/test_import_absolute_error_2/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportAbsoluteError2('main').run_tests() + status, feedback = TestImportAbsoluteError2(source_name='main').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_import_absolute_error_circular/test.py b/tests/outcomes/imports/test_import_absolute_error_circular/test.py index 7ab8f232..14bbbbbe 100644 --- a/tests/outcomes/imports/test_import_absolute_error_circular/test.py +++ b/tests/outcomes/imports/test_import_absolute_error_circular/test.py @@ -18,7 +18,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportAbsoluteErrorCircular('main').run_tests() + status, feedback = TestImportAbsoluteErrorCircular(source_name='main').run_tests() correct_feedback = cleandoc(""" Exception in test #1 diff --git a/tests/outcomes/imports/test_import_absolute_error_circular_2/test.py b/tests/outcomes/imports/test_import_absolute_error_circular_2/test.py index 90ea35bf..21e5a8da 100644 --- a/tests/outcomes/imports/test_import_absolute_error_circular_2/test.py +++ b/tests/outcomes/imports/test_import_absolute_error_circular_2/test.py @@ -18,7 +18,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportAbsoluteErrorCircular2('main').run_tests() + status, feedback = TestImportAbsoluteErrorCircular2(source_name='main').run_tests() correct_feedback = cleandoc(""" Exception in test #1 diff --git a/tests/outcomes/imports/test_import_absolute_error_circular_3/test.py b/tests/outcomes/imports/test_import_absolute_error_circular_3/test.py index 2f6a7a10..962a1bdc 100644 --- a/tests/outcomes/imports/test_import_absolute_error_circular_3/test.py +++ b/tests/outcomes/imports/test_import_absolute_error_circular_3/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportAbsoluteErrorCircular3('main').run_tests() + status, feedback = TestImportAbsoluteErrorCircular3(source_name='main').run_tests() self.assertEqual('test OK', feedback) diff --git a/tests/outcomes/imports/test_import_package/test.py b/tests/outcomes/imports/test_import_package/test.py index fa7271f4..0871ae80 100644 --- a/tests/outcomes/imports/test_import_package/test.py +++ b/tests/outcomes/imports/test_import_package/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportPackage('random_module.main').run_tests() + status, feedback = TestImportPackage(source_name='random_module.main').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_import_package_3/test.py b/tests/outcomes/imports/test_import_package_3/test.py index db1f1938..8f3a1ced 100644 --- a/tests/outcomes/imports/test_import_package_3/test.py +++ b/tests/outcomes/imports/test_import_package_3/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportPackage3('random_module.main').run_tests() + status, feedback = TestImportPackage3(source_name='random_module.main').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_import_package_5/test.py b/tests/outcomes/imports/test_import_package_5/test.py index cfad0add..725a101f 100644 --- a/tests/outcomes/imports/test_import_package_5/test.py +++ b/tests/outcomes/imports/test_import_package_5/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportPackage5('random_module.main').run_tests() + status, feedback = TestImportPackage5(source_name='random_module.main').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_import_package_6/test.py b/tests/outcomes/imports/test_import_package_6/test.py index b7591341..eba78a03 100644 --- a/tests/outcomes/imports/test_import_package_6/test.py +++ b/tests/outcomes/imports/test_import_package_6/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportPackage6('random_module.main').run_tests() + status, feedback = TestImportPackage6(source_name='random_module.main').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_import_relative/test.py b/tests/outcomes/imports/test_import_relative/test.py index 72b3bb26..be1f72d7 100644 --- a/tests/outcomes/imports/test_import_relative/test.py +++ b/tests/outcomes/imports/test_import_relative/test.py @@ -18,7 +18,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: @unittest.skip('Relative imports doesn\'t work') class Test(unittest.TestCase): def test(self): - status, feedback = TestImportRelative('main').run_tests() + status, feedback = TestImportRelative(source_name='main').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_import_relative_error/test.py b/tests/outcomes/imports/test_import_relative_error/test.py index 884c7abb..ba33e20c 100644 --- a/tests/outcomes/imports/test_import_relative_error/test.py +++ b/tests/outcomes/imports/test_import_relative_error/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: @unittest.skip('Relative imports doesn\'t work') class Test(unittest.TestCase): def test(self): - status, feedback = TestImportRelativeError('main').run_tests() + status, feedback = TestImportRelativeError(source_name='main').run_tests() self.assertEqual(cleandoc( """ diff --git a/tests/outcomes/imports/test_import_relative_error_2/test.py b/tests/outcomes/imports/test_import_relative_error_2/test.py index 5431a652..d4712f67 100644 --- a/tests/outcomes/imports/test_import_relative_error_2/test.py +++ b/tests/outcomes/imports/test_import_relative_error_2/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: @unittest.skip('Relative imports doesn\'t work') class Test(unittest.TestCase): def test(self): - status, feedback = TestImportRelativeError2('main').run_tests() + status, feedback = TestImportRelativeError2(source_name='main').run_tests() self.assertIn(cleandoc( """ diff --git a/tests/outcomes/imports/test_import_relative_error_cilcullar/test.py b/tests/outcomes/imports/test_import_relative_error_cilcullar/test.py index 886e38ba..0a6b5867 100644 --- a/tests/outcomes/imports/test_import_relative_error_cilcullar/test.py +++ b/tests/outcomes/imports/test_import_relative_error_cilcullar/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: @unittest.skip('Relative imports doesn\'t work') class Test(unittest.TestCase): def test(self): - status, feedback = TestImportRelativeErrorCircular('main').run_tests() + status, feedback = TestImportRelativeErrorCircular(source_name='main').run_tests() self.assertIn(cleandoc( """ diff --git a/tests/outcomes/imports/test_two_files_suits_but_we_have_source/test.py b/tests/outcomes/imports/test_two_files_suits_but_we_have_source/test.py index e0872611..2d1c3ea9 100644 --- a/tests/outcomes/imports/test_two_files_suits_but_we_have_source/test.py +++ b/tests/outcomes/imports/test_two_files_suits_but_we_have_source/test.py @@ -16,7 +16,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportRelativeError2('main').run_tests() + status, feedback = TestImportRelativeError2(source_name='main').run_tests() self.assertIn(cleandoc( """ diff --git a/tests/outcomes/imports/test_two_files_suits_but_we_have_source_2/test.py b/tests/outcomes/imports/test_two_files_suits_but_we_have_source_2/test.py index bd26f655..526ec876 100644 --- a/tests/outcomes/imports/test_two_files_suits_but_we_have_source_2/test.py +++ b/tests/outcomes/imports/test_two_files_suits_but_we_have_source_2/test.py @@ -15,7 +15,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportRelativeError2('main1').run_tests() + status, feedback = TestImportRelativeError2(source_name='main1').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/test_two_files_suits_but_we_have_source_3/test.py b/tests/outcomes/imports/test_two_files_suits_but_we_have_source_3/test.py index ad3a352d..e60ed354 100644 --- a/tests/outcomes/imports/test_two_files_suits_but_we_have_source_3/test.py +++ b/tests/outcomes/imports/test_two_files_suits_but_we_have_source_3/test.py @@ -15,7 +15,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestImportRelativeError2('main2').run_tests() + status, feedback = TestImportRelativeError2(source_name='main2').run_tests() self.assertEqual("test OK", feedback) diff --git a/tests/outcomes/imports/user_main_file_not_exists/test.py b/tests/outcomes/imports/user_main_file_not_exists/test.py index cf01f82d..7d397db2 100644 --- a/tests/outcomes/imports/user_main_file_not_exists/test.py +++ b/tests/outcomes/imports/user_main_file_not_exists/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorUserMainFileNotExists('bad_file').run_tests() + status, feedback = UnexpectedErrorUserMainFileNotExists(source_name='bad_file').run_tests() self.assertIn( 'Error in test #1\n\n' diff --git a/tests/outcomes/imports/user_main_file_not_exists_but_exists_other/test.py b/tests/outcomes/imports/user_main_file_not_exists_but_exists_other/test.py index d5722647..50b18f03 100644 --- a/tests/outcomes/imports/user_main_file_not_exists_but_exists_other/test.py +++ b/tests/outcomes/imports/user_main_file_not_exists_but_exists_other/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorUserMainFileNotExistsButExistsOther('bad_file').run_tests() + status, feedback = UnexpectedErrorUserMainFileNotExistsButExistsOther(source_name='bad_file').run_tests() self.assertEqual('test OK', feedback) diff --git a/tests/outcomes/imports/user_module_not_exists/test.py b/tests/outcomes/imports/user_module_not_exists/test.py index 7bdd1566..c03edf5c 100644 --- a/tests/outcomes/imports/user_module_not_exists/test.py +++ b/tests/outcomes/imports/user_module_not_exists/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorUserModuleNotExists('tests.bad_module').run_tests() + status, feedback = UnexpectedErrorUserModuleNotExists(source_name='tests.bad_module').run_tests() self.assertIn( 'Error in test #1\n\n' diff --git a/tests/outcomes/imports/user_module_not_exists_but_exists_other/test.py b/tests/outcomes/imports/user_module_not_exists_but_exists_other/test.py index 832b6dc8..8e77da3a 100644 --- a/tests/outcomes/imports/user_module_not_exists_but_exists_other/test.py +++ b/tests/outcomes/imports/user_module_not_exists_but_exists_other/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorUserModuleNotExistsButExistsOther('tests.bad_module').run_tests() + status, feedback = UnexpectedErrorUserModuleNotExistsButExistsOther(source_name='tests.bad_module').run_tests() self.assertEqual('test OK', feedback) diff --git a/tests/outcomes/input_handle/exception_while_reading/test.py b/tests/outcomes/input_handle/exception_while_reading/test.py index 141dda8b..edc191d2 100644 --- a/tests/outcomes/input_handle/exception_while_reading/test.py +++ b/tests/outcomes/input_handle/exception_while_reading/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = ExceptionWhileReading('main').run_tests() + status, feedback = ExceptionWhileReading(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Exception in test #2' in feedback) diff --git a/tests/outcomes/input_handle/exception_while_reading_2/test.py b/tests/outcomes/input_handle/exception_while_reading_2/test.py index 28657d96..1e8e03f0 100644 --- a/tests/outcomes/input_handle/exception_while_reading_2/test.py +++ b/tests/outcomes/input_handle/exception_while_reading_2/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = ExceptionWhileReading2('main').run_tests() + status, feedback = ExceptionWhileReading2(source_name='main').run_tests() self.assertEqual(status, -1) self.assertEqual( diff --git a/tests/outcomes/input_handle/success_but_not_used_input_1/test.py b/tests/outcomes/input_handle/success_but_not_used_input_1/test.py index f5c74241..4f1ae30b 100644 --- a/tests/outcomes/input_handle/success_but_not_used_input_1/test.py +++ b/tests/outcomes/input_handle/success_but_not_used_input_1/test.py @@ -20,6 +20,6 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = SuccessButNotUsedInput1('main').run_tests() + status, feedback = SuccessButNotUsedInput1(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual(feedback, 'test OK') diff --git a/tests/outcomes/input_handle/success_but_not_used_input_2/test.py b/tests/outcomes/input_handle/success_but_not_used_input_2/test.py index 124b50eb..38bdd5f0 100644 --- a/tests/outcomes/input_handle/success_but_not_used_input_2/test.py +++ b/tests/outcomes/input_handle/success_but_not_used_input_2/test.py @@ -24,6 +24,6 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = SuccessButNotUsedInput2('main').run_tests() + status, feedback = SuccessButNotUsedInput2(source_name='main').run_tests() self.assertEqual(feedback, 'test OK') self.assertEqual(status, 0) diff --git a/tests/outcomes/input_handle/test_not_run_not_needed_input_funcs/test.py b/tests/outcomes/input_handle/test_not_run_not_needed_input_funcs/test.py index 84e425e1..4658820c 100644 --- a/tests/outcomes/input_handle/test_not_run_not_needed_input_funcs/test.py +++ b/tests/outcomes/input_handle/test_not_run_not_needed_input_funcs/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestNotRunNotNeededInputFuncs('main').run_tests() + status, feedback = TestNotRunNotNeededInputFuncs(source_name='main').run_tests() self.assertEqual('test OK', feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/input_handle/test_out_of_input_1/test.py b/tests/outcomes/input_handle/test_out_of_input_1/test.py index 450a1510..6137e914 100644 --- a/tests/outcomes/input_handle/test_out_of_input_1/test.py +++ b/tests/outcomes/input_handle/test_out_of_input_1/test.py @@ -23,7 +23,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutOfInput1('main').run_tests() + status, feedback = TestOutOfInput1(source_name='main').run_tests() self.assertEqual( "Error in test #1\n" + diff --git a/tests/outcomes/input_handle/test_out_of_input_2/test.py b/tests/outcomes/input_handle/test_out_of_input_2/test.py index 493cce49..de61f26f 100644 --- a/tests/outcomes/input_handle/test_out_of_input_2/test.py +++ b/tests/outcomes/input_handle/test_out_of_input_2/test.py @@ -22,7 +22,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutOfInput2('main').run_tests() + status, feedback = TestOutOfInput2(source_name='main').run_tests() self.assertEqual( "Error in test #1\n" + diff --git a/tests/outcomes/input_handle/test_out_of_input_3/test.py b/tests/outcomes/input_handle/test_out_of_input_3/test.py index d786d71a..5316af81 100644 --- a/tests/outcomes/input_handle/test_out_of_input_3/test.py +++ b/tests/outcomes/input_handle/test_out_of_input_3/test.py @@ -21,7 +21,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutOfInput3('main').run_tests() + status, feedback = TestOutOfInput3(source_name='main').run_tests() self.assertIn( "Error in test #1\n" + diff --git a/tests/outcomes/input_handle/test_out_of_input_4/test.py b/tests/outcomes/input_handle/test_out_of_input_4/test.py index d162e18c..9a029278 100644 --- a/tests/outcomes/input_handle/test_out_of_input_4/test.py +++ b/tests/outcomes/input_handle/test_out_of_input_4/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutOfInput4('main').run_tests() + status, feedback = TestOutOfInput4(source_name='main').run_tests() self.assertIn( "Error in test #1\n" + diff --git a/tests/outcomes/lib/exception_in_user_code/test.py b/tests/outcomes/lib/exception_in_user_code/test.py index 0c66d987..ee9f0a54 100644 --- a/tests/outcomes/lib/exception_in_user_code/test.py +++ b/tests/outcomes/lib/exception_in_user_code/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = ExceptionInUserCodeTest('main').run_tests() + status, feedback = ExceptionInUserCodeTest(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Exception in test #1' in feedback) self.assertTrue('Traceback (most recent call last):' in feedback) diff --git a/tests/outcomes/lib/exception_in_user_code_2/test.py b/tests/outcomes/lib/exception_in_user_code_2/test.py index 6d9b5670..fb07b421 100644 --- a/tests/outcomes/lib/exception_in_user_code_2/test.py +++ b/tests/outcomes/lib/exception_in_user_code_2/test.py @@ -21,7 +21,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = ExceptionInUserCodeTest('main').run_tests() + status, feedback = ExceptionInUserCodeTest(source_name='main').run_tests() self.assertEqual(cleandoc( """ diff --git a/tests/outcomes/lib/exception_in_user_code_3/test.py b/tests/outcomes/lib/exception_in_user_code_3/test.py index 5d69146a..ed9c78bb 100644 --- a/tests/outcomes/lib/exception_in_user_code_3/test.py +++ b/tests/outcomes/lib/exception_in_user_code_3/test.py @@ -18,7 +18,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = ExceptionInUserCodeTest3('module.main').run_tests() + status, feedback = ExceptionInUserCodeTest3(source_name='module.main').run_tests() self.assertEqual(cleandoc( """ diff --git a/tests/outcomes/lib/order/test_order_complex/test.py b/tests/outcomes/lib/order/test_order_complex/test.py index 90ab5c0c..e0971e82 100644 --- a/tests/outcomes/lib/order/test_order_complex/test.py +++ b/tests/outcomes/lib/order/test_order_complex/test.py @@ -58,7 +58,7 @@ def test6(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestOrderComplex('main').run_tests() + status, feedback = TestOrderComplex(source_name='main').run_tests() self.assertEqual('test OK', feedback) diff --git a/tests/outcomes/lib/success/test.py b/tests/outcomes/lib/success/test.py index 0ab2959f..e61d49f2 100644 --- a/tests/outcomes/lib/success/test.py +++ b/tests/outcomes/lib/success/test.py @@ -20,6 +20,6 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = SuccessTest('main').run_tests() + status, feedback = SuccessTest(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual(feedback, 'test OK') diff --git a/tests/outcomes/lib/success2/test.py b/tests/outcomes/lib/success2/test.py index 8277ce1d..2c1fc5f4 100644 --- a/tests/outcomes/lib/success2/test.py +++ b/tests/outcomes/lib/success2/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = SuccessTest('folder.main').run_tests() + status, feedback = SuccessTest(source_name='folder.main').run_tests() self.assertEqual(status, 0) self.assertEqual(feedback, 'test OK') diff --git a/tests/outcomes/lib/test_case_same_objects/test.py b/tests/outcomes/lib/test_case_same_objects/test.py index e99eddb9..642fb130 100644 --- a/tests/outcomes/lib/test_case_same_objects/test.py +++ b/tests/outcomes/lib/test_case_same_objects/test.py @@ -18,6 +18,6 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCaseSameObjects('main').run_tests() + status, feedback = TestCaseSameObjects(source_name='main').run_tests() self.assertEqual(feedback, 'test OK') self.assertEqual(status, 0) diff --git a/tests/outcomes/lib/test_copy_to_attach/test.py b/tests/outcomes/lib/test_copy_to_attach/test.py index 1d84ca25..475e1ce6 100644 --- a/tests/outcomes/lib/test_copy_to_attach/test.py +++ b/tests/outcomes/lib/test_copy_to_attach/test.py @@ -21,6 +21,6 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCopyToAttach('main').run_tests() + status, feedback = TestCopyToAttach(source_name='main').run_tests() self.assertEqual("test OK", feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/lib/test_curr_test_case/test.py b/tests/outcomes/lib/test_curr_test_case/test.py index 1737fd70..6b99559c 100644 --- a/tests/outcomes/lib/test_curr_test_case/test.py +++ b/tests/outcomes/lib/test_curr_test_case/test.py @@ -25,6 +25,6 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCurrTestCase('main').run_tests() + status, feedback = TestCurrTestCase(source_name='main').run_tests() self.assertEqual('test OK', feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/lib/test_curr_test_num/test.py b/tests/outcomes/lib/test_curr_test_num/test.py index 93871b1b..533a2ebd 100644 --- a/tests/outcomes/lib/test_curr_test_num/test.py +++ b/tests/outcomes/lib/test_curr_test_num/test.py @@ -24,6 +24,6 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCurrTestNum('main').run_tests() + status, feedback = TestCurrTestNum(source_name='main').run_tests() self.assertEqual('test OK', feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/lib/test_custom_checker/test.py b/tests/outcomes/lib/test_custom_checker/test.py index b66c7a08..b54c6f75 100644 --- a/tests/outcomes/lib/test_custom_checker/test.py +++ b/tests/outcomes/lib/test_custom_checker/test.py @@ -22,6 +22,6 @@ def custom_check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCustomChecker('main').run_tests() + status, feedback = TestCustomChecker(source_name='main').run_tests() self.assertEqual('test OK', feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/lib/test_custom_checker_fail/test.py b/tests/outcomes/lib/test_custom_checker_fail/test.py index b556a6d4..1b669610 100644 --- a/tests/outcomes/lib/test_custom_checker_fail/test.py +++ b/tests/outcomes/lib/test_custom_checker_fail/test.py @@ -27,7 +27,7 @@ def custom_check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestCustomChecker('main').run_tests() + status, feedback = TestCustomChecker(source_name='main').run_tests() self.assertIn("Unexpected error in test #2", feedback) diff --git a/tests/outcomes/lib/test_nbsp_in_output/test.py b/tests/outcomes/lib/test_nbsp_in_output/test.py index c3e1785a..39deb46f 100644 --- a/tests/outcomes/lib/test_nbsp_in_output/test.py +++ b/tests/outcomes/lib/test_nbsp_in_output/test.py @@ -19,6 +19,6 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestNbspInOutput('main').run_tests() + status, feedback = TestNbspInOutput(source_name='main').run_tests() self.assertEqual("test OK", feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/lib/test_run_test_inside_test/test.py b/tests/outcomes/lib/test_run_test_inside_test/test.py index ed857890..a9be2156 100644 --- a/tests/outcomes/lib/test_run_test_inside_test/test.py +++ b/tests/outcomes/lib/test_run_test_inside_test/test.py @@ -10,7 +10,7 @@ class TestRunTestInsideTest(StageTest): @dynamic_test def test(self): - status, feedback = TestRunTestInsideTest('main').run_tests() + status, feedback = TestRunTestInsideTest(source_name='main').run_tests() if status != 0: raise ErrorWithFeedback(feedback) return CheckResult.correct() @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestRunTestInsideTest('main').run_tests() + status, feedback = TestRunTestInsideTest(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Error in test #1' diff --git a/tests/outcomes/long_output/long_output_on_raise_wrong_answer/test.py b/tests/outcomes/long_output/long_output_on_raise_wrong_answer/test.py index 7f953fc1..45a4f3bb 100644 --- a/tests/outcomes/long_output/long_output_on_raise_wrong_answer/test.py +++ b/tests/outcomes/long_output/long_output_on_raise_wrong_answer/test.py @@ -18,7 +18,7 @@ def test(self): correct_lines = [f'A {i} line' for i in range(350, 600)] wrong_lines = [f'A {i} line' for i in range(0, 350)] - status, feedback = TestWrongOutputWithTooLongOutput('main').run_tests() + status, feedback = TestWrongOutputWithTooLongOutput(source_name='main').run_tests() for correct_line in correct_lines: self.assertIn(correct_line, feedback) diff --git a/tests/outcomes/long_output/long_output_on_unexpected_error/test.py b/tests/outcomes/long_output/long_output_on_unexpected_error/test.py index ab78efc8..80232dd7 100644 --- a/tests/outcomes/long_output/long_output_on_unexpected_error/test.py +++ b/tests/outcomes/long_output/long_output_on_unexpected_error/test.py @@ -19,7 +19,7 @@ def test(self): correct_lines = [f'A {i} line' for i in range(350, 600)] wrong_lines = [f'A {i} line' for i in range(0, 350)] - status, feedback = TestWrongOutputWithTooLongOutput('main').run_tests() + status, feedback = TestWrongOutputWithTooLongOutput(source_name='main').run_tests() for correct_line in correct_lines: self.assertIn(correct_line, feedback) diff --git a/tests/outcomes/long_output/long_output_with_arguments/test.py b/tests/outcomes/long_output/long_output_with_arguments/test.py index de2a0821..4e30d35c 100644 --- a/tests/outcomes/long_output/long_output_with_arguments/test.py +++ b/tests/outcomes/long_output/long_output_with_arguments/test.py @@ -17,7 +17,7 @@ class Test(unittest.TestCase): def test(self): expected_line_in_feedback = "Arguments: -arg test\n\n[last 250 lines of output are shown, 1 skipped]" - status, feedback = TestWrongOutputWithTooLongOutput('main').run_tests() + status, feedback = TestWrongOutputWithTooLongOutput(source_name='main').run_tests() self.assertIn(expected_line_in_feedback, feedback) self.assertEqual(status, -1) diff --git a/tests/outcomes/long_output/test_label_on_long_output/test.py b/tests/outcomes/long_output/test_label_on_long_output/test.py index 67d6ca2a..958a7ac8 100644 --- a/tests/outcomes/long_output/test_label_on_long_output/test.py +++ b/tests/outcomes/long_output/test_label_on_long_output/test.py @@ -18,7 +18,7 @@ def test(self): correct_lines = [f'A {i} line' for i in range(1, 250)] wrong_lines = [f'A {i} line' for i in range(0, 1)] - status, feedback = TestWrongOutputWithTooLongOutput('main').run_tests() + status, feedback = TestWrongOutputWithTooLongOutput(source_name='main').run_tests() for correct_line in correct_lines: self.assertIn(correct_line, feedback) diff --git a/tests/outcomes/long_output/test_label_on_not_enough_long_output/test.py b/tests/outcomes/long_output/test_label_on_not_enough_long_output/test.py index 784e9cc5..015cda4e 100644 --- a/tests/outcomes/long_output/test_label_on_not_enough_long_output/test.py +++ b/tests/outcomes/long_output/test_label_on_not_enough_long_output/test.py @@ -17,7 +17,7 @@ class Test(unittest.TestCase): def test(self): correct_lines = [f'A {i} line' for i in range(1, 250)] - status, feedback = TestWrongOutputWithTooLongOutput('main').run_tests() + status, feedback = TestWrongOutputWithTooLongOutput(source_name='main').run_tests() for correct_line in correct_lines: self.assertIn(correct_line, feedback) diff --git a/tests/outcomes/long_output/wrong_output_with_too_long_output/test.py b/tests/outcomes/long_output/wrong_output_with_too_long_output/test.py index 6217938f..5e8024c3 100644 --- a/tests/outcomes/long_output/wrong_output_with_too_long_output/test.py +++ b/tests/outcomes/long_output/wrong_output_with_too_long_output/test.py @@ -18,7 +18,7 @@ def test(self): correct_lines = [f'A {i} line' for i in range(350, 600)] wrong_lines = [f'A {i} line' for i in range(0, 350)] - status, feedback = TestWrongOutputWithTooLongOutput('main').run_tests() + status, feedback = TestWrongOutputWithTooLongOutput(source_name='main').run_tests() for correct_line in correct_lines: self.assertIn(correct_line, feedback) diff --git a/tests/outcomes/multiple_empty_line_in_input/test_input_method_with_multiple_empty_line_input/test.py b/tests/outcomes/multiple_empty_line_in_input/test_input_method_with_multiple_empty_line_input/test.py index edb5d6a6..3698414a 100644 --- a/tests/outcomes/multiple_empty_line_in_input/test_input_method_with_multiple_empty_line_input/test.py +++ b/tests/outcomes/multiple_empty_line_in_input/test_input_method_with_multiple_empty_line_input/test.py @@ -39,5 +39,5 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorAddInput1('main').run_tests() + status, feedback = UnexpectedErrorAddInput1(source_name='main').run_tests() self.assertEqual(0, status) diff --git a/tests/outcomes/multiple_empty_line_in_input/test_multiple_line_at_the_end_and_in_the_middle_of_input/test.py b/tests/outcomes/multiple_empty_line_in_input/test_multiple_line_at_the_end_and_in_the_middle_of_input/test.py index 4e644ad9..7306fc68 100644 --- a/tests/outcomes/multiple_empty_line_in_input/test_multiple_line_at_the_end_and_in_the_middle_of_input/test.py +++ b/tests/outcomes/multiple_empty_line_in_input/test_multiple_line_at_the_end_and_in_the_middle_of_input/test.py @@ -26,5 +26,5 @@ def test(self, inp, correct_lines_number): class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorAddInput1('main').run_tests() + status, feedback = UnexpectedErrorAddInput1(source_name='main').run_tests() self.assertEqual(0, status) diff --git a/tests/outcomes/multiple_empty_line_in_input/test_multiple_line_at_the_end_of_input/test.py b/tests/outcomes/multiple_empty_line_in_input/test_multiple_line_at_the_end_of_input/test.py index 7924e171..3aa45e57 100644 --- a/tests/outcomes/multiple_empty_line_in_input/test_multiple_line_at_the_end_of_input/test.py +++ b/tests/outcomes/multiple_empty_line_in_input/test_multiple_line_at_the_end_of_input/test.py @@ -27,5 +27,5 @@ def test(self, inp, correct_lines_number): class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorAddInput1('main').run_tests() + status, feedback = UnexpectedErrorAddInput1(source_name='main').run_tests() self.assertEqual(0, status) diff --git a/tests/outcomes/parametrized_tests/correct/test_parametrized_data/test.py b/tests/outcomes/parametrized_tests/correct/test_parametrized_data/test.py index 72d8e391..51ecf3a6 100644 --- a/tests/outcomes/parametrized_tests/correct/test_parametrized_data/test.py +++ b/tests/outcomes/parametrized_tests/correct/test_parametrized_data/test.py @@ -26,7 +26,7 @@ def test(self, a, b): class Test(unittest.TestCase): def test(self): - status, feedback = TestParametrizedData('main').run_tests() + status, feedback = TestParametrizedData(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual('test OK', feedback) diff --git a/tests/outcomes/parametrized_tests/correct/test_parametrized_data_2/test.py b/tests/outcomes/parametrized_tests/correct/test_parametrized_data_2/test.py index bda66380..35ffa968 100644 --- a/tests/outcomes/parametrized_tests/correct/test_parametrized_data_2/test.py +++ b/tests/outcomes/parametrized_tests/correct/test_parametrized_data_2/test.py @@ -20,7 +20,7 @@ def test(self, a): class Test(unittest.TestCase): def test(self): - status, feedback = TestParametrizedData2('main').run_tests() + status, feedback = TestParametrizedData2(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual('test OK', feedback) diff --git a/tests/outcomes/parametrized_tests/correct/test_parametrized_data_3/test.py b/tests/outcomes/parametrized_tests/correct/test_parametrized_data_3/test.py index 8fdb9db8..890c80f9 100644 --- a/tests/outcomes/parametrized_tests/correct/test_parametrized_data_3/test.py +++ b/tests/outcomes/parametrized_tests/correct/test_parametrized_data_3/test.py @@ -22,7 +22,7 @@ def test(self, a): class Test(unittest.TestCase): def test(self): - status, feedback = TestParametrizedData3('main').run_tests() + status, feedback = TestParametrizedData3(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual('test OK', feedback) diff --git a/tests/outcomes/parametrized_tests/correct/test_parametrized_data_4/test.py b/tests/outcomes/parametrized_tests/correct/test_parametrized_data_4/test.py index 70a6d945..8929d924 100644 --- a/tests/outcomes/parametrized_tests/correct/test_parametrized_data_4/test.py +++ b/tests/outcomes/parametrized_tests/correct/test_parametrized_data_4/test.py @@ -26,7 +26,7 @@ def test(self, *a): class Test(unittest.TestCase): def test(self): - status, feedback = TestParametrizedData4('main').run_tests() + status, feedback = TestParametrizedData4(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual('test OK', feedback) diff --git a/tests/outcomes/parametrized_tests/correct/test_parametrized_data_5/test.py b/tests/outcomes/parametrized_tests/correct/test_parametrized_data_5/test.py index 9304308a..20ad8b8b 100644 --- a/tests/outcomes/parametrized_tests/correct/test_parametrized_data_5/test.py +++ b/tests/outcomes/parametrized_tests/correct/test_parametrized_data_5/test.py @@ -26,7 +26,7 @@ def test(self, a): class Test(unittest.TestCase): def test(self): - status, feedback = TestParametrizedData5('main').run_tests() + status, feedback = TestParametrizedData5(source_name='main').run_tests() self.assertEqual(status, 0) self.assertEqual('test OK', feedback) diff --git a/tests/outcomes/parametrized_tests/wrong/test_wrong_data/test.py b/tests/outcomes/parametrized_tests/wrong/test_wrong_data/test.py index 593a19a6..23114d0b 100644 --- a/tests/outcomes/parametrized_tests/wrong/test_wrong_data/test.py +++ b/tests/outcomes/parametrized_tests/wrong/test_wrong_data/test.py @@ -20,7 +20,7 @@ def test(self, a): class Test(unittest.TestCase): def test(self): - status, feedback = TestWrongData('main').run_tests() + status, feedback = TestWrongData(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertIn('UnexpectedError: Data passed to dynamic method "test" ' 'should be of type "list" or "tuple",' diff --git a/tests/outcomes/parametrized_tests/wrong/test_wrong_data_2/test.py b/tests/outcomes/parametrized_tests/wrong/test_wrong_data_2/test.py index 151b8ac5..d308497d 100644 --- a/tests/outcomes/parametrized_tests/wrong/test_wrong_data_2/test.py +++ b/tests/outcomes/parametrized_tests/wrong/test_wrong_data_2/test.py @@ -20,7 +20,7 @@ def test(self, a): class Test(unittest.TestCase): def test(self): - status, feedback = TestWrongData2('main').run_tests() + status, feedback = TestWrongData2(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertIn('UnexpectedError: Data passed to dynamic method "test" ' 'should not be empty.', feedback) diff --git a/tests/outcomes/plot/area/pandas/test.py b/tests/outcomes/plot/area/pandas/test.py index 2f0ecb94..a4a808e4 100644 --- a/tests/outcomes/plot/area/pandas/test.py +++ b/tests/outcomes/plot/area/pandas/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasArea('main').run_tests() + status, feedback = TestPandasArea(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/bar/matplotlib/test.py b/tests/outcomes/plot/bar/matplotlib/test.py index 3771bac3..95e4568d 100644 --- a/tests/outcomes/plot/bar/matplotlib/test.py +++ b/tests/outcomes/plot/bar/matplotlib/test.py @@ -27,7 +27,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestMatplotlibBar('main').run_tests() + status, feedback = TestMatplotlibBar(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/bar/pandas/test.py b/tests/outcomes/plot/bar/pandas/test.py index b2554c26..f9752dab 100644 --- a/tests/outcomes/plot/bar/pandas/test.py +++ b/tests/outcomes/plot/bar/pandas/test.py @@ -26,7 +26,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasBar('main').run_tests() + status, feedback = TestPandasBar(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/bar/seaborn/test.py b/tests/outcomes/plot/bar/seaborn/test.py index cd0581aa..3bf294ba 100644 --- a/tests/outcomes/plot/bar/seaborn/test.py +++ b/tests/outcomes/plot/bar/seaborn/test.py @@ -26,7 +26,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornBar('main').run_tests() + status, feedback = TestSeabornBar(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/box/matplotlib/test.py b/tests/outcomes/plot/box/matplotlib/test.py index e239c870..0933086f 100644 --- a/tests/outcomes/plot/box/matplotlib/test.py +++ b/tests/outcomes/plot/box/matplotlib/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestMatplotlibBox('main').run_tests() + status, feedback = TestMatplotlibBox(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/box/pandas/test.py b/tests/outcomes/plot/box/pandas/test.py index 4b7113a1..b8672d53 100644 --- a/tests/outcomes/plot/box/pandas/test.py +++ b/tests/outcomes/plot/box/pandas/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasBox('main').run_tests() + status, feedback = TestPandasBox(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/box/seaborn/test.py b/tests/outcomes/plot/box/seaborn/test.py index 2b5598df..582a79b1 100644 --- a/tests/outcomes/plot/box/seaborn/test.py +++ b/tests/outcomes/plot/box/seaborn/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornBox('main').run_tests() + status, feedback = TestSeabornBox(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/cat/seaborn/test.py b/tests/outcomes/plot/cat/seaborn/test.py index 1b3c42b8..84c2c539 100644 --- a/tests/outcomes/plot/cat/seaborn/test.py +++ b/tests/outcomes/plot/cat/seaborn/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornCat('main').run_tests() + status, feedback = TestSeabornCat(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/dis/pandas/test.py b/tests/outcomes/plot/dis/pandas/test.py index 2a9b18dc..d18f017d 100644 --- a/tests/outcomes/plot/dis/pandas/test.py +++ b/tests/outcomes/plot/dis/pandas/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasDis('main').run_tests() + status, feedback = TestPandasDis(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/dis/seaborn/test.py b/tests/outcomes/plot/dis/seaborn/test.py index 3b0f8246..b19c8bab 100644 --- a/tests/outcomes/plot/dis/seaborn/test.py +++ b/tests/outcomes/plot/dis/seaborn/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornDis('main').run_tests() + status, feedback = TestSeabornDis(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/heatmap/matplotlib/test.py b/tests/outcomes/plot/heatmap/matplotlib/test.py index 391ffa58..79136cc2 100644 --- a/tests/outcomes/plot/heatmap/matplotlib/test.py +++ b/tests/outcomes/plot/heatmap/matplotlib/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestMatplotlibHeatmap('main').run_tests() + status, feedback = TestMatplotlibHeatmap(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/heatmap/seaborn/test.py b/tests/outcomes/plot/heatmap/seaborn/test.py index 2a710195..776fd1e7 100644 --- a/tests/outcomes/plot/heatmap/seaborn/test.py +++ b/tests/outcomes/plot/heatmap/seaborn/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornHeatmap('main').run_tests() + status, feedback = TestSeabornHeatmap(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/hexbin/pandas/test.py b/tests/outcomes/plot/hexbin/pandas/test.py index f9db4ad2..d340b2f3 100644 --- a/tests/outcomes/plot/hexbin/pandas/test.py +++ b/tests/outcomes/plot/hexbin/pandas/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasHexbin('main').run_tests() + status, feedback = TestPandasHexbin(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/hist/matplotlib/test_data/test.py b/tests/outcomes/plot/hist/matplotlib/test_data/test.py index 48d82440..e37d90d0 100644 --- a/tests/outcomes/plot/hist/matplotlib/test_data/test.py +++ b/tests/outcomes/plot/hist/matplotlib/test_data/test.py @@ -27,7 +27,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestMatplotlibHist('main').run_tests() + status, feedback = TestMatplotlibHist(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/hist/matplotlib/test_sorting_data/test.py b/tests/outcomes/plot/hist/matplotlib/test_sorting_data/test.py index b52afac8..3186708a 100644 --- a/tests/outcomes/plot/hist/matplotlib/test_sorting_data/test.py +++ b/tests/outcomes/plot/hist/matplotlib/test_sorting_data/test.py @@ -27,7 +27,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestMatplotlibHist('main').run_tests() + status, feedback = TestMatplotlibHist(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/hist/pandas/test_data/test.py b/tests/outcomes/plot/hist/pandas/test_data/test.py index c3e612cf..1ba87105 100644 --- a/tests/outcomes/plot/hist/pandas/test_data/test.py +++ b/tests/outcomes/plot/hist/pandas/test_data/test.py @@ -29,7 +29,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasHist('main').run_tests() + status, feedback = TestPandasHist(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/hist/pandas/test_group_by/test.py b/tests/outcomes/plot/hist/pandas/test_group_by/test.py index bb329811..ad7e7ac8 100644 --- a/tests/outcomes/plot/hist/pandas/test_group_by/test.py +++ b/tests/outcomes/plot/hist/pandas/test_group_by/test.py @@ -29,7 +29,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestGroupBy('main').run_tests() + status, feedback = TestGroupBy(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/hist/pandas/test_sorting_data/test.py b/tests/outcomes/plot/hist/pandas/test_sorting_data/test.py index 863a1098..db1d024e 100644 --- a/tests/outcomes/plot/hist/pandas/test_sorting_data/test.py +++ b/tests/outcomes/plot/hist/pandas/test_sorting_data/test.py @@ -26,7 +26,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasHist('main').run_tests() + status, feedback = TestPandasHist(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/hist/seaborn/test_data/test.py b/tests/outcomes/plot/hist/seaborn/test_data/test.py index 3c267478..b85782e4 100644 --- a/tests/outcomes/plot/hist/seaborn/test_data/test.py +++ b/tests/outcomes/plot/hist/seaborn/test_data/test.py @@ -23,7 +23,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornHist('main').run_tests() + status, feedback = TestSeabornHist(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/hist/seaborn/test_sorting_data/test.py b/tests/outcomes/plot/hist/seaborn/test_sorting_data/test.py index de365c4f..4ab4c43e 100644 --- a/tests/outcomes/plot/hist/seaborn/test_sorting_data/test.py +++ b/tests/outcomes/plot/hist/seaborn/test_sorting_data/test.py @@ -23,7 +23,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornHist('main').run_tests() + status, feedback = TestSeabornHist(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/line/matplotlib/test.py b/tests/outcomes/plot/line/matplotlib/test.py index cf83ea6e..cc45969d 100644 --- a/tests/outcomes/plot/line/matplotlib/test.py +++ b/tests/outcomes/plot/line/matplotlib/test.py @@ -24,7 +24,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestMatplotlibLine('main').run_tests() + status, feedback = TestMatplotlibLine(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/line/pandas/test.py b/tests/outcomes/plot/line/pandas/test.py index 1a5c500b..a15bad06 100644 --- a/tests/outcomes/plot/line/pandas/test.py +++ b/tests/outcomes/plot/line/pandas/test.py @@ -25,7 +25,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasLine('main').run_tests() + status, feedback = TestPandasLine(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/line/seaborn/test.py b/tests/outcomes/plot/line/seaborn/test.py index 8ab78adc..f5901791 100644 --- a/tests/outcomes/plot/line/seaborn/test.py +++ b/tests/outcomes/plot/line/seaborn/test.py @@ -24,7 +24,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornLine('main').run_tests() + status, feedback = TestSeabornLine(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/lm/seaborn/test.py b/tests/outcomes/plot/lm/seaborn/test.py index 7d242788..55434064 100644 --- a/tests/outcomes/plot/lm/seaborn/test.py +++ b/tests/outcomes/plot/lm/seaborn/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornLm('main').run_tests() + status, feedback = TestSeabornLm(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/pie/matplotlib/test.py b/tests/outcomes/plot/pie/matplotlib/test.py index de7d860f..ec8c5b33 100644 --- a/tests/outcomes/plot/pie/matplotlib/test.py +++ b/tests/outcomes/plot/pie/matplotlib/test.py @@ -25,7 +25,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestMatplotlibPie('main').run_tests() + status, feedback = TestMatplotlibPie(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/pie/pandas/test.py b/tests/outcomes/plot/pie/pandas/test.py index c95c5a17..7586deda 100644 --- a/tests/outcomes/plot/pie/pandas/test.py +++ b/tests/outcomes/plot/pie/pandas/test.py @@ -25,7 +25,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasPie('main').run_tests() + status, feedback = TestPandasPie(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/scatter/matplotlib/test.py b/tests/outcomes/plot/scatter/matplotlib/test.py index 4e5a23f8..fb716259 100644 --- a/tests/outcomes/plot/scatter/matplotlib/test.py +++ b/tests/outcomes/plot/scatter/matplotlib/test.py @@ -23,7 +23,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestMatplotlibScatter('main').run_tests() + status, feedback = TestMatplotlibScatter(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/scatter/pandas/test.py b/tests/outcomes/plot/scatter/pandas/test.py index 309a482b..54138d47 100644 --- a/tests/outcomes/plot/scatter/pandas/test.py +++ b/tests/outcomes/plot/scatter/pandas/test.py @@ -23,7 +23,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestPandasScatter('main').run_tests() + status, feedback = TestPandasScatter(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/scatter/seaborn/test.py b/tests/outcomes/plot/scatter/seaborn/test.py index e62bc282..c3317c7d 100644 --- a/tests/outcomes/plot/scatter/seaborn/test.py +++ b/tests/outcomes/plot/scatter/seaborn/test.py @@ -25,7 +25,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornScatter('main').run_tests() + status, feedback = TestSeabornScatter(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/test_matplotlib/test_revert/test.py b/tests/outcomes/plot/test_matplotlib/test_revert/test.py index 375e7f55..39259926 100644 --- a/tests/outcomes/plot/test_matplotlib/test_revert/test.py +++ b/tests/outcomes/plot/test_matplotlib/test_revert/test.py @@ -29,7 +29,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestMatplotlib('main').run_tests() + status, feedback = TestMatplotlib(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/test_pandas/test_revert/test.py b/tests/outcomes/plot/test_pandas/test_revert/test.py index 4781f420..333a091b 100644 --- a/tests/outcomes/plot/test_pandas/test_revert/test.py +++ b/tests/outcomes/plot/test_pandas/test_revert/test.py @@ -29,7 +29,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeaborn('main').run_tests() + status, feedback = TestSeaborn(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/test_seaborn/test_revert/test.py b/tests/outcomes/plot/test_seaborn/test_revert/test.py index 3835b0e7..f8c5daca 100644 --- a/tests/outcomes/plot/test_seaborn/test_revert/test.py +++ b/tests/outcomes/plot/test_seaborn/test_revert/test.py @@ -29,7 +29,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeaborn('main').run_tests() + status, feedback = TestSeaborn(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/plot/violinplot/seaborn/test.py b/tests/outcomes/plot/violinplot/seaborn/test.py index c9cddc4b..4cb70fc0 100644 --- a/tests/outcomes/plot/violinplot/seaborn/test.py +++ b/tests/outcomes/plot/violinplot/seaborn/test.py @@ -18,7 +18,7 @@ def test(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestSeabornViolin('main').run_tests() + status, feedback = TestSeabornViolin(source_name='main').run_tests() self.assertEqual(status, 0) diff --git a/tests/outcomes/repeating/test_repeating/test.py b/tests/outcomes/repeating/test_repeating/test.py index 6d74ac7b..1fbfb39e 100644 --- a/tests/outcomes/repeating/test_repeating/test.py +++ b/tests/outcomes/repeating/test_repeating/test.py @@ -18,7 +18,7 @@ def test2(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestRepeating('main').run_tests() + status, feedback = TestRepeating(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual("Wrong answer in test #6", feedback) diff --git a/tests/outcomes/repeating/test_repeating_2/test.py b/tests/outcomes/repeating/test_repeating_2/test.py index bc281acc..295917c2 100644 --- a/tests/outcomes/repeating/test_repeating_2/test.py +++ b/tests/outcomes/repeating/test_repeating_2/test.py @@ -22,7 +22,7 @@ def test3(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestRepeating2('main').run_tests() + status, feedback = TestRepeating2(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual("Wrong answer in test #6", feedback) diff --git a/tests/outcomes/repeating/test_repeating_3/test.py b/tests/outcomes/repeating/test_repeating_3/test.py index 67261b00..cdc4588b 100644 --- a/tests/outcomes/repeating/test_repeating_3/test.py +++ b/tests/outcomes/repeating/test_repeating_3/test.py @@ -22,7 +22,7 @@ def test2(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestRepeating3('main').run_tests() + status, feedback = TestRepeating3(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual("Wrong answer in test #11", feedback) diff --git a/tests/outcomes/repeating/test_repeating_with_parametrized_tests/test.py b/tests/outcomes/repeating/test_repeating_with_parametrized_tests/test.py index 80932791..2e9247f1 100644 --- a/tests/outcomes/repeating/test_repeating_with_parametrized_tests/test.py +++ b/tests/outcomes/repeating/test_repeating_with_parametrized_tests/test.py @@ -22,7 +22,7 @@ def test2(self): class Test(unittest.TestCase): def test(self): - status, feedback = TestRepeatingWithParametrizedTests('main').run_tests() + status, feedback = TestRepeatingWithParametrizedTests(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertEqual("Wrong answer in test #31", feedback) diff --git a/tests/outcomes/repeating/test_repeating_wrong_amount/test.py b/tests/outcomes/repeating/test_repeating_wrong_amount/test.py index 9e09967b..79413871 100644 --- a/tests/outcomes/repeating/test_repeating_wrong_amount/test.py +++ b/tests/outcomes/repeating/test_repeating_wrong_amount/test.py @@ -14,7 +14,7 @@ def test(self, x): class Test(unittest.TestCase): def test(self): - status, feedback = TestRepeatingWrongAmount('main').run_tests() + status, feedback = TestRepeatingWrongAmount(source_name='main').run_tests() self.assertNotEqual(status, 0) self.assertIn("UnexpectedError: Dynamic test \"test\" should not " "be repeated < 0 times, found -1", feedback) diff --git a/tests/outcomes/runtime_exit/test_quit/test.py b/tests/outcomes/runtime_exit/test_quit/test.py index 1930c1af..c71d9707 100644 --- a/tests/outcomes/runtime_exit/test_quit/test.py +++ b/tests/outcomes/runtime_exit/test_quit/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestQuit('main').run_tests() + status, feedback = TestQuit(source_name='main').run_tests() self.assertTrue("Wrong answer in test #1" in feedback) self.assertTrue("Fatal error" not in feedback) diff --git a/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_check/test.py b/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_check/test.py index 1fb18cd3..6f14b5a7 100644 --- a/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_check/test.py +++ b/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_check/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorRuntimeExitInCheck('main').run_tests() + status, feedback = UnexpectedErrorRuntimeExitInCheck(source_name='main').run_tests() self.assertIn('Unexpected error in test #1' '\n\nWe have recorded this bug and will fix it soon.', feedback) diff --git a/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_dynamic_input/test.py b/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_dynamic_input/test.py index c41c05a6..505aae13 100644 --- a/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_dynamic_input/test.py +++ b/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_dynamic_input/test.py @@ -29,7 +29,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorRuntimeExitInDynamicInput('main').run_tests() + status, feedback = UnexpectedErrorRuntimeExitInDynamicInput(source_name='main').run_tests() self.assertIn('Unexpected error in test #3' '\n\nWe have recorded this bug and will fix it soon.', feedback) diff --git a/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_generate/test.py b/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_generate/test.py index c8c44594..ad114166 100644 --- a/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_generate/test.py +++ b/tests/outcomes/runtime_exit/unexpected_error_runtime_exit_in_generate/test.py @@ -21,7 +21,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorRuntimeExitInGenerate('main').run_tests() + status, feedback = UnexpectedErrorRuntimeExitInGenerate(source_name='main').run_tests() self.assertIn('Unexpected error during testing' '\n\nWe have recorded this bug and will fix it soon.', feedback) diff --git a/tests/outcomes/simple_test/test_simple_test_case/test.py b/tests/outcomes/simple_test/test_simple_test_case/test.py index f92d231d..c52f154e 100644 --- a/tests/outcomes/simple_test/test_simple_test_case/test.py +++ b/tests/outcomes/simple_test/test_simple_test_case/test.py @@ -16,6 +16,6 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TesSimpleTestCase('main').run_tests() + status, feedback = TesSimpleTestCase(source_name='main').run_tests() self.assertEqual('test OK', feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/simple_test/test_simple_test_case_fail/test.py b/tests/outcomes/simple_test/test_simple_test_case_fail/test.py index fa1a4648..6f870b97 100644 --- a/tests/outcomes/simple_test/test_simple_test_case_fail/test.py +++ b/tests/outcomes/simple_test/test_simple_test_case_fail/test.py @@ -21,7 +21,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TesSimpleTestCaseFail('main').run_tests() + status, feedback = TesSimpleTestCaseFail(source_name='main').run_tests() self.assertEquals(cleandoc( """ diff --git a/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_with_stderr_and_with_stdout/test.py b/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_with_stderr_and_with_stdout/test.py index e57c1c73..7152bbac 100644 --- a/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_with_stderr_and_with_stdout/test.py +++ b/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_with_stderr_and_with_stdout/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutputWithStderrAndWithStdout('main').run_tests() + status, feedback = TestOutputWithStderrAndWithStdout(source_name='main').run_tests() self.assertIn("Wrong answer in test #1\n\n" "Please find below the output of your program during this failed test." "\n\n---\n\nArguments: test args\n\n" diff --git a/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_with_stdout_and_without_stderr/test.py b/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_with_stdout_and_without_stderr/test.py index ca6a3282..b4c90116 100644 --- a/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_with_stdout_and_without_stderr/test.py +++ b/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_with_stdout_and_without_stderr/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutputWithStderrAndWithStdout('main').run_tests() + status, feedback = TestOutputWithStderrAndWithStdout(source_name='main').run_tests() self.assertIn("Wrong answer in test #1\n\n" "Please find below the output of your program during this failed test.\n\n---\n\n" "Arguments: test args\n\n" diff --git a/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_without_stderr_and_without_stdout/test.py b/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_without_stderr_and_without_stdout/test.py index 85102547..411ae250 100644 --- a/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_without_stderr_and_without_stdout/test.py +++ b/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_without_stderr_and_without_stdout/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutputWithStderrAndWithStdout('main').run_tests() + status, feedback = TestOutputWithStderrAndWithStdout(source_name='main').run_tests() self.assertIn('Arguments: test args', feedback) self.assertNotIn("stderr:", feedback) self.assertNotIn("stdout:", feedback) diff --git a/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_without_stdout_and_with_stderr/test.py b/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_without_stdout_and_with_stderr/test.py index e8a7fd5c..c52218a3 100644 --- a/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_without_stdout_and_with_stderr/test.py +++ b/tests/outcomes/stderr_on_unexpected_error/with_args/test_output_without_stdout_and_with_stderr/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutputWithStderrAndWithStdout('main').run_tests() + status, feedback = TestOutputWithStderrAndWithStdout(source_name='main').run_tests() self.assertIn("Wrong answer in test #1\n\nPlease find below the output of your program during this failed test." "\n\n---\n\nArguments: test args\n\n" "stderr:\nUser stderr output!\nUser stderr output!\nUser stderr output!", feedback) diff --git a/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_with_stderr_and_with_stdout/test.py b/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_with_stderr_and_with_stdout/test.py index eb0b4ba9..d29efd25 100644 --- a/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_with_stderr_and_with_stdout/test.py +++ b/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_with_stderr_and_with_stdout/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutputWithStderrAndWithStdout('main').run_tests() + status, feedback = TestOutputWithStderrAndWithStdout(source_name='main').run_tests() self.assertIn("Wrong answer in test #1\n\n" "Please find below the output of your program during this failed test." "\n\n---\n\n" diff --git a/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_with_stdout_and_without_stderr/test.py b/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_with_stdout_and_without_stderr/test.py index 2ca40cd1..557d69be 100644 --- a/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_with_stdout_and_without_stderr/test.py +++ b/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_with_stdout_and_without_stderr/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutputWithStderrAndWithStdout('main').run_tests() + status, feedback = TestOutputWithStderrAndWithStdout(source_name='main').run_tests() self.assertIn("Wrong answer in test #1\n\n" "Please find below the output of your program during this failed test.\n\n---\n\n" "User stdout output!\nUser stdout output!\nUser stdout output!", feedback) diff --git a/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_without_stderr_and_without_stdout/test.py b/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_without_stderr_and_without_stdout/test.py index ec8a856f..0f88a7b3 100644 --- a/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_without_stderr_and_without_stdout/test.py +++ b/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_without_stderr_and_without_stdout/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutputWithStderrAndWithStdout('main').run_tests() + status, feedback = TestOutputWithStderrAndWithStdout(source_name='main').run_tests() self.assertNotIn("stderr:", feedback) self.assertNotIn("stdout:", feedback) self.assertNotEqual(status, 0) diff --git a/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_without_stdout_and_with_stderr/test.py b/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_without_stdout_and_with_stderr/test.py index 8acfbfb6..ce83f7ee 100644 --- a/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_without_stdout_and_with_stderr/test.py +++ b/tests/outcomes/stderr_on_unexpected_error/without_args/test_output_without_stdout_and_with_stderr/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestOutputWithStderrAndWithStdout('main').run_tests() + status, feedback = TestOutputWithStderrAndWithStdout(source_name='main').run_tests() self.assertIn("Wrong answer in test #1\n\nPlease find below the output of your program during this failed test." "\n\n---\n\nstderr:\nUser stderr output!\nUser stderr output!\nUser stderr output!", feedback) self.assertNotEqual(status, 0) diff --git a/tests/outcomes/syntax_error/test_empty_eval/test.py b/tests/outcomes/syntax_error/test_empty_eval/test.py index 5f3e160f..e9a65878 100644 --- a/tests/outcomes/syntax_error/test_empty_eval/test.py +++ b/tests/outcomes/syntax_error/test_empty_eval/test.py @@ -15,7 +15,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestEmptyEval('main').run_tests() + status, feedback = TestEmptyEval(source_name='main').run_tests() self.assertIn('Exception in test #1\n' '\n' diff --git a/tests/outcomes/syntax_error/test_error_using_eval/test.py b/tests/outcomes/syntax_error/test_error_using_eval/test.py index 8e154680..4b099121 100644 --- a/tests/outcomes/syntax_error/test_error_using_eval/test.py +++ b/tests/outcomes/syntax_error/test_error_using_eval/test.py @@ -15,7 +15,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestEmptyEval('main').run_tests() + status, feedback = TestEmptyEval(source_name='main').run_tests() self.assertIn('Exception in test #1\n' '\n' diff --git a/tests/outcomes/syntax_error/test_error_using_eval_and_print/test.py b/tests/outcomes/syntax_error/test_error_using_eval_and_print/test.py index 5b0e482d..4453ac14 100644 --- a/tests/outcomes/syntax_error/test_error_using_eval_and_print/test.py +++ b/tests/outcomes/syntax_error/test_error_using_eval_and_print/test.py @@ -15,7 +15,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestEmptyEval('main').run_tests() + status, feedback = TestEmptyEval(source_name='main').run_tests() self.assertIn('Exception in test #1\n' '\n' diff --git a/tests/outcomes/syntax_error/test_error_using_exec/test.py b/tests/outcomes/syntax_error/test_error_using_exec/test.py index 9fb3e1e0..d624fd11 100644 --- a/tests/outcomes/syntax_error/test_error_using_exec/test.py +++ b/tests/outcomes/syntax_error/test_error_using_exec/test.py @@ -15,7 +15,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestSyntaxError1('main').run_tests() + status, feedback = TestSyntaxError1(source_name='main').run_tests() self.assertIn('Exception in test #1\n' '\n' diff --git a/tests/outcomes/syntax_error/test_syntax_error_1/test.py b/tests/outcomes/syntax_error/test_syntax_error_1/test.py index cd519823..3638a9ad 100644 --- a/tests/outcomes/syntax_error/test_syntax_error_1/test.py +++ b/tests/outcomes/syntax_error/test_syntax_error_1/test.py @@ -15,7 +15,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestSyntaxError1('main').run_tests() + status, feedback = TestSyntaxError1(source_name='main').run_tests() self.assertIn('Exception in test #1\n' '\n' diff --git a/tests/outcomes/syntax_error/test_syntax_error_2/test.py b/tests/outcomes/syntax_error/test_syntax_error_2/test.py index c4367c24..259cff26 100644 --- a/tests/outcomes/syntax_error/test_syntax_error_2/test.py +++ b/tests/outcomes/syntax_error/test_syntax_error_2/test.py @@ -15,7 +15,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = TestSyntaxError2('main').run_tests() + status, feedback = TestSyntaxError2(source_name='main').run_tests() self.assertIn('Exception in test #1\n' '\n' diff --git a/tests/outcomes/test_passed_thrown/test_passed_thrown_in_check_1/test.py b/tests/outcomes/test_passed_thrown/test_passed_thrown_in_check_1/test.py index 1dcfa2af..0fddc611 100644 --- a/tests/outcomes/test_passed_thrown/test_passed_thrown_in_check_1/test.py +++ b/tests/outcomes/test_passed_thrown/test_passed_thrown_in_check_1/test.py @@ -23,7 +23,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestPassedThrownInCheck1('main').run_tests() + status, feedback = TestPassedThrownInCheck1(source_name='main').run_tests() self.assertTrue("Wrong answer in test #1\n\n" "test is not passed attach true" in feedback) diff --git a/tests/outcomes/test_passed_thrown/test_passed_thrown_in_check_2/test.py b/tests/outcomes/test_passed_thrown/test_passed_thrown_in_check_2/test.py index 2d688191..c5a97530 100644 --- a/tests/outcomes/test_passed_thrown/test_passed_thrown_in_check_2/test.py +++ b/tests/outcomes/test_passed_thrown/test_passed_thrown_in_check_2/test.py @@ -23,7 +23,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestPassedThrownInCheck2('main').run_tests() + status, feedback = TestPassedThrownInCheck2(source_name='main').run_tests() self.assertTrue("Wrong answer in test #2\n\n" "test is not passed attach false" in feedback) diff --git a/tests/outcomes/test_passed_thrown/test_passed_thrown_in_dynamic_input_1/test.py b/tests/outcomes/test_passed_thrown/test_passed_thrown_in_dynamic_input_1/test.py index b0420a12..54d9a5d8 100644 --- a/tests/outcomes/test_passed_thrown/test_passed_thrown_in_dynamic_input_1/test.py +++ b/tests/outcomes/test_passed_thrown/test_passed_thrown_in_dynamic_input_1/test.py @@ -31,7 +31,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestPassedThrownInDynamicInput1('main').run_tests() + status, feedback = TestPassedThrownInDynamicInput1(source_name='main').run_tests() self.assertTrue("Wrong answer in test #2\n\n" "fail inside check" in feedback) diff --git a/tests/outcomes/test_passed_thrown/test_passed_thrown_in_dynamic_input_2/test.py b/tests/outcomes/test_passed_thrown/test_passed_thrown_in_dynamic_input_2/test.py index af744aa7..0efdc587 100644 --- a/tests/outcomes/test_passed_thrown/test_passed_thrown_in_dynamic_input_2/test.py +++ b/tests/outcomes/test_passed_thrown/test_passed_thrown_in_dynamic_input_2/test.py @@ -31,7 +31,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = TestPassedThrownInDynamicInput2('main').run_tests() + status, feedback = TestPassedThrownInDynamicInput2(source_name='main').run_tests() self.assertTrue("Wrong answer in test #1\n\n" "fail inside check" in feedback) diff --git a/tests/outcomes/timeout/test_default_time_limit/test.py b/tests/outcomes/timeout/test_default_time_limit/test.py index 526a2193..a5871123 100644 --- a/tests/outcomes/timeout/test_default_time_limit/test.py +++ b/tests/outcomes/timeout/test_default_time_limit/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: @unittest.skip class Test(unittest.TestCase): def test(self): - status, feedback = TestDefaultTimeLimit('main').run_tests() + status, feedback = TestDefaultTimeLimit(source_name='main').run_tests() self.assertTrue("Error in test #1" in feedback) self.assertTrue( diff --git a/tests/outcomes/timeout/test_no_time_limit/test.py b/tests/outcomes/timeout/test_no_time_limit/test.py index e67a8ed8..db9e0c0b 100644 --- a/tests/outcomes/timeout/test_no_time_limit/test.py +++ b/tests/outcomes/timeout/test_no_time_limit/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: @unittest.skip class Test(unittest.TestCase): def test(self): - status, feedback = TestNoTimeLimit('main').run_tests() + status, feedback = TestNoTimeLimit(source_name='main').run_tests() self.assertTrue('test OK', feedback) self.assertEqual(status, 0) diff --git a/tests/outcomes/timeout/test_timeout_1/test.py b/tests/outcomes/timeout/test_timeout_1/test.py index a3c04520..8154c402 100644 --- a/tests/outcomes/timeout/test_timeout_1/test.py +++ b/tests/outcomes/timeout/test_timeout_1/test.py @@ -21,7 +21,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: @unittest.skip class Test(unittest.TestCase): def test(self): - status, feedback = TestTimeout1('main').run_tests() + status, feedback = TestTimeout1(source_name='main').run_tests() self.assertTrue("Error in test #2" in feedback) self.assertTrue( diff --git a/tests/outcomes/timeout/test_timeout_2/test.py b/tests/outcomes/timeout/test_timeout_2/test.py index 0cac59e9..f54d6503 100644 --- a/tests/outcomes/timeout/test_timeout_2/test.py +++ b/tests/outcomes/timeout/test_timeout_2/test.py @@ -22,7 +22,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: @unittest.skip class Test(unittest.TestCase): def test(self): - status, feedback = TestTimeout2('main').run_tests() + status, feedback = TestTimeout2(source_name='main').run_tests() self.assertTrue("Error in test #3" in feedback) self.assertTrue( diff --git a/tests/outcomes/timeout/test_timeout_3/test.py b/tests/outcomes/timeout/test_timeout_3/test.py index 47aa6550..38557604 100644 --- a/tests/outcomes/timeout/test_timeout_3/test.py +++ b/tests/outcomes/timeout/test_timeout_3/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: @unittest.skip class Test(unittest.TestCase): def test(self): - status, feedback = TestTimeout3('main').run_tests() + status, feedback = TestTimeout3(source_name='main').run_tests() self.assertTrue("Error in test #1" in feedback) self.assertTrue( diff --git a/tests/outcomes/unexpected_error/unexpected_error_add_input_1/test.py b/tests/outcomes/unexpected_error/unexpected_error_add_input_1/test.py index 12e416a6..0d591723 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_add_input_1/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_add_input_1/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorAddInput1('main').run_tests() + status, feedback = UnexpectedErrorAddInput1(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Unexpected error in test #1' diff --git a/tests/outcomes/unexpected_error/unexpected_error_add_input_2/test.py b/tests/outcomes/unexpected_error/unexpected_error_add_input_2/test.py index 65fd738a..22b136dc 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_add_input_2/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_add_input_2/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorAddInput2('main').run_tests() + status, feedback = UnexpectedErrorAddInput2(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Unexpected error in test #1' diff --git a/tests/outcomes/unexpected_error/unexpected_error_add_input_3/test.py b/tests/outcomes/unexpected_error/unexpected_error_add_input_3/test.py index a1e9e40b..5dab87ea 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_add_input_3/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_add_input_3/test.py @@ -22,7 +22,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorAddInput3('main').run_tests() + status, feedback = UnexpectedErrorAddInput3(source_name='main').run_tests() self.assertIn('Unexpected error in test #4' '\n\nWe have recorded this bug and will fix it soon.', feedback) diff --git a/tests/outcomes/unexpected_error/unexpected_error_during_checking/test.py b/tests/outcomes/unexpected_error/unexpected_error_during_checking/test.py index 28de39c3..889ad2e4 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_during_checking/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_during_checking/test.py @@ -18,7 +18,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorDuringChecking('main').run_tests() + status, feedback = UnexpectedErrorDuringChecking(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Unexpected error in test #1' diff --git a/tests/outcomes/unexpected_error/unexpected_error_during_checking_with_assertion/test.py b/tests/outcomes/unexpected_error/unexpected_error_during_checking_with_assertion/test.py index 72357d11..7d596bf4 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_during_checking_with_assertion/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_during_checking_with_assertion/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorDuringCheckingWithAssertion('main').run_tests() + status, feedback = UnexpectedErrorDuringCheckingWithAssertion(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Unexpected error in test #1' diff --git a/tests/outcomes/unexpected_error/unexpected_error_empty_test_cases/test.py b/tests/outcomes/unexpected_error/unexpected_error_empty_test_cases/test.py index 009c24de..9b910cf2 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_empty_test_cases/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_empty_test_cases/test.py @@ -17,7 +17,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorEmptyTestCases('main').run_tests() + status, feedback = UnexpectedErrorEmptyTestCases(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Unexpected error during testing' diff --git a/tests/outcomes/unexpected_error/unexpected_error_generating_tests/test.py b/tests/outcomes/unexpected_error/unexpected_error_generating_tests/test.py index 756c83eb..1fe52d98 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_generating_tests/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_generating_tests/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorGeneratingTests('main').run_tests() + status, feedback = UnexpectedErrorGeneratingTests(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Unexpected error during testing' diff --git a/tests/outcomes/unexpected_error/unexpected_error_generating_tests_with_assertion/test.py b/tests/outcomes/unexpected_error/unexpected_error_generating_tests_with_assertion/test.py index d57429c4..30607416 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_generating_tests_with_assertion/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_generating_tests_with_assertion/test.py @@ -16,7 +16,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorGeneratingTestsWithAssertion('main').run_tests() + status, feedback = UnexpectedErrorGeneratingTestsWithAssertion(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Unexpected error during testing' diff --git a/tests/outcomes/unexpected_error/unexpected_error_no_check_method/test.py b/tests/outcomes/unexpected_error/unexpected_error_no_check_method/test.py index 835a9b01..69cff24e 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_no_check_method/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_no_check_method/test.py @@ -15,7 +15,7 @@ def generate(self) -> List[TestCase]: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorNotGeneratingTests('main').run_tests() + status, feedback = UnexpectedErrorNotGeneratingTests(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Unexpected error in test #1' diff --git a/tests/outcomes/unexpected_error/unexpected_error_not_generating_tests/test.py b/tests/outcomes/unexpected_error/unexpected_error_not_generating_tests/test.py index ced346bf..ae2ce805 100644 --- a/tests/outcomes/unexpected_error/unexpected_error_not_generating_tests/test.py +++ b/tests/outcomes/unexpected_error/unexpected_error_not_generating_tests/test.py @@ -13,7 +13,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = UnexpectedErrorNotGeneratingTests('main').run_tests() + status, feedback = UnexpectedErrorNotGeneratingTests(source_name='main').run_tests() self.assertEqual(status, -1) self.assertTrue('Unexpected error during testing' diff --git a/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_1/test.py b/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_1/test.py index f6dc6806..8ac41ace 100644 --- a/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_1/test.py +++ b/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_1/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerDynamicInput1('main').run_tests() + status, feedback = WrongAnswerDynamicInput1(source_name='main').run_tests() self.assertTrue("Wrong answer in test #1" in feedback) self.assertTrue("WA TEST 1" in feedback) diff --git a/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_2/test.py b/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_2/test.py index 66e34e88..fe8ab847 100644 --- a/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_2/test.py +++ b/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_2/test.py @@ -25,7 +25,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerDynamicInput2('main').run_tests() + status, feedback = WrongAnswerDynamicInput2(source_name='main').run_tests() self.assertTrue("Wrong answer in test #2" in feedback) self.assertTrue("WA TEST 2" in feedback) diff --git a/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_3/test.py b/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_3/test.py index 007a3023..47c83f0e 100644 --- a/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_3/test.py +++ b/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_3/test.py @@ -31,7 +31,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerDynamicInput3('main').run_tests() + status, feedback = WrongAnswerDynamicInput3(source_name='main').run_tests() self.assertTrue("Wrong answer in test #3" in feedback) self.assertTrue("WA TEST 3" in feedback) diff --git a/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_4/test.py b/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_4/test.py index 433463eb..789627bb 100644 --- a/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_4/test.py +++ b/tests/outcomes/wrong_answer/wrong_answer_dynamic_input_4/test.py @@ -38,7 +38,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerDynamicInput4('main').run_tests() + status, feedback = WrongAnswerDynamicInput4(source_name='main').run_tests() self.assertTrue("Wrong answer in test #4" in feedback) self.assertTrue("WA TEST 4" in feedback) diff --git a/tests/outcomes/wrong_answer/wrong_answer_in_test_1/test.py b/tests/outcomes/wrong_answer/wrong_answer_in_test_1/test.py index 3d44ebfa..7a332465 100644 --- a/tests/outcomes/wrong_answer/wrong_answer_in_test_1/test.py +++ b/tests/outcomes/wrong_answer/wrong_answer_in_test_1/test.py @@ -19,7 +19,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerInTest1('main').run_tests() + status, feedback = WrongAnswerInTest1(source_name='main').run_tests() self.assertTrue("Wrong answer in test #1" in feedback) self.assertTrue("Fatal error" not in feedback) diff --git a/tests/outcomes/wrong_answer/wrong_answer_in_test_2/test.py b/tests/outcomes/wrong_answer/wrong_answer_in_test_2/test.py index b4f45446..0255b7ed 100644 --- a/tests/outcomes/wrong_answer/wrong_answer_in_test_2/test.py +++ b/tests/outcomes/wrong_answer/wrong_answer_in_test_2/test.py @@ -20,7 +20,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerInTest2('main').run_tests() + status, feedback = WrongAnswerInTest2(source_name='main').run_tests() self.assertTrue("Wrong answer in test #2" in feedback) self.assertTrue("Fatal error" not in feedback) diff --git a/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_check_1/test.py b/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_check_1/test.py index f0ddcef3..e9d9513b 100644 --- a/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_check_1/test.py +++ b/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_check_1/test.py @@ -23,7 +23,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerThrownInCheck1('main').run_tests() + status, feedback = WrongAnswerThrownInCheck1(source_name='main').run_tests() self.assertTrue("Wrong answer in test #2\n\n" "Wrong answer from check attach false" in feedback) diff --git a/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_check_2/test.py b/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_check_2/test.py index c6304690..4922f1c4 100644 --- a/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_check_2/test.py +++ b/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_check_2/test.py @@ -23,7 +23,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerThrownInCheck2('main').run_tests() + status, feedback = WrongAnswerThrownInCheck2(source_name='main').run_tests() self.assertTrue("Wrong answer in test #1\n\n" "Wrong answer from check attach true" in feedback) diff --git a/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_dynamic_input_1/test.py b/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_dynamic_input_1/test.py index 0ca8f734..a03d45c3 100644 --- a/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_dynamic_input_1/test.py +++ b/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_dynamic_input_1/test.py @@ -31,7 +31,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerThrownInDynamicInput1('main').run_tests() + status, feedback = WrongAnswerThrownInDynamicInput1(source_name='main').run_tests() self.assertTrue("Wrong answer in test #1\n\n" "Add input test 1" in feedback) diff --git a/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_dynamic_input_2/test.py b/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_dynamic_input_2/test.py index 7f499f85..986bcc91 100644 --- a/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_dynamic_input_2/test.py +++ b/tests/outcomes/wrong_answer_thrown/wrong_answer_thrown_in_dynamic_input_2/test.py @@ -31,7 +31,7 @@ def check(self, reply: str, attach: Any) -> CheckResult: class Test(unittest.TestCase): def test(self): - status, feedback = WrongAnswerThrownInDynamicInput2('main').run_tests() + status, feedback = WrongAnswerThrownInDynamicInput2(source_name='main').run_tests() self.assertTrue("Wrong answer in test #2\n\n" "Add input test 2" in feedback) diff --git a/tests/projects/go/coffee_machine/stage1/main.go b/tests/projects/go/coffee_machine/stage1/main.go index ad7cdc99..e69de29b 100644 --- a/tests/projects/go/coffee_machine/stage1/main.go +++ b/tests/projects/go/coffee_machine/stage1/main.go @@ -1,15 +0,0 @@ -package main - -import ( - "fmt" -) - -func main() { - fmt.Println(`Starting to make a coffee -Grinding coffee beans -Boiling water -Mixing boiled water with crushed coffee beans -Pouring coffee into the cup -Pouring some milk into the cup -Coffee is ready!`) -} diff --git a/tests/projects/go/coffee_machine/stage1_ce/main.go b/tests/projects/go/coffee_machine/stage1_ce/main.go index a82c2ff7..e69de29b 100644 --- a/tests/projects/go/coffee_machine/stage1_ce/main.go +++ b/tests/projects/go/coffee_machine/stage1_ce/main.go @@ -1,9 +0,0 @@ -package main - -import ( - "fmt" -) - -func main() { - Println(`12123123`) -} diff --git a/tests/projects/go/coffee_machine/stage1_ex/main.go b/tests/projects/go/coffee_machine/stage1_ex/main.go index 68f90612..e69de29b 100644 --- a/tests/projects/go/coffee_machine/stage1_ex/main.go +++ b/tests/projects/go/coffee_machine/stage1_ex/main.go @@ -1,5 +0,0 @@ -package main - -func main() { - panic("unreachable") -} diff --git a/tests/projects/go/coffee_machine/stage1_wa/main.go b/tests/projects/go/coffee_machine/stage1_wa/main.go index dec08d9f..e69de29b 100644 --- a/tests/projects/go/coffee_machine/stage1_wa/main.go +++ b/tests/projects/go/coffee_machine/stage1_wa/main.go @@ -1,9 +0,0 @@ -package main - -import ( - "fmt" -) - -func main() { - fmt.Println(`12123123`) -} diff --git a/tests/projects/go/coffee_machine/stage2/main.go b/tests/projects/go/coffee_machine/stage2/main.go index 3c2bc1ca..e69de29b 100644 --- a/tests/projects/go/coffee_machine/stage2/main.go +++ b/tests/projects/go/coffee_machine/stage2/main.go @@ -1,15 +0,0 @@ -package main - -import ( - "fmt" -) - -func main() { - var cups int - fmt.Print("Write how many cups of coffee you will need: ") - fmt.Scanf("%d\n", &cups) - fmt.Printf(`For %d cups of coffee you will need: -%d ml of water -%d ml of milk -%d g of coffee beans`, cups, cups*200, cups*50, cups*15) -} diff --git a/tests/projects/go/coffee_machine/stage3/main.go b/tests/projects/go/coffee_machine/stage3/main.go index 3d5a53fb..e69de29b 100644 --- a/tests/projects/go/coffee_machine/stage3/main.go +++ b/tests/projects/go/coffee_machine/stage3/main.go @@ -1,36 +0,0 @@ -package main - -import "fmt" - -func main() { - var cups, water, milk, beans, needs int - - fmt.Print("Write how many ml of water the coffee machine has: ") - fmt.Scanf("%d\n", &water) - cups = water / 200 - - fmt.Print("Write how many ml of milk the coffee machine has: ") - fmt.Scanf("%d\n", &milk) - if milk/50 < cups { - cups = milk / 50 - } - - fmt.Print("Write how many grams of coffee beans the coffee machine has: ") - fmt.Scanf("%d\n", &beans) - if beans/15 < cups { - cups = beans / 15 - } - - fmt.Print("Write how many cups of coffee you will need: ") - fmt.Scanf("%d\n", &needs) - if needs == cups { - fmt.Println("Yes, I can make that amount of coffee") - } else if needs < cups { - fmt.Printf( - "Yes, I can make that amount of coffee (and even %d more than that)\n", - cups-needs, - ) - } else { - fmt.Printf("No, I can make only %d cup(s) of coffee\n", cups) - } -} diff --git a/tests/projects/go/coffee_machine/stage4/main.go b/tests/projects/go/coffee_machine/stage4/main.go index 10c91fe3..e69de29b 100644 --- a/tests/projects/go/coffee_machine/stage4/main.go +++ b/tests/projects/go/coffee_machine/stage4/main.go @@ -1,84 +0,0 @@ -package main - -import "fmt" - -func main() { - var ( - money = 550 - water = 400 - milk = 540 - beans = 120 - cups = 9 - choice int - ) - - printState := func() { - fmt.Println("The coffee machine has:") - fmt.Printf( - "%d of water\n%d of milk\n%d of coffee beans\n%d of disposable cups\n$%d of money\n", - water, milk, beans, cups, money, - ) - } - - takeMoney := func() { - fmt.Printf("I gave you $%d\n", money) - money = 0 - } - - sellCoffee := func() { - fmt.Print("What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino: ") - fmt.Scanf("%d\n", &choice) - switch choice { - case 1: - money += 4 - water -= 250 - beans -= 16 - cups -= 1 - case 2: - money += 7 - water -= 350 - milk -= 75 - beans -= 20 - cups -= 1 - case 3: - money += 6 - water -= 200 - milk -= 100 - beans -= 12 - cups -= 1 - } - } - - fillMachine := func() { - var next int - fmt.Print("Write how many ml of water do you want to add: ") - fmt.Scanf("%d\n", &next) - water += next - fmt.Print("Write how many ml of milk do you want to add: ") - fmt.Scanf("%d\n", &next) - milk += next - fmt.Print("Write how many grams of coffee beans do you want to add: ") - fmt.Scanf("%d\n", &next) - beans += next - fmt.Print("Write how many disposable cups of coffee do you want to add: ") - fmt.Scanf("%d\n", &next) - cups += next - } - - printState() - - var action string - fmt.Print("\nWrite action (buy, fill, take): ") - fmt.Scanf("%s\n", &action) - switch action { - case "buy": - sellCoffee() - case "fill": - fillMachine() - case "take": - takeMoney() - } - - fmt.Println() - printState() -} diff --git a/tests/projects/go/coffee_machine/stage5/main.go b/tests/projects/go/coffee_machine/stage5/main.go index df09459e..e69de29b 100644 --- a/tests/projects/go/coffee_machine/stage5/main.go +++ b/tests/projects/go/coffee_machine/stage5/main.go @@ -1,95 +0,0 @@ -package main - -import "fmt" - -func main() { - var ( - money = 550 - water = 400 - milk = 540 - beans = 120 - cups = 9 - choice int - ) - - printState := func() { - fmt.Println("The coffee machine has:") - fmt.Printf( - "%d of water\n%d of milk\n%d of coffee beans\n%d of disposable cups\n$%d of money\n", - water, milk, beans, cups, money, - ) - } - - takeMoney := func() { - fmt.Printf("I gave you $%d\n", money) - money = 0 - } - - sellCoffee := func() { - fmt.Print("What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino: ") - fmt.Scanf("%d\n", &choice) - - makeCoffee := func(getMoney, needWater, needMilk, needBeans int) { - if water < needWater { - fmt.Println("Sorry, not enough water!") - } else if milk < needMilk { - fmt.Println("Sorry, not enough milk!") - } else if beans < needBeans { - fmt.Println("Sorry, not enough beans!") - } else if cups < 1 { - fmt.Println("Sorry, not enough cups!") - } else { - fmt.Println("I have enough resources, making you a coffee!") - money += getMoney - water -= needWater - milk -= needMilk - beans -= needBeans - cups-- - } - } - - switch choice { - case 1: - makeCoffee(4, 250, 0, 16) - case 2: - makeCoffee(7, 350, 75, 20) - case 3: - makeCoffee(6, 200, 100, 12) - } - } - - fillMachine := func() { - var next int - fmt.Print("Write how many ml of water do you want to add: ") - fmt.Scanf("%d\n", &next) - water += next - fmt.Print("Write how many ml of milk do you want to add: ") - fmt.Scanf("%d\n", &next) - milk += next - fmt.Print("Write how many grams of coffee beans do you want to add: ") - fmt.Scanf("%d\n", &next) - beans += next - fmt.Print("Write how many disposable cups of coffee do you want to add: ") - fmt.Scanf("%d\n", &next) - cups += next - } - -Loop: - for { - var action string - fmt.Print("\nWrite action (buy, fill, take, remaining, exit): ") - fmt.Scanf("%s\n", &action) - switch action { - case "buy": - sellCoffee() - case "fill": - fillMachine() - case "take": - takeMoney() - case "remaining": - printState() - case "exit": - break Loop - } - } -} diff --git a/tests/projects/javascript/coffee_machine/stage1/main.js b/tests/projects/javascript/coffee_machine/stage1/main.js index ce5cbbc0..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage1/main.js +++ b/tests/projects/javascript/coffee_machine/stage1/main.js @@ -1,8 +0,0 @@ - -console.log(`Starting to make a coffee -Grinding coffee beans -Boiling water -Mixing boiled water with crushed coffee beans -Pouring coffee into the cup -Pouring some milk into the cup -Coffee is ready!`) diff --git a/tests/projects/javascript/coffee_machine/stage1_ce/main.js b/tests/projects/javascript/coffee_machine/stage1_ce/main.js index ca1f4ed5..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage1_ce/main.js +++ b/tests/projects/javascript/coffee_machine/stage1_ce/main.js @@ -1,8 +0,0 @@ - -console.log(`Starting to make a coffee -Grinding coffee beans -Boiling water -Mixing boiled water with crushed coffee beans -Pouring coffee into the cup -Pouring some milk into the cup -Coffee is ready!` diff --git a/tests/projects/javascript/coffee_machine/stage1_ex/main.js b/tests/projects/javascript/coffee_machine/stage1_ex/main.js index 27776535..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage1_ex/main.js +++ b/tests/projects/javascript/coffee_machine/stage1_ex/main.js @@ -1,2 +0,0 @@ - -console.log(0 .valueOf1()) diff --git a/tests/projects/javascript/coffee_machine/stage1_wa/main.js b/tests/projects/javascript/coffee_machine/stage1_wa/main.js index d9de5338..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage1_wa/main.js +++ b/tests/projects/javascript/coffee_machine/stage1_wa/main.js @@ -1 +0,0 @@ -console.log('12123123') diff --git a/tests/projects/javascript/coffee_machine/stage2/main.js b/tests/projects/javascript/coffee_machine/stage2/main.js index a7507c99..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage2/main.js +++ b/tests/projects/javascript/coffee_machine/stage2/main.js @@ -1,10 +0,0 @@ - - - -const input = require('sync-input') - -cups = Number(input("Write how many cups of coffee you will need: ")) -console.log('For ' + cups + " cups of coffee you will need:") -console.log(cups*200 + " ml of water") -console.log(cups*50 + " ml of milk") -console.log(cups*15 + " g of coffee beans") diff --git a/tests/projects/javascript/coffee_machine/stage2/node_modules/sync-input/index.js b/tests/projects/javascript/coffee_machine/stage2/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage2/node_modules/sync-input/index.js +++ b/tests/projects/javascript/coffee_machine/stage2/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/coffee_machine/stage3/main.js b/tests/projects/javascript/coffee_machine/stage3/main.js index d24940b9..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage3/main.js +++ b/tests/projects/javascript/coffee_machine/stage3/main.js @@ -1,25 +0,0 @@ -const input = require('sync-input'); - -var cups, water, milk, beans, needs; - -water = Number(input('Write how many ml of water the coffee machine has: ')) -cups = water / 200 | 0; - -milk = Number(input("Write how many ml of milk the coffee machine has: ")) -if ((milk/50|0) < cups) { - cups = milk / 50 | 0; -} - -beans = Number(input("Write how many grams of coffee beans the coffee machine has: ")); -if ((beans/15|0) < cups) { - cups = beans / 15 | 0; -} - -needs = Number(input("Write how many cups of coffee you will need: ")); -if (needs === cups) { - console.log("Yes, I can make that amount of coffee") -} else if (needs < cups) { - console.log("Yes, I can make that amount of coffee (and even " + (cups-needs) + " more than that)") -} else { - console.log("No, I can make only " + cups + " cup(s) of coffee") -} diff --git a/tests/projects/javascript/coffee_machine/stage3/node_modules/sync-input/index.js b/tests/projects/javascript/coffee_machine/stage3/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage3/node_modules/sync-input/index.js +++ b/tests/projects/javascript/coffee_machine/stage3/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/coffee_machine/stage4/main.js b/tests/projects/javascript/coffee_machine/stage4/main.js index e68cc695..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage4/main.js +++ b/tests/projects/javascript/coffee_machine/stage4/main.js @@ -1,70 +0,0 @@ -const input = require('sync-input'); - -var money = 550; -var water = 400; -var milk = 540; -var beans = 120; -var cups = 9; - -function printState() { - console.log("The coffee machine has:") - console.log( - water + " of water \n" + - milk + " of milk \n" + - beans + " of coffee beans \n" + - cups + " of disposable cups \n" + - money + " of money") -} - -function takeMoney() { - console.log("I gave you $" + money) - money = 0 -} - -function sellCoffee() { - let choice = input("What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino: ") - if (choice === '1') { - console.log(123) - money += 4 - water -= 250 - beans -= 16 - cups -= 1 - } - else if (choice === '2') { - money += 7 - water -= 350 - milk -= 75 - beans -= 20 - cups -= 1 - } - else if (choice === '3') { - money += 6 - water -= 200 - milk -= 100 - beans -= 12 - cups -= 1 - } else { - console.log(234) - } -} - -function fillMachine() { - water += Number(input("Write how many ml of water do you want to add: ")) - milk += Number(input("Write how many ml of milk do you want to add: ")) - beans += Number(input("Write how many grams of coffee beans do you want to add: ")) - cups += Number(input("Write how many disposable cups of coffee do you want to add: ")) -} - -printState(); - -action = input("Write action (buy, fill, take): "); - -if (action === 'buy') { - sellCoffee() -} else if (action === 'fill') { - fillMachine() -} else if (action === "take") { - takeMoney() -} - -printState(); diff --git a/tests/projects/javascript/coffee_machine/stage4/node_modules/sync-input/index.js b/tests/projects/javascript/coffee_machine/stage4/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage4/node_modules/sync-input/index.js +++ b/tests/projects/javascript/coffee_machine/stage4/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/coffee_machine/stage5/main.js b/tests/projects/javascript/coffee_machine/stage5/main.js index dc293e26..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage5/main.js +++ b/tests/projects/javascript/coffee_machine/stage5/main.js @@ -1,77 +0,0 @@ -const input = require('sync-input'); - -var money = 550; -var water = 400; -var milk = 540; -var beans = 120; -var cups = 9; - -function printState() { - console.log("The coffee machine has:") - console.log( - water + " of water \n" + - milk + " of milk \n" + - beans + " of coffee beans \n" + - cups + " of disposable cups \n" + - money + " of money") -} - -function takeMoney() { - console.log("I gave you $" + money) - money = 0 -} - -function sellCoffee() { - let choice = input("What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino: "); - - function makeCoffee(getMoney, needWater, needMilk, needBeans) { - if (water < needWater) { - console.log("Sorry, not enough water!") - } else if (milk < needMilk) { - console.log("Sorry, not enough milk!") - } else if (beans < needBeans) { - console.log("Sorry, not enough beans!") - } else if (cups < 1) { - console.log("Sorry, not enough cups!") - } else { - console.log("I have enough resources, making you a coffee!") - money += getMoney - water -= needWater - milk -= needMilk - beans -= needBeans - cups-- - } - } - - if (choice === '1') { - makeCoffee(4, 250, 0, 16) - } else if (choice === '2') { - makeCoffee(7, 350, 75, 20) - } else if (choice === '3') { - makeCoffee(6, 200, 100, 12) - } -} - -function fillMachine() { - water += Number(input("Write how many ml of water do you want to add: ")) - milk += Number(input("Write how many ml of milk do you want to add: ")) - beans += Number(input("Write how many grams of coffee beans do you want to add: ")) - cups += Number(input("Write how many disposable cups of coffee do you want to add: ")) -} - - -while (true) { - action = input("Write action (buy, fill, take, remaining, exit): ") - - if (action === 'buy') { - sellCoffee() - } else if (action === 'fill') { - fillMachine() - } else if (action === "take") { - takeMoney() - } else if (action === "remaining") { - printState(); - } else if (action === 'exit') { - break - } -} diff --git a/tests/projects/javascript/coffee_machine/stage5/node_modules/sync-input/index.js b/tests/projects/javascript/coffee_machine/stage5/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/coffee_machine/stage5/node_modules/sync-input/index.js +++ b/tests/projects/javascript/coffee_machine/stage5/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/simple_chatty_bot/stage1/main.js b/tests/projects/javascript/simple_chatty_bot/stage1/main.js index 0dbac6a5..e69de29b 100644 --- a/tests/projects/javascript/simple_chatty_bot/stage1/main.js +++ b/tests/projects/javascript/simple_chatty_bot/stage1/main.js @@ -1,5 +0,0 @@ -let botName = "Monthy"; -let birthYear = "2020"; - -console.log(`Hello! My name is ${botName}. -I was created in ${birthYear}.`); diff --git a/tests/projects/javascript/simple_chatty_bot/stage2/main.js b/tests/projects/javascript/simple_chatty_bot/stage2/main.js index 7fc92610..e69de29b 100644 --- a/tests/projects/javascript/simple_chatty_bot/stage2/main.js +++ b/tests/projects/javascript/simple_chatty_bot/stage2/main.js @@ -1,12 +0,0 @@ -const input = require('sync-input'); - -let botName = "Aid"; -let birthYear = "2020"; - -console.log(`Hello! My name is ${botName}. -I was created in ${birthYear}.`); - -let userName = input("Please, remind me your name.\n"); - -console.log(`What a great name you have, ${userName}!`); - diff --git a/tests/projects/javascript/simple_chatty_bot/stage2/node_modules/sync-input/index.js b/tests/projects/javascript/simple_chatty_bot/stage2/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/simple_chatty_bot/stage2/node_modules/sync-input/index.js +++ b/tests/projects/javascript/simple_chatty_bot/stage2/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/simple_chatty_bot/stage3/main.js b/tests/projects/javascript/simple_chatty_bot/stage3/main.js index 4bac2015..e69de29b 100644 --- a/tests/projects/javascript/simple_chatty_bot/stage3/main.js +++ b/tests/projects/javascript/simple_chatty_bot/stage3/main.js @@ -1,22 +0,0 @@ -const input = require('sync-input'); - -let botName = "Aid"; -let birthYear = "2020"; - -console.log(`Hello! My name is ${botName}. -I was created in ${birthYear}.`); - -let userName = input("Please, remind me your name.\n"); - -console.log(`What a great name you have, ${userName}!`); - -console.log(`Let me guess your age. -Enter remainders of dividing your age by 3, 5 and 7.`); - -let remainder3 = Number(input()); -let remainder5 = Number(input()); -let remainder7 = Number(input()); - -let userAge = (remainder3 * 70 + remainder5 * 21 + remainder7 * 15) % 105; -console.log(`Your age is ${userAge}; that's a good time to start programming!`); - diff --git a/tests/projects/javascript/simple_chatty_bot/stage3/node_modules/sync-input/index.js b/tests/projects/javascript/simple_chatty_bot/stage3/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/simple_chatty_bot/stage3/node_modules/sync-input/index.js +++ b/tests/projects/javascript/simple_chatty_bot/stage3/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/simple_chatty_bot/stage4/main.js b/tests/projects/javascript/simple_chatty_bot/stage4/main.js index 02a38d30..e69de29b 100644 --- a/tests/projects/javascript/simple_chatty_bot/stage4/main.js +++ b/tests/projects/javascript/simple_chatty_bot/stage4/main.js @@ -1,31 +0,0 @@ -const input = require('sync-input'); - -let botName = "Aid"; -let birthYear = "2020"; - -console.log(`Hello! My name is ${botName}. -I was created in ${birthYear}.`); - -let userName = input("Please, remind me your name.\n"); - -console.log(`What a great name you have, ${userName}!`); - -console.log(`Let me guess your age. -Enter remainders of dividing your age by 3, 5 and 7.`); - -let remainder3 = Number(input()); -let remainder5 = Number(input()); -let remainder7 = Number(input()); - -let userAge = (remainder3 * 70 + remainder5 * 21 + remainder7 * 15) % 105; -console.log(`Your age is ${userAge}; that's a good time to start programming!`); - -console.log("Now I will prove to you that I can count to any number you want."); - -let number = Number(input()); - -for (let i = 0; i <= number; i++) { - console.log(i + " !"); -} - -console.log('Completed, have a nice day!'); diff --git a/tests/projects/javascript/simple_chatty_bot/stage4/node_modules/sync-input/index.js b/tests/projects/javascript/simple_chatty_bot/stage4/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/simple_chatty_bot/stage4/node_modules/sync-input/index.js +++ b/tests/projects/javascript/simple_chatty_bot/stage4/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/simple_chatty_bot/stage5/main.js b/tests/projects/javascript/simple_chatty_bot/stage5/main.js index 3a857685..e69de29b 100644 --- a/tests/projects/javascript/simple_chatty_bot/stage5/main.js +++ b/tests/projects/javascript/simple_chatty_bot/stage5/main.js @@ -1,83 +0,0 @@ -const input = require('sync-input'); - -const greet = (botName, birthYear) => { - console.log(`Hello! My name is ${botName}. -I was created in ${birthYear}.`); -}; - -const remindName = () => { - let userName = input("Please, remind me your name.\n"); - console.log(`What a great name you have, ${userName}!`); -}; - -const guessAge = () => { - console.log(`Let me guess your age. -Enter remainders of dividing your age by 3, 5 and 7.`); - let remainder3 = Number(input()); - let remainder5 = Number(input()); - let remainder7 = Number(input()); - - let userAge = (remainder3 * 70 + remainder5 * 21 + remainder7 * 15) % 105; - console.log(`Your age is ${userAge}; that's a good time to start programming!`); -}; - -const count = () => { - console.log("Now I will prove to you that I can count to any number you want."); - - let number = Number(input()); - let current = 0; - - while (current <= number) { - console.log(current + " !"); - current += 1; - } - -}; - -const testSkills = () => { - console.log("Let's test your programming knowledge.") - - while (true) { - let question = Number(input(`Why do we use methods? - 1. To repeat a statement multiple times. - 2. To decompose a program into several small subroutines. - 3. To determine the execution time of a program. - 4. To interrupt the execution of a program.`)) - - if (question === 2) { - console.log('Completed, have a nice day!') - break - } else - console.log("Please, try again.") - } -}; - -const endProgram = () => { - console.log('Congratulations, have a nice day!'); -}; - -const main = () => { - let botName = "Aid"; - let birthYear = "2020"; - - greet(botName, birthYear); - remindName(); - guessAge(); - count(); - testSkills(); - endProgram(); -}; - -main(); - - - - - - - - - - - - diff --git a/tests/projects/javascript/simple_chatty_bot/stage5/node_modules/sync-input/index.js b/tests/projects/javascript/simple_chatty_bot/stage5/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/simple_chatty_bot/stage5/node_modules/sync-input/index.js +++ b/tests/projects/javascript/simple_chatty_bot/stage5/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/zookeeper/stage1/main.js b/tests/projects/javascript/zookeeper/stage1/main.js index 3b5961df..e69de29b 100644 --- a/tests/projects/javascript/zookeeper/stage1/main.js +++ b/tests/projects/javascript/zookeeper/stage1/main.js @@ -1,7 +0,0 @@ -console.log( -"I love animals!\n"+ -"Let's check on the animals...\n"+ -"The deer looks fine.\n"+ -"The bat looks happy.\n"+ - "The lion looks healthy." -); diff --git a/tests/projects/javascript/zookeeper/stage2/main.js b/tests/projects/javascript/zookeeper/stage2/main.js index e6b6429a..e69de29b 100644 --- a/tests/projects/javascript/zookeeper/stage2/main.js +++ b/tests/projects/javascript/zookeeper/stage2/main.js @@ -1,20 +0,0 @@ -console.log(` -Switching on the camera in the camel habitat... - ___.-''''-. -/___ @ | -',,,,. | _.'''''''._ - ' | / \\ - | \\ _.-' \\ - | '.-' '-. - | ', - | '', - ',,-, ':; - ',,| ;,, ,' ;; - ! ; !'',,,',',,,,'! ; ;: - : ; ! ! ! ! ; ; :; - ; ; ! ! ! ! ; ; ;, - ; ; ! ! ! ! ; ; - ; ; ! ! ! ! ; ; - ;,, !,! !,! ;,; - /_I L_I L_I /_I -Look at that! Our little camel is sunbathing!`); diff --git a/tests/projects/javascript/zookeeper/stage2/node_modules/sync-input/index.js b/tests/projects/javascript/zookeeper/stage2/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/zookeeper/stage2/node_modules/sync-input/index.js +++ b/tests/projects/javascript/zookeeper/stage2/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/zookeeper/stage3/main.js b/tests/projects/javascript/zookeeper/stage3/main.js index 724c83fe..e69de29b 100644 --- a/tests/projects/javascript/zookeeper/stage3/main.js +++ b/tests/projects/javascript/zookeeper/stage3/main.js @@ -1,129 +0,0 @@ -const input = require('sync-input'); - -const camel =` -Switching on the camera in the camel habitat... - ___.-''''-. -/___ @ | -',,,,. | _.'''''''._ - ' | / \\ - | \\ _.-' \\ - | '.-' '-. - | ', - | '', - ',,-, ':; - ',,| ;,, ,' ;; - ! ; !'',,,',',,,,'! ; ;: - : ; ! ! ! ! ; ; :; - ; ; ! ! ! ! ; ; ;, - ; ; ! ! ! ! ; ; - ; ; ! ! ! ! ; ; - ;,, !,! !,! ;,; - /_I L_I L_I /_I -Look at that! Our little camel is sunbathing!`; - -const lion = ` -Switching on the camera in the lion habitat... - ,w. - ,YWMMw ,M , - _.---.._ __..---._.'MMMMMw,wMWmW, - _.-"" ''' YP"WMMMMMMMMMb, - .-' __.' .' MMMMW^WMMMM; - _, .'.-'"; \`, /\` .--"" :MMM[==MWMW^; - ,mM^" ,-'.' / ; ; / , MMMMb_wMW" @\\ -,MM:. .'.-' .' ; \`\\ ; \`, MMMMMMMW \`"=./\`-, -WMMm__,-'.' / _.\\ F'''-+,, ;_,_.dMMMMMMMM[,_ / \`=_} -"^MP__.-' ,-' _.--"" \`-, ; \\ ; ;MMMMMMMMMMW^\`\`; __| - / .' ; ; ) )\`{ \\ \`"^W^\`, \\ : - / .' / ( .' / Ww._ \`. \`" - / Y, \`, \`-,=,_{ ; MMMP\`""-, \`-._.-, - (--, ) \`,_ / \`) \\/"") ^" \`-, -;"\\: -The lion is roaring!`; - -const deer = ` -Switching on the camera in the deer habitat... - /| |\\ -\`__\\\\ //__' - || || - \\__\`\\ |'__/ - \`_\\\\ //_' - _.,:---;,._ - \\_: :_/ - |@. .@| - | | - ,\\.-./ \\ - ;;\`-' \`---__________-----.-. - ;;; \\_\\ - ';;; | - ; | ; - \\ \\ \\ | / - \\_, \\ / \\ |\\ - |';| |,,,,,,,,/ \\ \\ \\_ - | | | \\ / | - \\ \\ | | / \\ | - | || | | | | | - | || | | | | | - | || | | | | | - |_||_| |_| |_| - /_//_/ /_/ /_/ -Our 'Bambi' looks hungry. Let's go to feed it!`; - -const goose = ` -Switching on the camera in the goose habitat... - - _ - ,-"" "". - ,' ____ \`. - ,' ,' \`. \`._ - (\`. _..--.._ ,' ,' \\ \\ - (\`-.\\ .-"" ""' / ( d _b - (\`._ \`-"" ,._ ( \`-( \\ - <_ \` ( <\`< \\ \`-._\\ - <\`- (__< < : - (__ (_<_< ; - \`------------------------------------------ -The goose is staring intently at you... Maybe it's time to change the channel?`; - -const bat = ` -Switching on the camera in the bat habitat... -_________________ _________________ - ~-. \\ |\\___/| / .-~ - ~-. \\ / o o \\ / .-~ - > \\\\ W // < - / /~---~\\ \\ - /_ | | _\\ - ~-. | | .-~ - ; \\ / i - /___ /\\ /\\ ___\\ - ~-. / \\_/ \\ .-~ - V V -This bat looks like it’s doing fine.`; - -const rabbit = ` -Switching on the camera in the rabbit habitat... - , - /| __ - / | ,-~ / - Y :| // / - | jj /( .^ - >-"~"-v" - / Y - jo o | - ( ~T~ j - >._-' _./ - / "~" | - Y _, | - /| ;-"~ _ l -/ l/ ,-"~ \\ -\\//\\/ .- \\ - Y / Y - l I ! - ]\\ _\\ /"\\ -(" ~----( ~ Y. ) -It looks like we will soon have more rabbits!`; - -let index = Number(input("Which habitat \\# do you need?")); - -const habitat = [camel, lion, deer, goose, bat, rabbit ]; - -console.log(`${habitat[index]} ----\nYou've reached the end of the program. To check another habitat, please restart the watcher.`) diff --git a/tests/projects/javascript/zookeeper/stage3/node_modules/sync-input/index.js b/tests/projects/javascript/zookeeper/stage3/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/zookeeper/stage3/node_modules/sync-input/index.js +++ b/tests/projects/javascript/zookeeper/stage3/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/javascript/zookeeper/stage4/main.js b/tests/projects/javascript/zookeeper/stage4/main.js index dac0a9a1..e69de29b 100644 --- a/tests/projects/javascript/zookeeper/stage4/main.js +++ b/tests/projects/javascript/zookeeper/stage4/main.js @@ -1,134 +0,0 @@ -const input = require('sync-input'); - -const camel =` -Switching on the camera in the camel habitat... - ___.-''''-. -/___ @ | -',,,,. | _.'''''''._ - ' | / \\ - | \\ _.-' \\ - | '.-' '-. - | ', - | '', - ',,-, ':; - ',,| ;,, ,' ;; - ! ; !'',,,',',,,,'! ; ;: - : ; ! ! ! ! ; ; :; - ; ; ! ! ! ! ; ; ;, - ; ; ! ! ! ! ; ; - ; ; ! ! ! ! ; ; - ;,, !,! !,! ;,; - /_I L_I L_I /_I -Look at that! Our little camel is sunbathing!`; - -const lion = ` -Switching on the camera in the lion habitat... - ,w. - ,YWMMw ,M , - _.---.._ __..---._.'MMMMMw,wMWmW, - _.-"" ''' YP"WMMMMMMMMMb, - .-' __.' .' MMMMW^WMMMM; - _, .'.-'"; \`, /\` .--"" :MMM[==MWMW^; - ,mM^" ,-'.' / ; ; / , MMMMb_wMW" @\\ -,MM:. .'.-' .' ; \`\\ ; \`, MMMMMMMW \`"=./\`-, -WMMm__,-'.' / _.\\ F'''-+,, ;_,_.dMMMMMMMM[,_ / \`=_} -"^MP__.-' ,-' _.--"" \`-, ; \\ ; ;MMMMMMMMMMW^\`\`; __| - / .' ; ; ) )\`{ \\ \`"^W^\`, \\ : - / .' / ( .' / Ww._ \`. \`" - / Y, \`, \`-,=,_{ ; MMMP\`""-, \`-._.-, - (--, ) \`,_ / \`) \\/"") ^" \`-, -;"\\: -The lion is roaring!`; - -const deer = ` -Switching on the camera in the deer habitat... - /| |\\ -\`__\\\\ //__' - || || - \\__\`\\ |'__/ - \`_\\\\ //_' - _.,:---;,._ - \\_: :_/ - |@. .@| - | | - ,\\.-./ \\ - ;;\`-' \`---__________-----.-. - ;;; \\_\\ - ';;; | - ; | ; - \\ \\ \\ | / - \\_, \\ / \\ |\\ - |';| |,,,,,,,,/ \\ \\ \\_ - | | | \\ / | - \\ \\ | | / \\ | - | || | | | | | - | || | | | | | - | || | | | | | - |_||_| |_| |_| - /_//_/ /_/ /_/ -Our 'Bambi' looks hungry. Let's go to feed it!`; - -const goose = ` -Switching on the camera in the goose habitat... - - _ - ,-"" "". - ,' ____ \`. - ,' ,' \`. \`._ - (\`. _..--.._ ,' ,' \\ \\ - (\`-.\\ .-"" ""' / ( d _b - (\`._ \`-"" ,._ ( \`-( \\ - <_ \` ( <\`< \\ \`-._\\ - <\`- (__< < : - (__ (_<_< ; - \`------------------------------------------ -The goose is staring intently at you... Maybe it's time to change the channel?`; - -const bat = ` -Switching on the camera in the bat habitat... -_________________ _________________ - ~-. \\ |\\___/| / .-~ - ~-. \\ / o o \\ / .-~ - > \\\\ W // < - / /~---~\\ \\ - /_ | | _\\ - ~-. | | .-~ - ; \\ / i - /___ /\\ /\\ ___\\ - ~-. / \\_/ \\ .-~ - V V -This bat looks like it’s doing fine.`; - -const rabbit = ` -Switching on the camera in the rabbit habitat... - , - /| __ - / | ,-~ / - Y :| // / - | jj /( .^ - >-"~"-v" - / Y - jo o | - ( ~T~ j - >._-' _./ - / "~" | - Y _, | - /| ;-"~ _ l -/ l/ ,-"~ \\ -\\//\\/ .- \\ - Y / Y - l I ! - ]\\ _\\ /"\\ -(" ~----( ~ Y. ) -It looks like we will soon have more rabbits!`; - -const habitat = [camel, lion, deer, goose, bat, rabbit ]; - -while (true) { - let propmt = input("Enter the habitat: "); - if (propmt === "exit") { - console.log("See you later!") - break; - } else { - console.log(habitat[propmt]) - } -} diff --git a/tests/projects/javascript/zookeeper/stage4/node_modules/sync-input/index.js b/tests/projects/javascript/zookeeper/stage4/node_modules/sync-input/index.js index 89b3ba63..e69de29b 100644 --- a/tests/projects/javascript/zookeeper/stage4/node_modules/sync-input/index.js +++ b/tests/projects/javascript/zookeeper/stage4/node_modules/sync-input/index.js @@ -1,35 +0,0 @@ -const fs = require('fs'); - -const carriageReturn = '\r'.charCodeAt(0); -const newLine = '\n'.charCodeAt(0); - -function input(prompt) { - const fd = process.stdin.fd; - - const buf = Buffer.alloc(1); - let str = '', character, read; - - if (prompt) { - process.stdout.write(prompt); - } - - while (true) { - read = fs.readSync(fd, buf, 0, 1); - character = buf[0]; - - if (character === carriageReturn) { - continue - } - - if (character === newLine) { - fs.closeSync(fd); - break; - } - - str += String.fromCharCode(character); - } - - return str; -} - -module.exports = input; diff --git a/tests/projects/python/coffee_machine/stage1/machine/coffee_machine.py b/tests/projects/python/coffee_machine/stage1/machine/coffee_machine.py index 9217884a..e69de29b 100644 --- a/tests/projects/python/coffee_machine/stage1/machine/coffee_machine.py +++ b/tests/projects/python/coffee_machine/stage1/machine/coffee_machine.py @@ -1,8 +0,0 @@ -# Write your code here -print("""Starting to make a coffee -Grinding coffee beans -Boiling water -Mixing boiled water with crushed coffee beans -Pouring coffee into the cup -Pouring some milk into the cup -Coffee is ready!""") diff --git a/tests/projects/python/coffee_machine/stage2/machine/coffee_machine.py b/tests/projects/python/coffee_machine/stage2/machine/coffee_machine.py index f3ff8f2c..e69de29b 100644 --- a/tests/projects/python/coffee_machine/stage2/machine/coffee_machine.py +++ b/tests/projects/python/coffee_machine/stage2/machine/coffee_machine.py @@ -1,18 +0,0 @@ -# Write your code here -# print("""Starting to make a coffee -# Grinding coffee beans -# Boiling water -# Mixing boiled water with crushed coffee beans -# Pouring coffee into the cup -# Pouring some milk into the cup -# Coffee is ready!""") -print("Write how many cups of coffee you will need:") -cups = int(input()) - -water = cups * 200 -milk = cups * 50 -beans = cups * 15 -print(f"for {cups} cups of coffee you will need:") -print(f"{water} ml of water") -print(f"{milk} ml of milk") -print(f"{beans} g of coffee beans") diff --git a/tests/projects/python/coffee_machine/stage3/machine/coffee_machine.py b/tests/projects/python/coffee_machine/stage3/machine/coffee_machine.py index 1d73eddd..e69de29b 100644 --- a/tests/projects/python/coffee_machine/stage3/machine/coffee_machine.py +++ b/tests/projects/python/coffee_machine/stage3/machine/coffee_machine.py @@ -1,29 +0,0 @@ -# Write your code here -water_amount = int(input('Write how many ml of water the coffee machine has:')) -milk_amount = int(input('Write how many ml of milk the coffee machine has:')) -coffee_amount = int(input('Write how many grams of coffee beans the coffee machine has:')) -N = int(water_amount / 200) -if N > milk_amount / 50: - N = int(milk_amount / 50) -if N > coffee_amount / 15: - N = int(coffee_amount / 15) -number_cups = int(input("Write how many cups of coffee you will need: ")) -if number_cups == N: - print("Yes, I can make that amount of coffee") -elif N > number_cups: - print("Yes, I can make that amount of coffee (and even ", N-1," more than that)") -else: - print("No, I can make only ", N," cups of coffee") -#print("""Starting to make a coffee -#Grinding coffee beans -#Boiling water -#Mixing boiled water with crushed coffee beans -#Pouring coffee into the cup -#Pouring some milk into the cup -#Coffee is ready!""") -# -# -#print("For ", number_cups, " cups of coffee you will need:") -#print(200 * number_cups, " ml of water") -#print(50 * number_cups, " ml of milk") -#print(15 * number_cups, " g of coffee beans") \ No newline at end of file diff --git a/tests/projects/python/coffee_machine/stage4/machine/coffee_machine.py b/tests/projects/python/coffee_machine/stage4/machine/coffee_machine.py index d020838a..e69de29b 100644 --- a/tests/projects/python/coffee_machine/stage4/machine/coffee_machine.py +++ b/tests/projects/python/coffee_machine/stage4/machine/coffee_machine.py @@ -1,61 +0,0 @@ -water = 400 -milk = 540 -beans = 120 -cups = 9 -money = 550 - -def machine_status(): - print(f'''The coffee machine has: - {water} of water - {milk} of milk - {beans} of coffee beans - {cups} of disposable cups - {money} of money''') - -machine_status() - -action = input("Write action (buy, fill, take):\n") - -if action == 'buy': - typ = int(input("What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino:\n")) - if typ == 1: - water -= 250 - beans -= 16 - money += 4 - cups -= 1 - elif typ == 2: - water -= 350 - milk -= 75 - beans -= 20 - money += 7 - cups -= 1 - else: - water -= 200 - milk -= 100 - beans -= 12 - money += 6 - cups -= 1 -elif action == 'fill': - water += int(input("Write how many ml of water do you want to add:\n")) - milk += int(input("Write how many ml of milk do you want to add:\n")) - beans += int(input("Write how many grams of coffee beans do you want to add:\n")) - cups += int(input("Write how many disposable cups of coffee do you want to add:\n")) -elif action == 'take': - print(f"I gave you ${money}") - money = 0 - -machine_status() - -""" s_water = int(input("Write how many ml of water the coffee machine has:\n")) -s_milk = int(input("Write how many ml of milk the coffee machine has:\n")) -s_beans = int(input("Write how many grams of coffee beans the coffee machine has:\n")) - -cups_max = min([(s_water // 200), (s_milk // 50), (s_beans // 15)]) -cups = int(input("Write how many cups of coffee you will need:\n")) - -if cups_max == cups: - print("Yes, I can make that amount of coffee") -elif cups_max > cups: - print(f"Yes, I can make that amount of coffee (and even {cups_max - cups} more than that)") -else: - print(f"No, I can make only {cups_max} cups of coffee") """ \ No newline at end of file diff --git a/tests/projects/python/coffee_machine/stage5/machine/coffee_machine.py b/tests/projects/python/coffee_machine/stage5/machine/coffee_machine.py index 50975b9d..e69de29b 100644 --- a/tests/projects/python/coffee_machine/stage5/machine/coffee_machine.py +++ b/tests/projects/python/coffee_machine/stage5/machine/coffee_machine.py @@ -1,113 +0,0 @@ -# ACTIONS -BUY = "buy" -FILL = "fill" -TAKE = "take" -REMAINING = "remaining" -EXIT_ = "exit" - -# COFFEE PRICES -# 0 - water, 1 - milk, 2 - beans, 4 - cus, 5 - cost -ESPRESSO_NEEDS = [250, 0, 16, 1, 4] -LATTE_NEEDS = [350, 75, 20, 1, 7] -CAPPUCCINO_NEEDS = [200, 100, 12, 1, 6] -# INITIAL MACHINE STATE -machine_state = [400, 540, 120, 9, 550] -machine_desc = ["water", "milk", "coffee beans", "disposable cups", "money"] - - -def print_machine_state(): - print("The coffee machine has:") - for i in range(len(machine_state)): - print(machine_state[i], "of " + machine_desc[i]) - - -def action_handle(user_action_def): - if user_action_def == BUY: - return buy_coffee() - elif user_action_def == FILL: - return fill_machine(machine_state) - elif user_action_def == TAKE: - return take_money(machine_state) - elif user_action_def == REMAINING: - return print_machine_state() - - -def buy_coffee(): - print("What do you want to buy? " - + "1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu:") - user_choice = input() - if user_choice == "back": - return False - else: - user_choice = int(user_choice) - - if not check_resources(user_choice): - return False - if user_choice == 1: - change_machine_state(machine_state, ESPRESSO_NEEDS) - elif user_choice == 2: - change_machine_state(machine_state, LATTE_NEEDS) - elif user_choice == 3: - change_machine_state(machine_state, CAPPUCCINO_NEEDS) - - -def check_resources(user_choice): - if user_choice == 1: - for i in range(len(machine_state)): - if machine_state[i] < ESPRESSO_NEEDS[i]: - print("Sorry, not enough " + machine_desc[i] + "!") - return False - elif user_choice == 2: - for i in range(len(machine_state)): - if machine_state[i] < LATTE_NEEDS[i]: - print("Sorry, not enough " + machine_desc[i] + "!") - return False - elif user_choice == 3: - for i in range(len(machine_state)): - if machine_state[i] < CAPPUCCINO_NEEDS[i]: - print("Sorry, not enough " + machine_desc[i] + "!") - return False - else: - print("Unknown case!") - return False - - print("I have enough resources, making you a coffee!") - return True - - -def change_machine_state(machine, coffee_cost): - for i in range(len(machine)-1): - machine[i] -= coffee_cost[i] - # print(machine[i]) - # add money - machine[len(machine)-1] += coffee_cost[len(machine)-1] - - -def fill_machine(machine): - print("Write how many ml of water do you want to add:") - fill_water = int(input()) - print("Write how many ml of milk do you want to add:") - fill_milk = int(input()) - print("Write how many grams of coffee beans do you want to add:") - fill_beans = int(input()) - print("Write how many disposable cups of coffee do you want to add:") - fill_cups = int(input()) - - machine[0] += fill_water - machine[1] += fill_milk - machine[2] += fill_beans - machine[3] += fill_cups - - -def take_money(machine): - print("I gave you $" + str(machine[4])) - machine[4] = 0 - - -while True: - print() - print("Write action (buy, fill, take, remaining, exit):") - user_action = input() - if user_action == EXIT_: - break - action_handle(user_action) diff --git a/tests/projects/shell/coffee_machine/stage1/main.sh b/tests/projects/shell/coffee_machine/stage1/main.sh index 80a9e955..e69de29b 100644 --- a/tests/projects/shell/coffee_machine/stage1/main.sh +++ b/tests/projects/shell/coffee_machine/stage1/main.sh @@ -1,7 +0,0 @@ -echo Starting to make a coffee -echo Grinding coffee beans -echo Boiling water -echo Mixing boiled water with crushed coffee beans -echo Pouring coffee into the cup -echo Pouring some milk into the cup -echo Coffee is ready! \ No newline at end of file diff --git a/tests/projects/shell/coffee_machine/stage1_ex/main.sh b/tests/projects/shell/coffee_machine/stage1_ex/main.sh index a481e0a1..e69de29b 100644 --- a/tests/projects/shell/coffee_machine/stage1_ex/main.sh +++ b/tests/projects/shell/coffee_machine/stage1_ex/main.sh @@ -1 +0,0 @@ -ech \ No newline at end of file diff --git a/tests/projects/shell/coffee_machine/stage1_wa/main.sh b/tests/projects/shell/coffee_machine/stage1_wa/main.sh index 3b701b6d..e69de29b 100644 --- a/tests/projects/shell/coffee_machine/stage1_wa/main.sh +++ b/tests/projects/shell/coffee_machine/stage1_wa/main.sh @@ -1 +0,0 @@ -echo 12123123 diff --git a/tests/projects/shell/coffee_machine/stage2/main.sh b/tests/projects/shell/coffee_machine/stage2/main.sh index 17240c59..e69de29b 100644 --- a/tests/projects/shell/coffee_machine/stage2/main.sh +++ b/tests/projects/shell/coffee_machine/stage2/main.sh @@ -1,6 +0,0 @@ -echo Write how many cups of coffee you will need: -read -r cups -echo "For $cups cups of coffee you will need:" -echo "$((cups * 200)) ml of water" -echo "$((cups * 50)) ml of milk" -echo "$((cups * 15)) g of coffee beans"