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

Collatz conjecture exercise #78

Merged
merged 14 commits into from
Dec 29, 2020

Conversation

pclausen
Copy link
Contributor

Adding Collatz conjecture exercise

Copy link
Contributor

@SaschaMann SaschaMann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is missing a README file. Looks good otherwise.

@@ -119,7 +119,7 @@ def create_test(test_name, json_name):
j = None
with open(json_name) as f:
j = json.load(f)
exercise_version = j['version']
exercise_version = j['version'] if 'version' in j else None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JSON files no longer have versions (see exercism/problem-specifications#1674), so this will always be None.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, removed version

@pclausen pclausen requested a review from SaschaMann December 27, 2020 15:06
Copy link
Contributor

@SaschaMann SaschaMann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments but feel free to merge it as is, too.

@@ -0,0 +1,28 @@
[canonical-tests]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the tests.toml file below seem unrelated to the PR. Merging probably won't cause any issues, just pointing it out in case they were committed by accident.

@@ -0,0 +1,35 @@

! This test was created from E:\nosave\code\gitrepos\pclausen\problem-specifications\exercises\collatz-conjecture\canonical-data.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to strip the first part of the path from this comment as it's specific to your computer.

implicit none

! Test 1: zero steps for one
! UUID 1: 540a3d51-e7a6-47a5-92a3-4ad1838f0bfd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test UUIDs are mostly meant for track tooling. It's best to not expose them to the students and instead only leave the comments.

@pclausen pclausen merged commit 10d5ebc into exercism:master Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants