-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Collatz conjecture exercise #78
Conversation
There was a problem hiding this 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.
bin/create_fortran_test.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, removed version
There was a problem hiding this 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] |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Adding Collatz conjecture exercise