Questions tagged [testing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
13 views

Rails testing with RSpec double: ActiveRecord::AssociationTypeMismatch:

I am new to RSpec (not very experienced yet with RoR neither!) I am working on a web app where I have a Course model. To create a new Course I need to use Teacher and Student objects. I want to create ...
0
votes
0answers
53 views

When a test didn't passed and the describing cause seams to contradict reality, how to get more specifics about the test?

In this case pset3/tideman one test point says: ":( print_winner prints winner of election when one candidate wins over all others" "print_winner did not print winner of election" despite there it is ...
0
votes
1answer
157 views

Game of Fifteen PSET3: CS50 - won function and check50

Hi I have yet another question about game of fifteen. I seem to have implemented by 'won' function correctly. Before this check50 was running and I was getting a pass for everything, excluding the '...
0
votes
2answers
52 views

What is wrong with my sorting algorithm?

I'm stuck. My program seems to run just fine, but when I run the CS50 check I don't get full results. I think there's something wrong with my sorting algorithm. This is my feedback if I run this ...
2
votes
1answer
183 views

How does check50 works?

I am curious about how check50 works internally. What does it do to make that kind of tests for each program (each pset?). What if I want to implement something like check50? Any advice?
0
votes
0answers
135 views

pset5-Testing load function separately2

I have been trying to test load function separately (Using Zamyla video for some guidance). I have watched this tape several times, but still unable to load function without compiler errors. I am ...
0
votes
1answer
503 views

pset5-testing load function

Ihave been trying to test my load function separately,since I have not implemented other functions,size,check,unload . I have got the following Clang error " expected identifier". I do not know how ...