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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 636 - (hide annotations)
Thu Mar 23 09:46:31 2006 UTC (13 years, 10 months ago) by robwdcock
Original Path: branches/ROBW_XPLATFORM/escript/test/CompareFuncs.c
File MIME type: text/plain
File size: 1984 byte(s)
Clean up test into single test suite and only one SConscript file so it is easier to maintain.
Note:
+ Use the command line options on tests in order to run only one of them if you need to
+ THIS DOESN'T WORK YET: I've not merged the tests, that will follow shortly
+ I do hope this merges with the changes on the trunk!

1 jgs 82 /*
2     *****************************************************************************
3     * *
4     * COPYRIGHT ACcESS - All Rights Reserved *
5     * *
6     * This software is the property of ACcESS. No part of this code *
7     * may be copied in any form or by any means without the expressed written *
8     * consent of ACcESS. Copying, use or modification of this software *
9     * by any unauthorised person is illegal unless that person has a software *
10     * license agreement with ACcESS. *
11     * *
12     *****************************************************************************
13     */
14     #include "CompareFuncs.h"
15    
16     /*
17     * Return true if all of the calls match the expected values.
18     * Return false if results don't match.
19     */
20    
21     int compareTypeCode(struct escriptDataC* data, int typeResult)
22     {
23     int result=0;
24     result+=(getFunctionSpaceType(data)==typeResult);
25     return result;
26     }
27    
28     int compareNumSamples(struct escriptDataC* data, int numDataPointsPerSample, int numSamples)
29     {
30     return numSamplesEqual(data,numDataPointsPerSample,numSamples);
31     }
32    
33     int compareIsExpanded(struct escriptDataC* data, int expanded)
34     {
35     return (isExpanded(data)==expanded);
36     }
37    
38     int compareIsEmpty(struct escriptDataC* data, int empty)
39     {
40     return (isEmpty(data)==empty);
41     }
42    
43     /*
44     int comparePointShape(struct escriptDataC* data, int rank, int* dimensions)
45     {
46     return pointShapeEqual(data,rank,dimensions);
47     }
48    
49     int compareSampleDataWrite(struct escriptDataC* data, int sampleNo, double* sampleData)
50     {
51     return (getSampleDataWrite(data,sampleNo)==sampleData);
52     }
53    
54     int compareSampleDataRead(struct escriptDataC* data, int tag, double* sampleData)
55     {
56     int sampleNo=0;
57     return (getSampleDataRead(data,tag,sampleNo)==sampleData);
58     }
59     */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26