-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
anagram-exercise-fix: Added contents to the fetch-cobolcheck{,.ps1} files. #156
anagram-exercise-fix: Added contents to the fetch-cobolcheck{,.ps1} files. #156
Conversation
Hello. Thanks for opening a PR on Exercism 🙂 We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in. You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch. If you're interested in learning more about this auto-responder, please read this blog post. Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it. |
@SimaDovakin I've just created and merged #157, which adds a
That way we are certain that all exercises have the same, correct version. |
Thank you. I'll do it |
I guess, I did rebase, but there is some issue with PowerShell test version. It can't run tests properly (as CI says problem with binary search exercise). I have no idea why. Maybe, I did something wrong. |
It looks like it could not download the file:
Could be a GitHub rate limit. |
Seems weird that I can find cobolcheck for the other exercises, but not binary-search. |
@kapitaali Any idea? |
In my experience the cobolcheck files work as intended and there's no need to touch them. It is the COBOL source code that needs to be edited instead. I have had many occasions where Win cobolcheck fails, but then after editing the COBOL source it works. |
When I try to fetch cobolcheck.exe locally (I use PowerShell on Linux) it is fetched to |
I would venture to guess it is not. But can you run the checking in a linux terminal? |
I think it is though. |
I would probably merge this PR and fix CI in a separate PR. |
In a Linux terminal I got some errors which connected to different path separators in Linux and Windows, but magically I can see test results) |
Let's merge this PR and then someone can fix the CI error in a follow-up PR. |
I'm not sure what's wrong but now when I do test.sh on linux it does not fetch it (this used to work out of the box):
|
Hmm.. @kapitaali Did you run it from track's root? I'll try it tomorrow. |
no that's the exercism/cobol/anagram directory, trying to test the exercise |
When I ran Cobolcheck not found, try to fetch it.
curl: (23) Failure writing output to destination
./test.sh: line 16: ./bin/cobolcheck: No such file or directory
COMPILE AND RUN TEST
test.cob:167: warning: alphanumeric literal has zero length; a SPACE will be assumed [-Wothers]
test.cob:214: warning: alphanumeric literal has zero length; a SPACE will be assumed [-Wothers]
test.cob:313: warning: alphanumeric literal has zero length; a SPACE will be assumed [-Wothers]
test.cob:413: warning: alphanumeric literal has zero length; a SPACE will be assumed [-Wothers]
test.cob:435: warning: alphanumeric literal has zero length; a SPACE will be assumed [-Wothers]
test.cob:457: warning: alphanumeric literal has zero length; a SPACE will be assumed [-Wothers]
test.cob:481: warning: alphanumeric literal has zero length; a SPACE will be assumed [-Wothers]
test.cob:505: warning: alphanumeric literal has zero length; a SPACE will be assumed [-Wothers]
TESTSUITE:
Tests for Anagram
PASS: 1. test_no_matches
**** FAIL: 2. test_detect_two_anagrams
EXPECTED <lemons,melons>, WAS <>
PASS: 3. test_does_not_detect_anagram_subsets
**** FAIL: 4. test_detects_anagram
EXPECTED <inlets>, WAS <>
**** FAIL: 5. test_three_anagrams
EXPECTED <gallery,regally,largely>, WAS <>
**** FAIL: 6. test_detects_multiple_anagrams_with_different_case
EXPECTED <Eons,ONES>, WAS <>
PASS: 7. test_does_not_detect_non_anagrams_with_identical_checksum
**** FAIL: 8. test_detects_anagrams_case_insensitively
EXPECTED <Carthorse>, WAS <>
**** FAIL: 9. test_detects_anagram_using_case_insensitive_subject
EXPECTED <carthorse>, WAS <>
**** FAIL: 10. test_detects_anagrams_using_case_insensitive_possible_matches
EXPECTED <Carthorse>, WAS <>
PASS: 11. test_does_not_detect_an_anagram_if_the_original_word_is_repeated
PASS: 12. test_anagrams_must_use_all_letters_exactly_once
PASS: 13. test_words_are_not_anagrams_of_themselves
PASS: 14. test_words_are_not_anagrams_of_themselves_even_if_letter_case_is_partially_diffe
PASS: 15. test_words_are_not_anagrams_of_themselves_even_if_letter_case_is_completely_diff
**** FAIL: 16. test_words_other_than_themselves_can_be_anagrams
EXPECTED <Silent>, WAS <>
16 TEST CASES WERE EXECUTED
8 PASSED
8 FAILED
================================================= Interesting. Some tests are not passed now. |
I reset my solution to anagram on website and then tested my example solution. All tests are passed. |
@kapitaali Maybe, error while fetching cobolcheck occurs because it tries to save cobolcheck to |
Ok but that's not the behavior it used to exhibit. It's supposed to download cobolcheck for each execise separately to its ./bin directory. |
@kapitaali I created PR where I reverted |
Alright we need to approve the PR. |
No description provided.