Skip to content

Fix presumption in comparision used by 'sum', 'extend', and 'roles' exercises#108

Open
Antony74 wants to merge 5 commits into
senecajs:masterfrom
Antony74:master
Open

Fix presumption in comparision used by 'sum', 'extend', and 'roles' exercises#108
Antony74 wants to merge 5 commits into
senecajs:masterfrom
Antony74:master

Conversation

@Antony74

Copy link
Copy Markdown

This fixes #106 "Sum Verification Problem"

In fact, it's not just the "sum" problem that is broken, but also "extend" and "roles".

The solution comparision relies on the output of the exercise being identical to the output of the official solution. However, seneca responds with various "meta" fields, such as the timestamps "start" and "end" which can be expected to be different with every call. Presumably these particular "meta" fields did not exist at the time the tutorial was written. To restore desired function and correctly compare the results we pick just the fields from the 'meta' object that do stay the same.

I have sucessfully completed the course, and as such believe I have removed all the bugs preventing students from doing so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sum verification problem

1 participant