- Timestamp:
- Aug 18, 2015, 10:16:51 AM (11 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- ed6ba49
- Parents:
- da4a80a7
- File:
-
- 1 edited
-
tol_tests/tol/Bugzilla/bug_000730/test.tol (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol_tests/tol/Bugzilla/bug_000730/test.tol
rda4a80a7 r06acc69 3 3 // FILE : test.tol 4 4 // PURPOSE: test for a resolved bug 5 ////////////////////////////////////////////////////////////////////////////// 6 7 Real InstanceExist(Text class, Text name) { 8 If(ObjectExist("NameBlock", name), IsInstanceOf(Eval(name), class), False) 9 }; 10 5 11 ////////////////////////////////////////////////////////////////////////////// 6 12 … … 28 34 @CPrincipal ej1 = [[Real _.a = 1]]; 29 35 30 Real ok.1.1 = ObjectExist("@CPrincipal","ej1");31 Real ok.1.2 = ! ObjectExist("@CDerivada", "ej1");36 Real ok.1.1 = InstanceExist("@CPrincipal","ej1"); 37 Real ok.1.2 = !InstanceExist("@CDerivada", "ej1"); 32 38 33 39 @CDerivada ej2 = [[Real _.a = 1; Real _.b = 2]]; 34 40 35 Real ok.2.1 = ObjectExist("@CPrincipal","ej2");36 Real ok.2.2 = ObjectExist("@CDerivada", "ej2");41 Real ok.2.1 = InstanceExist("@CPrincipal","ej2"); 42 Real ok.2.2 = InstanceExist("@CDerivada", "ej2"); 37 43 38 44 @CDerivada CDerivada.New(Real a, Real b) { … … 46 52 @CDerivada ej3 = { CDerivada.New(Real a = 1; Real b = 2) }; 47 53 48 Real ok.3.1 = ObjectExist("@CPrincipal","ej3");49 Real ok.3.2 = ObjectExist("@CDerivada", "ej3");54 Real ok.3.1 = InstanceExist("@CPrincipal","ej3"); 55 Real ok.3.2 = InstanceExist("@CDerivada", "ej3"); 50 56 51 57 // Si asignamos una referencia a un objeto de @CPrincipal con una … … 56 62 // ej4 no posee los métodos propios de @CDerivada 57 63 58 Real ok.4.1 = ObjectExist("@CPrincipal","ej4");59 Real ok.4.2 = ObjectExist("@CDerivada","ej4");64 Real ok.4.1 = InstanceExist("@CPrincipal","ej4"); 65 Real ok.4.2 = InstanceExist("@CDerivada","ej4"); 60 66 61 67
Note: See TracChangeset
for help on using the changeset viewer.
