File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -263,12 +263,7 @@ def get_raw_doc(function):
263
263
<BLANKLINE>
264
264
@[label se:cos]
265
265
Cosine of @[dollar]x@[dollar].
266
- <BLANKLINE>
267
- <BLANKLINE>
268
- The library syntax is @[startcode]GEN @[startbold]gcos@[endbold](GEN x, long prec)@[endcode].
269
- <BLANKLINE>
270
- <BLANKLINE>
271
- <BLANKLINE>
266
+ ...
272
267
>>> get_raw_doc("abcde")
273
268
Traceback (most recent call last):
274
269
...
Original file line number Diff line number Diff line change @@ -35,9 +35,12 @@ def read_pari_desc():
35
35
36
36
>>> from autogen.parser import read_pari_desc
37
37
>>> D = read_pari_desc()
38
- >>> D["cos"] == { 'class': 'basic',
38
+ >>> Dcos = D["cos"]
39
+ >>> if "description" in Dcos: _ = Dcos.pop("description")
40
+ >>> Dcos.pop("doc").startswith('cosine of $x$.')
41
+ True
42
+ >>> Dcos == { 'class': 'basic',
39
43
... 'cname': 'gcos',
40
- ... 'doc': 'cosine of $x$.',
41
44
... 'function': 'cos',
42
45
... 'help': 'cos(x): cosine of x.',
43
46
... 'prototype': 'Gp',
You can’t perform that action at this time.
0 commit comments