-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit tests for Times.c
#118
Comments
@dschlaep Can I changed the return value in interpolate_monthlyValues from void in order to return the interpolated daily values? This is the only way this is testable since as it stands now there are no pointer arguments either. Also the comments above the function say that the daily values are the output. |
I really don't see the problem and thus I don't see the need to change return from a cheap void to an expensive copy of Look for instance at how this function is used in
where inputs = |
I'm not certain that that would actually update |
Well, the second argument is an array, thus it decays into a pointer to the first array element when passed as argument to a function; the works just fine. Read up on your c (e.g., http://c-faq.com/aryptr/aryptrparam.html). However, what you see when you only look at the first array element is a bug in the function, i.e., that it returns 0 for the first day.
|
High priority functions for which to write unit tests:
The text was updated successfully, but these errors were encountered: