PageRenderTime 42ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/python/li_carrays_runme.py

#
Python | 9 lines | 6 code | 3 blank | 0 comment | 1 complexity | 11af7a1b1afa7b2ec04de0100abf576d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. from li_carrays import *
  2. d = doubleArray(10)
  3. d[0] = 7
  4. d[5] = d[0] + 3
  5. if d[5] + d[0] != 17:
  6. raise RuntimeError