Re: [myhdl-list] Another typo in docs
Brought to you by:
jandecaluwe
From: Henry G. <he...@ca...> - 2015-01-06 19:44:34
|
On 06/01/15 12:10, Christopher Felton wrote: >> I had to replicate some code in the documentation for doctest to work >> >(which just makes it easier to copy and paste, though potentially open >> >to replication errors down the line). The issue seemed to be related to >> >globals in the doctest string, though I've not tried to hard to get to >> >the bottom of it. >> > > I did not find a work around for this. Your approach is nice > to enable doctest but I am worried the maintenance will be a > pain (double code snips). Yeah, I can't work out how else to do it (easily). I noticed the FSM code later on works fine in which the test suite is defined differently - everything is done inside a function. Perhaps this is a solution, though I sort of thought it's quite useful showing a few different ways to work. Cheers, Henry |