TuomoNieminen / Helsinki-Open-Data-Science

A DataCamp course for the University of Helsinki
https://www.datacamp.com/courses/helsinki-open-data-science
11 stars 10 forks source link

Tests not working #2

Open emmakarolina opened 6 years ago

emmakarolina commented 6 years ago

Chapter 3: In "Creating a factor variable" tests cause errors, they need to be modified. Currently there are no tests used in the chapter.

gdrouard commented 2 years ago

One test_function added but need to track the error message directly from datacamp as no error message has been detected in the script. Datacamp message :

Incorrect Submission Your code contains an error that you should fix: Error: factors are not allowed

gdrouard commented 2 years ago

Several things were checked and the problem seems to persist. However, this could be because the quantile() function does not take the crim variable as numeric (while it is apparently numeric). The latest commit is supposed to fix this and remove an unnecessary test_function. Need to be built on Datacamp teach for confirmation.