Example unittests?

WebFreak001 d.forum at webfreak.org
Tue Oct 18 15:24:40 UTC 2022


On Tuesday, 18 October 2022 at 08:26:54 UTC, Petar Kirov 
[ZombineDev] wrote:
> 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.

there is the embedded dpldocs feature for looking at docs in 
full, but for opening it to the side that could indeed be 
implemented, although I don't see much value in that personally 
as it would require the user to manually open that and move it 
somewhere in the UI to even see it regularly.


More information about the Digitalmars-d mailing list