[sagenb] 172/179: Include a doctest to make sure #195 does not recur
felix salfelder
felix-guest at moszumanska.debian.org
Tue May 6 12:05:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch master
in repository sagenb.
commit cd4be1170573d8aeb9fafb7412b4679c3db42358
Author: Punarbasu Purkayastha <ppurka at gmail.com>
Date: Mon Feb 3 16:22:45 2014 +0800
Include a doctest to make sure #195 does not recur
---
sagenb/misc/misc.py | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/sagenb/misc/misc.py b/sagenb/misc/misc.py
index 409441d..d3e6ce8 100644
--- a/sagenb/misc/misc.py
+++ b/sagenb/misc/misc.py
@@ -1,6 +1,32 @@
# -*- coding: utf-8 -*-
"""
Miscellaneous Notebook Functions
+
+TESTS:
+
+Check that github issue #195 is fixed::
+
+ sage: from sagenb.misc.misc import mathjax_macros
+ sage: print mathjax_macros
+ ['ZZ: "\\\\Bold{Z}"',
+ 'NN: "\\\\Bold{N}"',
+ 'RR: "\\\\Bold{R}"',
+ 'CC: "\\\\Bold{C}"',
+ 'QQ: "\\\\Bold{Q}"',
+ 'QQbar: "\\\\overline{\\\\QQ}"',
+ 'GF: ["\\\\Bold{F}_{#1}",1]',
+ 'Zp: ["\\\\ZZ_{#1}",1]',
+ 'Qp: ["\\\\QQ_{#1}",1]',
+ 'Zmod: ["\\\\ZZ/#1\\\\ZZ",1]',
+ 'CDF: "\\\\Bold{C}"',
+ 'CIF: "\\\\Bold{C}"',
+ 'CLF: "\\\\Bold{C}"',
+ 'RDF: "\\\\Bold{R}"',
+ 'RIF: "\\\\Bold{I} \\\\Bold{R}"',
+ 'RLF: "\\\\Bold{R}"',
+ 'CFF: "\\\\Bold{CFF}"',
+ 'Bold: ["\\\\mathbf{#1}",1]']
+
"""
#############################################################################
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git
More information about the debian-science-commits
mailing list