Reorder custom-set tests to improve flow#257
Conversation
I think this is important. |
|
@ryanplusplus, do you want to make a blazon issue that lets tracks know about this change? |
|
@IanWhitney: Sure, but you'll have to teach me how :) |
|
The main thing to do is write up the issue text. Here's the one I just did for Pangram.
The blazon tool will publish that issue to all tracks that implement Custom Set. Installing blazon isn't that big a deal if your machine is already set up to run Go programs. Mine was not, so I had to do some extra work.
I think blazon runs best if you have your issue text in a file. So, for pangram, I would run
And that would show me the results of a dry-run. Once I was happy with my file and wanted to create the issue for real, I would pass the
If you don't want to do any of the Go stuff, that's fine. I can submit the issue once you've written it. Thanks! |
|
Be sure to read the "tips" section in the blazon readme: https://github.com/exercism/blazon#tips |
|
Thanks @IanWhitney, @kytrinyx. I finally got some time to set up and use blazon and it looks like everything went smoothly. Very neat. |
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
The custom-set exercise is generated using data from x-common repository. fixes #365 fixes #348 references exercism/problem-specifications#257
updated tests for custom-set exercism#328 In the process of updating the tests I ended up simplifying(hopefully) the tests cases. I removed all the extra methods and functions including String which fundamentally changed the tests. I've also added a stub with only the Set type in it, so that the exercise focuses on the set operations rather than defining a set type. This also means that the set type is agreed up front and so there's no need to accomodate all possible types that people could come up with for a set by defining it with something like a string method. Also relevant for reference: exercism/problem-specifications#232 exercism/problem-specifications#257
updated tests for custom-set exercism#328 In the process of updating the tests I ended up simplifying(hopefully) the tests cases. I removed all the extra methods and functions including String which fundamentally changed the tests. I've also added a stub with only the Set type in it, so that the exercise focuses on the set operations rather than how to define the set type. This also means that the set type is agreed up front and so there's no need to accomodate all possible types that people could come up with for a set by defining it with something like a string method. Also relevant for reference: exercism/problem-specifications#232 exercism/problem-specifications#257
updated tests for custom-set exercism#328 for reference: exercism/problem-specifications#232 exercism/problem-specifications#257
updated tests for custom-set exercism#328 for reference: exercism/problem-specifications#232 exercism/problem-specifications#257
updated tests for custom-set exercism#328 for reference: exercism/problem-specifications#232 exercism/problem-specifications#257
updated tests for custom-set exercism#328 for reference: exercism/problem-specifications#232 exercism/problem-specifications#257
updated tests for custom-set exercism#328 for reference: exercism/problem-specifications#232 exercism/problem-specifications#257
updated tests for custom-set exercism#328 for reference: exercism/problem-specifications#232 exercism/problem-specifications#257
Removes tests for nil as content for the buffer Fixes #257
The goal of this change is to ensure that no tests that require set equality in an assertion precede the tests for set equality. This allows each set of tests to introduce as little new functionality as possible (assuming that tests are completed from top to bottom).
For example, the
addtests assert set equality to determine whetheraddis implemented correctly, but these tests precede theequaltests which explicitly test the set equality method. Without this change, set equality and adding new elements to a set are both introduced in theaddtests. After this change, theequaltests precede theaddtests so that set equality is implemented prior to its use in theaddtests.Note that the
equaltests were maintained below thesubsettests to gently encourage set equality to be implemented using subsets (see #232).