It's UWAweek 47

help2200

This forum is provided to promote discussion amongst students enrolled in CITS2200 Data Structures and Algorithms.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 176 articles.
Currently 11 other people reading this forum.


 UWA week 20 (1st semester, week 11) ↓
SVG not supported

Login to reply

👍?
helpful
8:57pm Sun 19th May, ANONYMOUS

Hi, I just have a question with the additional data values that are given in the files for lab6 particularly testcases_trains_planes for the 1st problem. Are we meant to write testing code to test for these values or should it just past what was given in the original testing code in this case test_trains_plane.py, when we test the code will you test it with test_trains_plane.py, or testcases_trains_planes. If its with test_trains_plane.py, are we safe to comment out this function def test_randoms(self): cases_dir = Path('testcases_trains_planes') for case_file in cases_dir.iterdir(): trains, planes, expected = self.__read_problem(case_file) expected.sort() received = trains_planes(trains, planes) received.sort() msg = f'failed test case {case_file.name}' self.assertEqual(received, expected, msg=msg) since this is the additional values given. sorry just a bit confused. Thank you and kind regards.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy