/[escript]/trunk/escript/test/CompareFuncs.c
ViewVC logotype

Contents of /trunk/escript/test/CompareFuncs.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1388 - (show annotations)
Fri Jan 11 07:45:58 2008 UTC (11 years, 9 months ago) by trankine
File MIME type: text/plain
File size: 1548 byte(s)
And get the *(&(*&(* name right
1
2 /* $Id$ */
3
4 /*******************************************************
5 *
6 * Copyright 2003-2007 by ACceSS MNRF
7 * Copyright 2007 by University of Queensland
8 *
9 * http://esscc.uq.edu.au
10 * Primary Business: Queensland, Australia
11 * Licensed under the Open Software License version 3.0
12 * http://www.opensource.org/licenses/osl-3.0.php
13 *
14 *******************************************************/
15
16 #include "CompareFuncs.h"
17
18 /*
19 * Return true if all of the calls match the expected values.
20 * Return false if results don't match.
21 */
22
23 int compareTypeCode(struct escriptDataC* data, int typeResult)
24 {
25 int result=0;
26 result+=(getFunctionSpaceType(data)==typeResult);
27 return result;
28 }
29
30 int compareNumSamples(struct escriptDataC* data, int numDataPointsPerSample, int numSamples)
31 {
32 return numSamplesEqual(data,numDataPointsPerSample,numSamples);
33 }
34
35 int compareIsExpanded(struct escriptDataC* data, int expanded)
36 {
37 return (isExpanded(data)==expanded);
38 }
39
40 int compareIsEmpty(struct escriptDataC* data, int empty)
41 {
42 return (isEmpty(data)==empty);
43 }
44
45 /*
46 int comparePointShape(struct escriptDataC* data, int rank, int* dimensions)
47 {
48 return pointShapeEqual(data,rank,dimensions);
49 }
50
51 int compareSampleDataWrite(struct escriptDataC* data, int sampleNo, double* sampleData)
52 {
53 return (getSampleDataWrite(data,sampleNo)==sampleData);
54 }
55
56 int compareSampleDataRead(struct escriptDataC* data, int tag, double* sampleData)
57 {
58 int sampleNo=0;
59 return (getSampleDataRead(data,tag,sampleNo)==sampleData);
60 }
61 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26