Project Functionality test: Basic PlacesΒΆ

Functionality Test - Practice

This practice grader runs a basic functionality test to ensure students have started working on the course project.

The name of the test file describes its purpose. This test focuses on the basic functionality of places being added and processed.

You will need to implement the following functions in order to pass the Basic Places tests:

  • add_place
  • all_places
  • clear_all
  • get_place_coord
  • get_place_count
  • get_place_name
  • get_place_type

The test file is available for students under the directory:
prg1/functionality-compulsory
If the file is missing, update your local repository and pull the latest changes from the course upstream with the following command:
git pull course-upstream main --allow-unrelated-histories

You can execute the test locally as follows:

  1. First, compile the program, either in Qt Creator or in the command prompt:
    qmake; make
  2. Execute the basic places test: testread "functionality-compulsory/test-00-basic-places-in.txt" "functionality-compulsory/test-00-basic-places-out.txt" You can do this either:
    1. In GUI:
      ./prg1
      then type or select the command testread from a dropdown menu and select both in and out files with the file picker, for example, "functionality-compulsory/test-00-basic-places-in.txt" "functionality-compulsory/test-00-basic-places-out.txt"
    2. By initiating the console mode:
      ./prg1 --console
      and then running the testread command.
    3. By saving the above instructions in a file and giving the file as a parameter:
      ./prg1 cmd_file
  3. Question marks (?) in the output of the testread command indicate found differences that must be resolved. With a large enough screen, your output versus the expected one is shown side-by-side.

Warning

Before attempting to grade your Project in Plussa, remember to push your commits to the remote repository. Otherwise, the grader will not find it.

A+ presents the exercise submission form here.