source: trunk/environments/g4py/tests/test05/test.py

Last change on this file was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

  • Property svn:executable set to *
File size: 843 bytes
Line 
1#!/usr/bin/python
2# ==================================================================
3# python script for Geant4Py test
4#
5#
6# ==================================================================
7import test05
8
9print "AClass(2,3.)"
10a= test05.AClass(2,3.)
11print "a.i=", a.i
12
13print ""
14print "func2(10)=", test05.func2(10)
15print "func2(10,100)=", test05.func2(10, 100)
16
17print ""
18print "func3(1)=", test05.func3(1)
19print "func3(1.)=", test05.func3(1.)
20
21print ""
22print "AMethod()=", a.AMethod()
23print "AMethod(1)=", a.AMethod(1)
24print "AMethod(1,2.)=", a.AMethod(1,2.)
25
26print ""
27print "BMethod()=", a.BMethod()
28print "BMethod(1.)=", a.BMethod(1.)
29
30print ""
31print "CMethod(1)=", a.CMethod(1)
32print "CMethod(1,10.)=", a.CMethod(1,10.)
33print "CMethod(1,10.,100.)=", a.CMethod(1,10.,100.)
34
35print ""
36print "*** ERRORS!! ***"
37a.AMethod(1,2,3)  # error
38
39
40
41
Note: See TracBrowser for help on using the repository browser.