GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ch02: automated tests · FerMatPy/example-code-2e@8a1b6fe

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • 02-array-seq
    • README.md
    • README.rst
    • array-seq.ipynb
    • bisect_demo.py
    • metro_lat_long.py
    • test.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎02-array-seq/README.md‎

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# An Array of Sequences
2+
3+
Sample code for Chapter 2 of _Fluent Python 2e_ by Luciano Ramalho (O'Reilly, 2020)
4+
5+
## Running the tests
6+
7+
### Doctests
8+
9+
Use Python's standard ``doctest`` module, for example:
10+
11+
$ python3 -m doctest bisect_demo.py -v
12+
13+
### Jupyter Notebook
14+
15+
Install ``pytest`` and the ``nbval`` plugin:
16+
17+
$ pip install pytest nbval
18+
19+
Run:
20+
21+
$ pytest --nbval
Collapse file

‎02-array-seq/README.rst‎

Copy file name to clipboardExpand all lines: 02-array-seq/README.rst
-4Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.