Example unittests?

Petar Petar
Tue Oct 18 08:26:54 UTC 2022


On Tuesday, 18 October 2022 at 02:54:56 UTC, WebFreak001 wrote:
> On Monday, 17 October 2022 at 14:11:49 UTC, Steven 
> Schveighoffer wrote:
>> On 10/16/22 11:07 PM, WebFreak001 wrote:
>>
>>> [...]
>>
>> What about showing a limited number of examples, configurable 
>> in the settings? Like show first 2 examples, and you can up 
>> that number if you want.
>>
>> Also, I don't know about the UI possabilities here, but could 
>> you show a limited number of examples with a button to show 
>> the rest?
>>
>> -Steve
>
> the UI by default is quite narrow and allows you to scroll and 
> resize it, it's fairly well to view and doesn't obstruct much. 
> However it's not that well suited to looking at full examples 
> by default.

In VS Code, there's the option to "open preview to the side" for 
various types of documents (e.g. Markdown). Perhaps such option 
would also be useful to show the rendered API docs along with all 
documented unit tests? That could be triggered from button shown 
at the top (or bottom) of the tooltip where the docs are 
displayed.


More information about the Digitalmars-d mailing list