Commits

Anonymous committed 1312f50

Mess with anchor names so it works on bitbucket

  • Participants
  • Parent commits 8474b7e
  • Tags file-exchange-v1

Comments (0)

Files changed (3)

     got     : ans = 5
 not ok 7 - "dicomuid       % FAILS: no wildcard on changing output"
     expected: ans = 1.3.6.1.4.1.9590.100.1.1.944807727511025110.343357080818013
-    got     : ans = 1.3.6.1.4.1.9590.100.1.2.380240475631532521024539401934020846388
+    got     : ans = 1.3.6.1.4.1.9590.100.1.2.282084865731251048027101806490961582150
 ok 8 - "dicomuid       % passes"
 </pre><h2>Expecting an error<a name="5"></a></h2><p>doctest can deal with errors, a little bit.  You might want this to test that your function correctly detects that it is being given invalid parameters.  But if your example will emit other output BEFORE the error message, the current version can't deal with that.  For more info see Issue #4 on the bitbucket site (below).  Warnings are different from errors, and they work fine.</p><pre class="codeoutput">
 % Errors and doctest - demonstrates a current limitation of doctest
 --------
 
 
--  `DOCTEST - Run examples embedded in documentation <#1>`_
--  `Example output <#2>`_
--  `Failure <#3>`_
--  `Defining your expectations <#4>`_
--  `Expecting an error <#5>`_
--  `Limitations <#6>`_
+-  `DOCTEST - Run examples embedded in documentation <#id1>`_
+-  `Example output <#id2>`_
+-  `Failure <#id3>`_
+-  `Defining your expectations <#id4>`_
+-  `Expecting an error <#id5>`_
+-  `Limitations <#id6>`_
 
 DOCTEST - Run examples embedded in documentation
 ------------------------------------------------
         got     : ans = 5
     not ok 7 - "dicomuid       % FAILS: no wildcard on changing output"
         expected: ans = 1.3.6.1.4.1.9590.100.1.1.944807727511025110.343357080818013
-        got     : ans = 1.3.6.1.4.1.9590.100.1.2.380240475631532521024539401934020846388
+        got     : ans = 1.3.6.1.4.1.9590.100.1.2.282084865731251048027101806490961582150
     ok 8 - "dicomuid       % passes"
 
 Expecting an error

File doc/gen_readme.m

 % Using Pandoc, a document converter
 % http://johnmacfarlane.net/pandoc/
 
-! pandoc -o ../README.rst ../README.html
-
+! pandoc -o ../README.almost.rst ../README.html
+! sed -e 's/<#\(.\+\)>/<#id\1>/' ../README.almost.rst > ../README.rst
+! rm ../README.almost.rst
 
 
 % % To convert to Markdown, do this: