Comments (3)
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.
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.
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)
- Top Secret could use another test HOT 2
- [Dancing Dots] "defines a __using__ macro" test is flakey in certain scenarios HOT 2
- [log-level] Misused trailing question marks HOT 1
- Set up a dead link checker
- Update all Elixir Exercism repos to use Elixir 1.15 and OTP 26 HOT 8
- Adjust all concepts to use charlist sigils
- test_exercises.sh print fails when test output includes `%`
- Lasagna exercise HOT 2
- Why does this repository have two identical github workflows? HOT 6
- Phone Number exercise: difference between tests in exercise folder vs online Test runner HOT 2
- Implement new practice exercise: bottle-song
- Too forgiving test in exercises/concept/german-sysadmin HOT 1
- Mistakes in `bottle-song` example solution typespecs HOT 3
- [RPG Character Sheet] Misleading the 5th question HOT 4
- Building a training set of tags for elixir HOT 22
- Run on Elixir 1.16
- Leap approaches for 48in24
- 48in24 Approaches for Raindrops HOT 2
- Darts exercise hint for sqrt workaround doesn't seem to work HOT 7
- Typo In Take-A-Number Deluxe Step 6 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elixir.