File: test_obj_valid.pro

package info (click to toggle)
gnudatalanguage 0.9.9-13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,892 kB
  • sloc: cpp: 167,389; ansic: 9,358; sh: 566; python: 472; makefile: 252; f90: 28
file content (17 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pro test_obj_valid
;
 llist = list(fltarr(4),"hello",2.)
;
; when N_Elements() hack is fixed this won't happen anymore:
; GDL> help,[llist]
;GDLArray line 210 ix=1, sz = 1
;GDLArray line 210 ix=2, sz = 1
;<Expression>    OBJREF    = Array[1]
;
mlist = list("!gdl", "goodbye",findgen(3,4))

if ~(obj_valid(llist) and obj_valid(mlist)) then exit, status=1

print,'SUCCESS'

end