-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Remove deprecated description field from Sections #1319
Comments
Bummer, I just started using short, descriptive For example, here's some of my test code (with most of the actual code ripped out to focus on the use of
This lets me do something like |
Any word on how we'll be able to get the above functionality when descriptions are removed? |
@capsocrates That is an interesting use case. Would you be ok with the |
That would work for me, yes.
…On Thu, Oct 31, 2019, 08:10 Martin Hořeňovský ***@***.***> wrote:
@capsocrates <https://github.com/capsocrates> That is an interesting use
case. Would you be ok with the SECTION macro being able to take two
arguments, but just ignoring the second one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1319?email_source=notifications&email_token=ACMKPXRO7ALC23SNUC6BXLTQRLRMJA5CNFSM4FG55MZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECX5C2I#issuecomment-548393321>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACMKPXVEVOTBUCBP2HXG77TQRLRMJANCNFSM4FG55MZA>
.
|
Users can still write a description for their sections, but it will no longer be saved as part of the `SectionInfo` struct. This ability has also been added to the documentation. Closes #1319
Description
Like with
TEST_CASE
,SECTON
started out with a separatedescription
field as thename
field was intended to be a hierarchical scheme, and thedescription
the more wordy version.When we dropped the hierarchical naming and the
name
became the wordy fielddescription
fell redundant. ForTEST_CASE
the position is now taken by tags (although it still supports description, too, for now). ForSECTION
it is just dead weight.I've removed any usage of the field internally, and in the test and example code. But the macro argument and member variable of
SectionInfo
are part of the public interface and need to remain for now. They should be considered deprecated.In v3 we will remove the macro argument and
SectionInfo
field altogether.I'll consider adding a deprecation warning in v2 if the field is used.
The text was updated successfully, but these errors were encountered: