/[escript]/trunk/bruce/test/python/BruceTest.py
ViewVC logotype

Annotation of /trunk/bruce/test/python/BruceTest.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (hide annotations)
Tue Oct 25 01:51:20 2005 UTC (17 years, 5 months ago) by jgs
Original Path: trunk/esys2/bruce/test/python/BruceTest.py
File MIME type: text/x-python
File size: 607 byte(s)
Merge of development branch dev-02 back to main trunk on 2005-10-25

1 jgs 151 # $Id$
2    
3     import os
4     import sys
5    
6     from esys.escript import *
7     from esys.bruce import *
8    
9     """
10    
11     Some simple tests of Bruce.
12    
13     """
14    
15     b = Bruce()
16    
17     assert (b.getDescription()=="Bruce")
18    
19     assert (b.isValidFunctionSpaceType(0))
20     assert (b.isValidFunctionSpaceType(1))
21     assert ( not (b.isValidFunctionSpaceType(2)))
22    
23     assert (b.getContinuousFunctionCode()==0)
24     assert (b.getFunctionCode()==1)
25    
26     assert (b.getDim()==0)
27    
28 jgs 153 brick = Brick(11,11,11,10,10,10)
29 jgs 151
30     assert (brick.getDim()==3)
31    
32     brick.getX()
33 jgs 153 brick.getSize()
34 jgs 151
35 jgs 153 rectangle = Rectangle(11,11,10,10)
36 jgs 151
37     assert (rectangle.getDim()==2)
38    
39     rectangle.getX()
40 jgs 153 rectangle.getSize()
41 jgs 151
42     sys.exit(0)

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26