Skip to content

Commit 8a1b6fe

Browse files
committed
ch02: automated tests
1 parent 64e8bdc commit 8a1b6fe

File tree

6 files changed

+214
-116
lines changed

6 files changed

+214
-116
lines changed

02-array-seq/README.md

+21
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

02-array-seq/README.rst

-4
This file was deleted.

0 commit comments

Comments
 (0)