Changeset a20d52c in tol


Ignore:
Timestamp:
Jan 4, 2010, 6:11:39 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
b5a47b8
Parents:
4ce7087
Message:

The test must use a global variable instead if it's running in local scope

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol_tests/tol/Bugzilla/bug_000825/test.tol

    r4ce7087 ra20d52c  
    1515  Real numWar0 = Copy(NWarning);
    1616 
    17   Real G = 1;
     17  Real tolerance = Tolerance;
    1818  Set aux =
    1919  {
    20     Real G = 2;
     20    Real Tolerance = 2;
    2121   
    22     [[(Real ::G), G]]
     22    [[(Real ::Tolerance), Tolerance]]
    2323  };
    24   Real ok.1 = aux[1]==1;
     24  Real ok.1 = aux[1]==tolerance;
    2525  Real ok.2 = aux[2]==2;
    2626
    2727  Set aux.fail =
    2828  {
    29     Real G = 2;
     29    Real Tolerance = 2;
    3030    //Esto da un error porque no es posible aplicar el operador de búsqueda
    3131    //global al tipo Anything debido a que es posible crear variables de
    3232    //distinto tipo con el mismo nombre y todas ellas serían aceptables dando
    3333    //lugar a una ambigüedad dificil de resolver sin pérdida de efciciencia.
    34     [[ ::G, G]]
     34    [[ ::Tolerance, Tolerance]]
    3535  };
    3636
Note: See TracChangeset for help on using the changeset viewer.