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

crypto-square — tests incorrectly specify how chunking of normalized cipher text works. #55

Closed
jtigger opened this issue Jul 1, 2015 · 8 comments
Assignees

Comments

@jtigger
Copy link
Contributor

jtigger commented Jul 1, 2015

(originally exercism/exercism#2432)

@jtigger
Copy link
Contributor Author

jtigger commented Jul 1, 2015

@kytrinyx — moved this issue to the Java track; feel free to close exercism/exercism#2432.

@jtigger
Copy link
Contributor Author

jtigger commented Jul 1, 2015

@matthewmorgan — thanks for the worked out tests!

@matthewmorgan
Copy link
Contributor

No worries, happy to contribute a little.

@jtigger
Copy link
Contributor Author

jtigger commented Jul 4, 2015

@kytrinyx I notice there is no .json for crypto-square. Seems like the intent behind these files is to prevent this kind of deviation. True?

If so, I don't mind pulling together that data for this problem and reworking the Java version of the problem to use it. If we did the same for the JavaScript and Ruby tracks, we've got a seed of goodness in this corner of the garden. 🏡

@jtigger jtigger changed the title Crypto Square tests for Java version conflict with tests for JS version crypto-square — tests incorrectly specify how chunking of normalized cipher text works. Jul 4, 2015
@kytrinyx
Copy link
Member

kytrinyx commented Jul 4, 2015

True! I was just thinking about that. I'll write up a generator for the Ruby and the Go tracks.

@jtigger jtigger removed their assignment Mar 7, 2016
@matthewmorgan
Copy link
Contributor

@kytrinyx I think we're going to need you to comment on this one. @jtigger and I had another look at this, and it appears #64 made the tests conform to what the majority of the tracks are doing. But, what the majority of the tracks are doing is wrong:

Chunk sizes are wrong: The README gives several examples of how to deal with strings of text that can be made into perfect ( ie n X n ) squares, and those that can be made into imperfect ( r X c ) squares. In all the README examples, the imperfect squares are r X c with the additional constraint that r >= c.

As documented by @jtigger here most of the tracks take a 26-letter string and chunk it in to 5, 5, 4, 4, 4, 4. This is not the behavior specified in the README, and seems like a error from early on that got propagated to many tracks.

There's no json file for this in x-common, but it appears this needs to be changed in many places, not just on the Java track. @jtigger and I are happy to change it here, but what do you think about putting an issue in to x-common?

@kytrinyx
Copy link
Member

kytrinyx commented Mar 7, 2016

Yeah, we need to discuss this in x-common, and make sure everyone agrees on the format, and each track can fix their own issue. I also have a new tool that lets me submit identical issues to all the relevant track repositories.

Would you mind creating the x-common issue?

@matthewmorgan
Copy link
Contributor

matthewmorgan commented Sep 21, 2016

The README for this problem has been updated in exercism/problem-specifications#204, the config.json was updated in exercism/problem-specifications#250, and the test suite on this track conforms with both, so I'm going to close this issue.

Thanks everyone!

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