patchGNU Octave - Patches: patch #8666, adjusting octave examples test to...


patch #8666: adjusting octave examples test to exactly match output

Submitted by:  Carnë Draug <carandraug>
Submitted on:  Sun 03 May 2015 02:39:18 AM UTC  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 06 Jul 2016 04:26:57 PM UTC, comment #3:

No particular action needed here for 4.2.0.

> a tst file will be extracted from the documentation

I don't think that will be necessary. octave-doctest does all that already.

However, I should update this patch: the dev version of doctest will skip the non-semantic examples-as-math-or-diagrams.

Colin Macdonald <cbm>
Wed 06 Jul 2016 02:05:54 PM UTC, comment #2:

Is the plan that a tst file will be extracted from the documentation? If so, I take it that no patch has been written to do that, and so this item can be ignored for the 4.2.0 release. Is that right?

Lachlan Andrew <lachlan>
Project Member
Tue 12 May 2015 10:27:01 PM UTC, comment #1:

I've attached another patch for doctests.

One thing that's clear is @example gets used as an alternative to tex. This is not semantically correct.

I've replaced with @verbatim which sounds about right. But it doesn't indent like @example does. Here I've just moved them in manually roughly the same number of spaces, which doesn't feel right.

What is the right thing to do? New @ environment? New formatting for @verbatim to match the @example intend?

(file #33993)

Colin Macdonald <cbm>
Sun 03 May 2015 02:39:18 AM UTC, original submission:

Putting the patch from the mailing list here otherwise it will be forgotten

Basically, the idea is to use the examples in help text as more tests. This will also prevent our documentation from become out of date with the actual code.

Carnë Draug <carandraug>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #33993:  linear_alg_doctests.diff added by cbm (5KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by cbm (Updated the item)
  • -unavailable- added by carandraug (Submitted the item)
  • -unavailable- added by carandraug (author of the patch)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 12 May 2015 10:27:01 PM UTCcbmAttached File-=>Added linear_alg_doctests.diff, #33993
    Sun 03 May 2015 02:39:18 AM UTCcarandraugAttached File-=>Added svd_plus_misc_doctest.diff, #33884
      Carbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1