Code Monkey home page Code Monkey logo

Comments (4)

elmq0022 avatar elmq0022 commented on July 18, 2024 1

I can update the tests to use the stdlib qsort. We just need a custom sort function for the struct with text/string and number of occurrences. That shouldn't be too bad to implement. TBH I just wanted to see some traction on the issue before doing the work. I'll try to open a PR tonight.

from c.

wolf99 avatar wolf99 commented on July 18, 2024

Can confirm that the check function the tests use has a simple loop that implicitly expects the same order the expected output is given in.

https://github.com/exercism/c/blob/main/exercises%2Fpractice%2Fword-count%2Ftest_word_count.c#L29

Option could either be to sort both the result and expected results to some same ordering, or just to improve this loop to not expect any order.

from c.

elmq0022 avatar elmq0022 commented on July 18, 2024

Sorry about the delay. I'll try to look at any feedback on #932 as soon as possible. Thankfully this is a rather small PR.

from c.

elmq0022 avatar elmq0022 commented on July 18, 2024

closed by #932

from c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.