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

Contents of /trunk/esys2/bruce/test/python/BruceTest.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 151 - (show annotations)
Thu Sep 22 01:55:00 2005 UTC (17 years, 6 months ago) by jgs
File MIME type: text/x-python
File size: 543 byte(s)
Merge of development branch dev-02 back to main trunk on 2005-09-22

1 # $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 brick = Brick()
29
30 assert (brick.getDim()==3)
31
32 brick.getX()
33
34 rectangle = Rectangle()
35
36 assert (rectangle.getDim()==2)
37
38 rectangle.getX()
39
40 sys.exit(0)

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26