passagemath-repl 10.5.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- passagemath_repl-10.5.1.data/scripts/sage-cachegrind +25 -0
- passagemath_repl-10.5.1.data/scripts/sage-callgrind +16 -0
- passagemath_repl-10.5.1.data/scripts/sage-cleaner +230 -0
- passagemath_repl-10.5.1.data/scripts/sage-coverage +327 -0
- passagemath_repl-10.5.1.data/scripts/sage-eval +14 -0
- passagemath_repl-10.5.1.data/scripts/sage-fixdoctests +710 -0
- passagemath_repl-10.5.1.data/scripts/sage-inline-fortran +12 -0
- passagemath_repl-10.5.1.data/scripts/sage-ipynb2rst +50 -0
- passagemath_repl-10.5.1.data/scripts/sage-ipython +16 -0
- passagemath_repl-10.5.1.data/scripts/sage-massif +25 -0
- passagemath_repl-10.5.1.data/scripts/sage-notebook +267 -0
- passagemath_repl-10.5.1.data/scripts/sage-omega +25 -0
- passagemath_repl-10.5.1.data/scripts/sage-preparse +302 -0
- passagemath_repl-10.5.1.data/scripts/sage-run +27 -0
- passagemath_repl-10.5.1.data/scripts/sage-run-cython +10 -0
- passagemath_repl-10.5.1.data/scripts/sage-runtests +9 -0
- passagemath_repl-10.5.1.data/scripts/sage-startuptime.py +163 -0
- passagemath_repl-10.5.1.data/scripts/sage-valgrind +34 -0
- passagemath_repl-10.5.1.dist-info/METADATA +77 -0
- passagemath_repl-10.5.1.dist-info/RECORD +162 -0
- passagemath_repl-10.5.1.dist-info/WHEEL +5 -0
- passagemath_repl-10.5.1.dist-info/top_level.txt +1 -0
- sage/all__sagemath_repl.py +119 -0
- sage/doctest/__init__.py +4 -0
- sage/doctest/__main__.py +236 -0
- sage/doctest/all.py +4 -0
- sage/doctest/check_tolerance.py +261 -0
- sage/doctest/control.py +1727 -0
- sage/doctest/external.py +534 -0
- sage/doctest/fixtures.py +383 -0
- sage/doctest/forker.py +2665 -0
- sage/doctest/marked_output.py +102 -0
- sage/doctest/parsing.py +1708 -0
- sage/doctest/parsing_test.py +79 -0
- sage/doctest/reporting.py +733 -0
- sage/doctest/rif_tol.py +124 -0
- sage/doctest/sources.py +1657 -0
- sage/doctest/test.py +584 -0
- sage/doctest/tests/1second.rst +4 -0
- sage/doctest/tests/99seconds.rst +4 -0
- sage/doctest/tests/abort.rst +5 -0
- sage/doctest/tests/atexit.rst +7 -0
- sage/doctest/tests/fail_and_die.rst +6 -0
- sage/doctest/tests/initial.rst +15 -0
- sage/doctest/tests/interrupt.rst +7 -0
- sage/doctest/tests/interrupt_diehard.rst +14 -0
- sage/doctest/tests/keyboardinterrupt.rst +11 -0
- sage/doctest/tests/longtime.rst +5 -0
- sage/doctest/tests/nodoctest +5 -0
- sage/doctest/tests/random_seed.rst +4 -0
- sage/doctest/tests/show_skipped.rst +18 -0
- sage/doctest/tests/sig_on.rst +9 -0
- sage/doctest/tests/simple_failure.rst +8 -0
- sage/doctest/tests/sleep_and_raise.rst +106 -0
- sage/doctest/tests/tolerance.rst +31 -0
- sage/doctest/util.py +750 -0
- sage/interfaces/cleaner.py +48 -0
- sage/interfaces/quit.py +163 -0
- sage/misc/all__sagemath_repl.py +51 -0
- sage/misc/banner.py +235 -0
- sage/misc/benchmark.py +221 -0
- sage/misc/classgraph.py +134 -0
- sage/misc/copying.py +22 -0
- sage/misc/cython.py +694 -0
- sage/misc/dev_tools.py +745 -0
- sage/misc/edit_module.py +304 -0
- sage/misc/explain_pickle.py +3079 -0
- sage/misc/gperftools.py +361 -0
- sage/misc/inline_fortran.py +212 -0
- sage/misc/messaging.py +86 -0
- sage/misc/pager.py +21 -0
- sage/misc/profiler.py +179 -0
- sage/misc/python.py +70 -0
- sage/misc/remote_file.py +53 -0
- sage/misc/sage_eval.py +249 -0
- sage/misc/sage_input.py +3621 -0
- sage/misc/sagedoc.py +1742 -0
- sage/misc/sh.py +38 -0
- sage/misc/trace.py +90 -0
- sage/repl/__init__.py +16 -0
- sage/repl/all.py +15 -0
- sage/repl/attach.py +625 -0
- sage/repl/configuration.py +186 -0
- sage/repl/display/__init__.py +1 -0
- sage/repl/display/fancy_repr.py +354 -0
- sage/repl/display/formatter.py +318 -0
- sage/repl/display/jsmol_iframe.py +290 -0
- sage/repl/display/pretty_print.py +153 -0
- sage/repl/display/util.py +163 -0
- sage/repl/image.py +302 -0
- sage/repl/inputhook.py +91 -0
- sage/repl/interface_magic.py +298 -0
- sage/repl/interpreter.py +854 -0
- sage/repl/ipython_extension.py +593 -0
- sage/repl/ipython_kernel/__init__.py +1 -0
- sage/repl/ipython_kernel/__main__.py +4 -0
- sage/repl/ipython_kernel/all_jupyter.py +10 -0
- sage/repl/ipython_kernel/install.py +301 -0
- sage/repl/ipython_kernel/interact.py +278 -0
- sage/repl/ipython_kernel/kernel.py +217 -0
- sage/repl/ipython_kernel/widgets.py +466 -0
- sage/repl/ipython_kernel/widgets_sagenb.py +587 -0
- sage/repl/ipython_tests.py +163 -0
- sage/repl/load.py +326 -0
- sage/repl/preparse.py +2218 -0
- sage/repl/prompts.py +90 -0
- sage/repl/rich_output/__init__.py +4 -0
- sage/repl/rich_output/backend_base.py +648 -0
- sage/repl/rich_output/backend_doctest.py +316 -0
- sage/repl/rich_output/backend_emacs.py +151 -0
- sage/repl/rich_output/backend_ipython.py +596 -0
- sage/repl/rich_output/buffer.py +311 -0
- sage/repl/rich_output/display_manager.py +829 -0
- sage/repl/rich_output/example.avi +0 -0
- sage/repl/rich_output/example.canvas3d +1 -0
- sage/repl/rich_output/example.dvi +0 -0
- sage/repl/rich_output/example.flv +0 -0
- sage/repl/rich_output/example.gif +0 -0
- sage/repl/rich_output/example.jpg +0 -0
- sage/repl/rich_output/example.mkv +0 -0
- sage/repl/rich_output/example.mov +0 -0
- sage/repl/rich_output/example.mp4 +0 -0
- sage/repl/rich_output/example.ogv +0 -0
- sage/repl/rich_output/example.pdf +0 -0
- sage/repl/rich_output/example.png +0 -0
- sage/repl/rich_output/example.svg +54 -0
- sage/repl/rich_output/example.webm +0 -0
- sage/repl/rich_output/example.wmv +0 -0
- sage/repl/rich_output/example_jmol.spt.zip +0 -0
- sage/repl/rich_output/example_wavefront_scene.mtl +7 -0
- sage/repl/rich_output/example_wavefront_scene.obj +17 -0
- sage/repl/rich_output/output_basic.py +391 -0
- sage/repl/rich_output/output_browser.py +103 -0
- sage/repl/rich_output/output_catalog.py +54 -0
- sage/repl/rich_output/output_graphics.py +320 -0
- sage/repl/rich_output/output_graphics3d.py +345 -0
- sage/repl/rich_output/output_video.py +231 -0
- sage/repl/rich_output/preferences.py +432 -0
- sage/repl/rich_output/pretty_print.py +339 -0
- sage/repl/rich_output/test_backend.py +201 -0
- sage/repl/user_globals.py +214 -0
- sage/tests/all.py +0 -0
- sage/tests/all__sagemath_repl.py +3 -0
- sage/tests/article_heuberger_krenn_kropf_fsm-in-sage.py +630 -0
- sage/tests/arxiv_0812_2725.py +351 -0
- sage/tests/benchmark.py +1925 -0
- sage/tests/book_schilling_zabrocki_kschur_primer.py +795 -0
- sage/tests/book_stein_ent.py +651 -0
- sage/tests/book_stein_modform.py +558 -0
- sage/tests/cmdline.py +796 -0
- sage/tests/combinatorial_hopf_algebras.py +52 -0
- sage/tests/finite_poset.py +623 -0
- sage/tests/functools_partial_src.py +27 -0
- sage/tests/gosper-sum.py +218 -0
- sage/tests/lazy_imports.py +28 -0
- sage/tests/modular_group_cohomology.py +80 -0
- sage/tests/numpy.py +21 -0
- sage/tests/parigp.py +76 -0
- sage/tests/startup.py +27 -0
- sage/tests/symbolic-series.py +76 -0
- sage/tests/sympy.py +16 -0
- sage/tests/test_deprecation.py +31 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
We test that optional tests are run correctly and the
|
2
|
+
``--show-skipped`` option displays the correctly.
|
3
|
+
We also test case insensitivity::
|
4
|
+
|
5
|
+
sage: 2 + 3
|
6
|
+
5
|
7
|
+
sage: 1 + 1 # Optional --- Gap
|
8
|
+
2
|
9
|
+
sage: 1 - 1 # Known Bug
|
10
|
+
17
|
11
|
+
sage: 4 / 2 # Long Time
|
12
|
+
2
|
13
|
+
sage: 1 - 2 # Optional - Bug
|
14
|
+
16
|
15
|
+
sage: 8 + 1 # Optional
|
16
|
+
9
|
17
|
+
sage: 1 / 0 # Not Tested
|
18
|
+
I'm on fire!
|
@@ -0,0 +1,106 @@
|
|
1
|
+
This is a file used to manually test terminal and interrupt handling::
|
2
|
+
|
3
|
+
sage: for i in range(100): print(i)
|
4
|
+
0
|
5
|
+
1
|
6
|
+
2
|
7
|
+
3
|
8
|
+
4
|
9
|
+
5
|
10
|
+
6
|
11
|
+
7
|
12
|
+
8
|
13
|
+
9
|
14
|
+
10
|
15
|
+
11
|
16
|
+
12
|
17
|
+
13
|
18
|
+
14
|
19
|
+
15
|
20
|
+
16
|
21
|
+
17
|
22
|
+
18
|
23
|
+
19
|
24
|
+
20
|
25
|
+
21
|
26
|
+
22
|
27
|
+
23
|
28
|
+
24
|
29
|
+
25
|
30
|
+
26
|
31
|
+
27
|
32
|
+
28
|
33
|
+
29
|
34
|
+
30
|
35
|
+
31
|
36
|
+
32
|
37
|
+
33
|
38
|
+
34
|
39
|
+
35
|
40
|
+
36
|
41
|
+
37
|
42
|
+
38
|
43
|
+
39
|
44
|
+
40
|
45
|
+
41
|
46
|
+
42
|
47
|
+
43
|
48
|
+
44
|
49
|
+
45
|
50
|
+
46
|
51
|
+
47
|
52
|
+
48
|
53
|
+
49
|
54
|
+
50
|
55
|
+
51
|
56
|
+
52
|
57
|
+
53
|
58
|
+
54
|
59
|
+
55
|
60
|
+
56
|
61
|
+
57
|
62
|
+
58
|
63
|
+
59
|
64
|
+
60
|
65
|
+
61
|
66
|
+
62
|
67
|
+
63
|
68
|
+
64
|
69
|
+
65
|
70
|
+
66
|
71
|
+
67
|
72
|
+
68
|
73
|
+
69
|
74
|
+
70
|
75
|
+
71
|
76
|
+
72
|
77
|
+
73
|
78
|
+
74
|
79
|
+
75
|
80
|
+
76
|
81
|
+
77
|
82
|
+
78
|
83
|
+
79
|
84
|
+
80
|
85
|
+
81
|
86
|
+
82
|
87
|
+
83
|
88
|
+
84
|
89
|
+
85
|
90
|
+
86
|
91
|
+
87
|
92
|
+
88
|
93
|
+
89
|
94
|
+
90
|
95
|
+
91
|
96
|
+
92
|
97
|
+
93
|
98
|
+
94
|
99
|
+
95
|
100
|
+
96
|
101
|
+
97
|
102
|
+
98
|
103
|
+
99
|
104
|
+
sage: import time
|
105
|
+
sage: time.sleep(10)
|
106
|
+
sage: raise RuntimeError # not tested
|
@@ -0,0 +1,31 @@
|
|
1
|
+
These doctests are intentionally failing. They test that, even though
|
2
|
+
a tolerance is specified, not everything is accepted.
|
3
|
+
|
4
|
+
Tolerance but no numbers::
|
5
|
+
|
6
|
+
sage: print(":-(") # abs tol 0.1
|
7
|
+
:-)
|
8
|
+
|
9
|
+
Incorrect amount of numbers::
|
10
|
+
|
11
|
+
sage: print("1.0 2.0 3.0") # abs tol 0.1
|
12
|
+
4.0 5.0
|
13
|
+
sage: print("Hello") # abs tol 0.1
|
14
|
+
1.0
|
15
|
+
sage: print("1.0") # abs tol 0.1
|
16
|
+
Hello
|
17
|
+
|
18
|
+
Good number but ordinary doctest failure::
|
19
|
+
|
20
|
+
sage: print("Hello 1.1") # abs tol 0.1
|
21
|
+
Goodbye 1.0
|
22
|
+
|
23
|
+
Wrong number and ordinary doctest failure (both errors are reported)::
|
24
|
+
|
25
|
+
sage: print("Hello 1.0") # rel tol 1e-6
|
26
|
+
Goodbye 0.999999
|
27
|
+
|
28
|
+
Hiding numbers under ellipsis (...) is not supported::
|
29
|
+
|
30
|
+
sage: print("Hello 1.0") # rel tol 1e-6
|
31
|
+
Hello ...
|