source: tol/tol_tests/tol/Bugzilla/bug_001472/test.tol

devel
Last change on this file was b6e4600, checked in by Víctor de Buen <vdebuen@…>, 15 years ago

Refs #1472

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4359 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/* -*- mode: C++ -*- */
2//////////////////////////////////////////////////////////////////////////////
3// FILE   : test.tol
4// PURPOSE: test for a resolved bug
5//////////////////////////////////////////////////////////////////////////////
6
7//Sets the bugzilla identifier number, your e-mail and the bugŽs summary
8Real bugNum_ =  1471;
9Text email_ = "vdebuen@tol-project.com";
10Text summary_="Reproducción del warning 'TimeSet no acotado'";
11Text link_ = GetTolBugzillaLink(bugNum_);
12
13Real numErr0 = Copy(NError);
14Real numWar0 = Copy(NWarning);
15
16TimeSet CtSem445_glo =
17  D(1)*M(1)+WD(6)-(D(2)+D(3))*M(1)-(D(31)+D(30)+D(29)+D(28)+D(27))*M(12);
18
19Serie ser.0 = CalVar(C, CtSem445_glo);
20
21Set t = {
22  Serie data = ser.0;
23  [[ TimeSet Dating(data) ]]
24};
25Serie ser.1 = SubSer(CalVar(C,CtSem445_glo), y2001, y2012);
26Serie ser.2 = SubSer(CalVar(C,t[1]), y2001, y2012);
27Real Ois.Store([[ser.1,ser.2]],"ser.oza");
28
29Real numErr1 = Copy(NError);
30Real numWar1 = Copy(NWarning);
31
32Set partialResults_ = [[
33  numErr0,numErr1,numWar1,numWar0]];
34
35//This is a messure of the success of the test
36Real quality_ = And(
37  numWar0 == numWar1,
38  numErr1 == numErr0);
39
40//Return the results
41Set resultStr_ =
42  @strTestStatus(summary_, link_, quality_,
43                 "Partial results = "<<partialResults_,
44                 "NO DBServerType", "NO DBServerHost", "NO DBAlias",
45                 email_);
46WriteLn(""<<resultStr_);
47resultStr_;
48
49/* */
50
Note: See TracBrowser for help on using the repository browser.