Skip to content
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 Heapsort tests #110

Open
leto opened this issue Oct 3, 2016 · 7 comments
Open

Add Heapsort tests #110

leto opened this issue Oct 3, 2016 · 7 comments

Comments

@leto
Copy link
Owner

leto commented Oct 3, 2016

We could use some actual tests in t/Heapsort.t

@NielsKornerup
Copy link

NielsKornerup commented Oct 3, 2016

I currently do not know any Perl, but would be willing to learn enough to make some Heapsort tests. Would it be viable to generate random lists and compare the result to the sort function? I see that you already have tests for that.

@leto
Copy link
Owner Author

leto commented Oct 3, 2016

Just to clarify, this issue requires Perl, not Go.

Basically you can convert the GSL heapsort tests from C to Perl:

http://git.savannah.gnu.org/cgit/gsl.git/tree/sort/test_heapsort.c

You don't have to support all the options/tests that they have. Just having at least one test for each heapsort function is good enough.

@hchienjo
Copy link

hchienjo commented Jan 2, 2017

I have been assigned this module as part of the PRC and I would like to work on this issue.

@leto
Copy link
Owner Author

leto commented Jan 3, 2017

@hchienjo sounds great! Are you able to clone the Math::GSL git repo and build the code + run the tests? If so, do they pass? You will need SWIG 2.0.8 or greater (which is not a dependency if you just install the CPAN module, which has generated code in it). Let me know if you need help.

@hchienjo
Copy link

hchienjo commented Jan 4, 2017

I have already cloned the repo, was waiting for a go ahead sign from you before I really get into work.

@leto
Copy link
Owner Author

leto commented Jan 4, 2017

@hchienjo ok, go for it!

@hchienjo
Copy link

I have decided to start small with this pr #138 as I go over the use of swig and especially type conversions. I am still interested in fixing this but it will take more time as I work on the type conversions. I had thought that in order to fix this issue, only tests are required but I see that I will need to work on Heapsort.i (correct me if I am wrong). I will ping you with more details as soon as I begin add typemaps for void [] and compiling.

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

No branches or pull requests

3 participants