Giter Club home page Giter Club logo

Comments (3)

kytrinyx avatar kytrinyx commented on September 25, 2024

It's always worthwhile improving the exercises!

The README uses the same description across all the language tracks, which means that we're intentionally vague when it comes to actual data structures, since these vary quite broadly. https://github.com/exercism/x-common/blob/master/palindrome-products.md

However, having more examples and a link to the wiki page would be great.

I'll let the others comment on the suggestion for improving the test, since I don't write elixir.

from elixir.

dalexj avatar dalexj commented on September 25, 2024

I just did this exercise and it took me awhile to figure this out as well. I came here to post an issue to discuss with anyone and this was already here. +1 to making this more clear somehow. I think the first test for this should just show the structure of the return data, for example:

  test "structure from first 2 factors" do
    palindromes = Palindromes.generate(2)
    expected = %{
      1 => [[1, 1]],
      2 => [[1, 2]],
      4 => [[2, 2]]
    }
    assert palindromes == expected
  end

we might want something more but I agree with @mayppong on the return values of this exercise were very confusing.

from elixir.

kytrinyx avatar kytrinyx commented on September 25, 2024

I've posted an issue in x-common about fixing the README. The test suite would need to be fixed here, though, so I'm leaving this issue open.

from elixir.

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.