cpp
cpp copied to clipboard
Update test cases
Grab what you want, mark it and make a PR. These exercises need updates:
- [ ] grade school (@Elahi-cs )
- [ ] matching-brackets (@sz245 )
- [ ] protein-translation (@vaeng) #912
- [ ] high-scores (@vaeng) #911
- [x] pangram (@BNAndras) #848
- [x] isogram (@BNAndras) #849
- [x] allergies (@vaeng) #817
- [x] anagram (@CadeMichael) #784
- [x] armstrong-numbers (@ahans) #808
- [x] bank-account (@KevDi) #826
- [x] complex-numbers (@KevDi) #829
- [x] crypto-square (@ahans) #827
- [x] gigasecond (@ahans) #810
- [x] hamming (@ahans) #775 #789
- [x] luhn (@vaeng) #818
- [x] perfect-numbers (@vaeng) #819
- [x] phone-number (@tanno1 ) #870
- [x] prime-factors (@JagritGumber ) #895
- [x] say (@Elahi-cs ) #903
- [x] triangle (@DebbieSan) #787
- [x] word-count (@vaeng) #820
I made a wiki entry on test case updates if you are unsure how to start.
I will start with: allergies
I'd love to help but am not sure what needs updating?
I'd love to help but am not sure what needs updating?
The above exercises need their tests synced from the problem specs.
See docs for
Reading through prior commits on this repo (look for PRs that mention syncing tests) might prove helpful.
@CadeMichael Give me some time, I'll write a how-to for Test Cases and put it in the tracks wiki.
Here is a wiki entry on test case updates to explain what I have been doing so far, maybe it is helpful for you @CadeMichael Do you have additions or suggestions @siebenschlaefer ?
Thank You I'll check it out and try to update for anagram!
Sorry for the slow progress long weekend. I got configlet working and found the testcases that need improvement
[warn] anagram: missing 6 test cases
- detects two anagrams (03eb9bbe-8906-4ea0-84fa-ffe711b52c8b)
- does not detect an anagram if the original word is repeated (630abb71-a94e-4715-8395-179ec1df9f91)
- words are not anagrams of themselves (68934ed0-010b-4ef9-857a-20c9012d1ebf)
- words are not anagrams of themselves even if letter case is partially different (589384f3-4c8a-4e7d-9edc-51c3e5f0c90e)
- words are not anagrams of themselves even if letter case is completely different (ba53e423-7e02-41ee-9ae2-71f91e6d18e6)
- words other than themselves can be anagrams (33d3f67e-fbb9-49d3-a90e-0beb00861da7)
will get a pr done tomorrow
Make sure you pull the data from the problem specs!
Make sure you pull the data from the problem specs!
I think that configlet does this automatically ? from my understanding but I'm not sure.
I think I got it. I found the missing tests id's correspond to the same named tests (as already implemented) with different inputs so I've added the testcases and updated the test.toml. I'm not sure if I should be manually updating the toml with the id's of the testcases added but I don't see an automated way of doing it.
I think the configlet sync
command can update that file.
#784
submitted a PR, sorry for all the questions, I think I got the hang of it and made the updates.
Hi everyone! I will start working on triangle. First time here so checking out the documentation and will try to update.
I submitted a PR for revision [https://github.com/exercism/cpp/pull/787]
Please advise, thank you!
Here is a PR that updates hamming
: #789 I don't think it's worth discussing this on the forum.
Here is an update for armstrong-numbers
: #808
And here goes a sync of gigasecond
: #809
i will take the bank-account
I will also update the complex-numbers
I can take care of pangram and isogram.
I'm taking crypto-square.
I'll grab protein translation for next week.
First time here. I'll take phone-numbers to start.
@vaeng hey, it looks like phone-numbers has all the files and is updated as far as configlet goes, except for when i use configlet sync
. i am running it from ./meta/config.js so i dont believe its an error with directory location, but i do get this "Error: file does not have an exercises
key:" referring to the config.json file, but i have searched through exercism docs and don't believe that there is supposed to be an exercise key in the config.json file? other than this though, it looks like phone-numbers is updated.
new to open source contributions so apologies in advance if these are simple questions.
@tanno1 You are right. I checked the problem spec and there should be 18 cases (4 of the 22 are implementations) and the cpp test file has 18+ tests. One could fix the tests to represent the new layout and sort the test cases to match the requirement, but that is not what configlet complains about.
The "key" sounds like the UUID from the root-folder config.json, but that is set-up correctly as far as I can tell. Maybe @ErikSchierboom knows a bit better what is going on?
(base) anagy@framework:~/Documents/GitHub/exercism-lfe/exercises/practice/allergies/.meta$ ../../../../bin/configlet sync
Updating cached 'problem-specifications' data...
Checking exercises...
Error: file does not have an `exercises` key:
/home/anagy/Documents/GitHub/exercism-lfe/exercises/practice/allergies/.meta/config.json
Configlet is checking the exercise config, not the track config. You need to run that command at the root level repo.
@vaeng synced toml & updated test file for phone-numbers
: #867. lmk if you have q's/suggestions, once finalized, i will start on another.
thanks!
Yep, @BNAndras was right, configlet
needs to be run from the root directory.
@vaeng, see #870 ^, i submitted another pr for phone numbers after reviewing other pr's from this issue. lmk if there is anything i need to change!
Whoops, I forgot about protein-translation. I'll take a look at it later this week and tackle high-scores after that.