+ 2

A bug in the Test Cases in C#?!

There seems to be a bug in the Test Cases for the C# Intermediate Coffee Time project, because the code that earlier worked on the Test Cases doesn't work anymore. Now it fails Test Case 1 and Test Case 3, but still passes Test Case 2.

7th May 2023, 1:36 PM
Jan
Jan - avatar
12 Respostas
+ 4
i just checked it. May be updated test cases.. ! See, may be previously given int type values but output expected contains double type values. So update value to double will solving issue. Not a bug but it is updated.
7th May 2023, 4:01 PM
Jayakrishna 🇮🇳
+ 3
Then how can it is verified? Let me see my side..! In which module it is in old c# course...?
7th May 2023, 3:56 PM
Jayakrishna 🇮🇳
+ 3
Sololearn has broken Code Coach tests before. (Here was another instance: https://www.sololearn.com/post/838036/?ref=app )
8th May 2023, 3:34 AM
Brian
Brian - avatar
+ 2
Can you share the task description and your tried code?
7th May 2023, 2:12 PM
Jayakrishna 🇮🇳
+ 2
No, because it's not my code that is wrong. The task is the last project called Coffee Time in the C# Intermediate course and the project is the same project as in the old C# course. It also fails in the old course which it hasn't done before. It has worked until recently.
7th May 2023, 2:56 PM
Jan
Jan - avatar
+ 2
Okay, it solved the issue changing the types to double for both the old and the new course, but I didn't expect it was an update, I had to solve again. I wonder how many of the old codes that don't work anymore even though the tasks are already solved🤔
7th May 2023, 5:39 PM
Jan
Jan - avatar
+ 2
So it's a bad idea copying the old code to the new course even though the task is the same, without checking if there are changes in the predefined code, but it has worked until now😂😂
7th May 2023, 6:40 PM
Jan
Jan - avatar
+ 2
Why don't you think other way that it is modified to general broad values, from specific values which work on limited data set. In an update only. I just also checked by resetting it that predefined code have double type only. So it is making to try again and find the issue...! Still you can share your thoughts or suggestions to SL directly by mailing : info@sololearn.com.
7th May 2023, 7:45 PM
Jayakrishna 🇮🇳
+ 2
I understand what you mean, but I didn't take notice of specific values etc. since the task was the same as in the old course. I just concentrated about copying the old code, since I had already solved it before. The only mistake was to copy the old predefined code too, and not just copy the code I wrote myself, because then I would have catched the changes in the predefined code, but it was easier and faster doing it that way.
7th May 2023, 8:31 PM
Jan
Jan - avatar
+ 1
Quantum Can confirm. They updated the test or the question, so previous pass is now fail. Easy fix, though. I have also experienced the same thing with other code questions. Good to know Sololearn is making the tests stricter.
9th May 2023, 8:30 AM
Bob_Li
Bob_Li - avatar
+ 1
Bob_Li But it didn't come to my mind that I had to fix it again, because earlier when a code suddenly failed in the Test Cases after the same code earlier passed the Test Cases, then it was because of a bug in the Test Case system, and that's why I didn't try to fix it.
9th May 2023, 8:54 AM
Jan
Jan - avatar
0
Quantum yes, and the indicator was also green, so I also assumed the code has passed until I ran the test. So there is some inconsistency there.
9th May 2023, 9:15 AM
Bob_Li
Bob_Li - avatar