File: test_numpy.py

package info (click to toggle)
turing 0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,340 kB
  • sloc: python: 106,582; xml: 101; makefile: 53; sh: 29
file content (13 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/python3

import numpy as np

# turing uses only the function np.arange
# however users of turing rely on all other functions,
# so numpy's own test suite is enough.

# making just some smoke...

assert list(np.arange(0, 10, 2)) == [0, 2, 4, 6, 8]
assert list(np.arange(0, 10, np.pi)) == [0, np.pi, np.pi*2, np.pi*3]