Skip to content

test_oyster - A sample Python package

Sample example:

1
2
3
4
5
6
7
8
9
import numpy as np
from test_oyster import add, sum_1d_array


assert add(1, 3) == 4
assert add(57, 86) == 133

assert sum_1d_array(np.array([1, 2, 3])) == 6
assert sum_1d_array(np.array([5, 3.5, 4.5])) == 13

See our user guide!

Also see our API reference!