Skip to content

Error while calculatin "tiina's final points" in Programming exercise: Who cheated, version 2 #97

@GMCoriolano

Description

@GMCoriolano

While checking this exercise with the tool TestMyCode, Tiina's final point is checked to 36 instead of 40, which it should be. The error is the following:

Test failed
WhoCheated2: test3_list_content
Following items were incorrect or missing from the dictionary: {'tiina': 36}. Now dictionary was {'arto': 40, 'erkki': 45, 'matti': 43, 'jyrki': 41, 'teemu': 43, 'virpi': 39, 'esko': 45, 'kjell': 47, 'luukas': 40, 'maija': 40, 'anna': 45, 'markus': 35, 'kotivalo': 43, 'emilia': 42, 'johannes': 39, 'antti': 41, 'justiina': 44, 'uolevi': 34, 'kalle': 46, 'liisa': 42, 'matteus': 30, 'tiina': 40, 'henrik': 37, 'jenna': 38} and correct answer is {'matti': 43, 'erkki': 45, 'antti': 41, 'emilia': 42, 'henrik': 37, 'arto': 40, 'esko': 45, 'kjell': 47, 'jyrki': 41, 'teemu': 43, 'tiina': 36, 'jenna': 38, 'virpi': 39, 'kalle': 46, 'maija': 40, 'uolevi': 34, 'anna': 45, 'liisa': 42, 'kotivalo': 43, 'justiina': 44, 'matteus': 30, 'markus': 35, 'luukas': 40, 'johannes': 39}

I believe that the actual csv in the server could be wrong. I modified the local csv to match the result, but when uploading it server check says it is wrong. So eventually I hardcoded it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions