EFL 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +36 -0
- data/lib/EFL.rb +494 -0
- data/lib/EFL_array.rb +20 -0
- data/lib/EFL_errors.rb +48 -0
- data/lib/EFL_hash.rb +18 -0
- data/lib/EFL_production.rb +49 -0
- data/lib/EFL_regexp.rb +112 -0
- data/lib/EFL_regexp_generator.rb +70 -0
- data/lib/EFL_substitution.rb +221 -0
- data/lib/EFL_syntactic_sugar.rb +67 -0
- data/lib/Hash Doc.doc +0 -0
- data/lib/Limitaciones.txt +3 -0
- data/lib/doc/classes/Generator.html +634 -0
- data/lib/doc/classes/Generator.src/M000008.html +18 -0
- data/lib/doc/classes/Generator.src/M000009.html +18 -0
- data/lib/doc/classes/Generator.src/M000010.html +18 -0
- data/lib/doc/classes/Generator.src/M000011.html +18 -0
- data/lib/doc/classes/Generator.src/M000012.html +18 -0
- data/lib/doc/classes/Generator.src/M000013.html +18 -0
- data/lib/doc/classes/Generator.src/M000014.html +18 -0
- data/lib/doc/classes/Generator.src/M000015.html +18 -0
- data/lib/doc/classes/Generator.src/M000016.html +28 -0
- data/lib/doc/classes/Generator.src/M000017.html +24 -0
- data/lib/doc/classes/Generator.src/M000018.html +157 -0
- data/lib/doc/classes/Generator.src/M000019.html +25 -0
- data/lib/doc/classes/Generator.src/M000020.html +30 -0
- data/lib/doc/classes/Generator.src/M000021.html +32 -0
- data/lib/doc/classes/Generator.src/M000022.html +22 -0
- data/lib/doc/classes/Generator.src/M000023.html +18 -0
- data/lib/doc/classes/Generator.src/M000024.html +27 -0
- data/lib/doc/classes/Generator.src/M000025.html +22 -0
- data/lib/doc/classes/Generator.src/M000026.html +18 -0
- data/lib/doc/classes/Generator.src/M000027.html +27 -0
- data/lib/doc/classes/Regexp.html +271 -0
- data/lib/doc/classes/Regexp.src/M000028.html +37 -0
- data/lib/doc/classes/Regexp.src/M000029.html +29 -0
- data/lib/doc/classes/Regexp.src/M000030.html +32 -0
- data/lib/doc/created.rid +1 -0
- data/lib/doc/files/EFL_rb.html +147 -0
- data/lib/doc/files/EFL_regexp_generator_rb.html +242 -0
- data/lib/doc/files/EFL_regexp_generator_rb.src/M000003.html +27 -0
- data/lib/doc/files/EFL_regexp_generator_rb.src/M000004.html +27 -0
- data/lib/doc/files/EFL_regexp_generator_rb.src/M000005.html +19 -0
- data/lib/doc/files/EFL_regexp_generator_rb.src/M000006.html +20 -0
- data/lib/doc/files/EFL_regexp_generator_rb.src/M000007.html +19 -0
- data/lib/doc/files/EFL_regexp_rb.html +139 -0
- data/lib/doc/files/EFL_syntactic_sugar_rb.html +208 -0
- data/lib/doc/files/EFL_syntactic_sugar_rb.src/M000001.html +29 -0
- data/lib/doc/files/EFL_syntactic_sugar_rb.src/M000002.html +19 -0
- data/lib/doc/fr_class_index.html +28 -0
- data/lib/doc/fr_file_index.html +30 -0
- data/lib/doc/fr_method_index.html +56 -0
- data/lib/doc/index.html +24 -0
- data/tests/Add_Sup_1.rb +223 -0
- data/tests/Add_Sup_1.rb.bak +223 -0
- data/tests/Add_Sup_1_NI.rb +25 -0
- data/tests/Add_Sup_2.rb +142 -0
- data/tests/Add_Sup_2.rb.bak +140 -0
- data/tests/All.rb +2 -0
- data/tests/All_1.rb +7 -0
- data/tests/All_2.rb +7 -0
- data/tests/All_2.rb.bak +5 -0
- data/tests/BeforeAfter.rb +83 -0
- data/tests/Bloques.rb +34 -0
- data/tests/Bloques.rb.bak +34 -0
- data/tests/Complementary.rb +144 -0
- data/tests/ComplementaryZoom.rb +78 -0
- data/tests/Del.rb +126 -0
- data/tests/Dup.rb +55 -0
- data/tests/Dup.rb.bak +54 -0
- data/tests/Error.rb +11 -0
- data/tests/ErrorArgClass.rb +169 -0
- data/tests/ErrorArgClass.rb.bak +158 -0
- data/tests/ErrorCollision.rb +218 -0
- data/tests/ErrorCollision.rb.bak +219 -0
- data/tests/ErrorWithoutDeclaration.rb +60 -0
- data/tests/ErrorWithoutDeclaration.rb.bak +60 -0
- data/tests/Extract.rb +56 -0
- data/tests/ExtractDollar.rb +17 -0
- data/tests/HashTest.rb +54 -0
- data/tests/HashTest.rb.bak +54 -0
- data/tests/Lista Czarnecki/AntiguaInterfaz/List.cpp +75 -0
- data/tests/Lista Czarnecki/AntiguaInterfaz/ListTransformer.rb +69 -0
- data/tests/Lista Czarnecki/AntiguaInterfaz/ListTransformer.rb.bak +100 -0
- data/tests/Lista Czarnecki/AntiguaInterfaz/ejecutame.bat +1 -0
- data/tests/Lista Czarnecki/AntiguaInterfaz/outDir/MyClassList.cpp +75 -0
- data/tests/Lista Czarnecki/AntiguaInterfaz/runme.bat +1 -0
- data/tests/Lista Czarnecki/AntiguaInterfaz/specification1.txt +5 -0
- data/tests/Lista Czarnecki/AntiguaInterfaz/specification2.txt +3 -0
- data/tests/Lista Czarnecki/AntiguaInterfaz/specification3.txt +5 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/List.cpp +75 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/ListTransformer.rb +58 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/ListTransformer.rb.bak +57 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/ejecutame.bat +1 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/outDir/MyClassList.cpp +75 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/outDir/NewClassList.cpp +75 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/specification1.txt +5 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/specification1.txt.bak +5 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/specification2.txt +3 -0
- data/tests/Lista Czarnecki/NuevaInterfaz/specification3.txt +5 -0
- data/tests/Minus.rb +89 -0
- data/tests/Plus.rb.bak +48 -0
- data/tests/REVit.rb +84 -0
- data/tests/RenameTest.rb +46 -0
- data/tests/RenameTest.rb.bak +46 -0
- data/tests/SubCrash.rb +26 -0
- data/tests/SubList.rb.bak +43 -0
- data/tests/archAuxiliares/1.txt +328 -0
- data/tests/archAuxiliares/2.txt +328 -0
- data/tests/archAuxiliares/Bloques/s1.txt +328 -0
- data/tests/archAuxiliares/Copia de Matriz.java +19 -0
- data/tests/archAuxiliares/Gen/Tesis_156_1.lgi +10 -0
- data/tests/archAuxiliares/Gen/Tesis_156_2.lgi +10 -0
- data/tests/archAuxiliares/Gen/t01.txt +328 -0
- data/tests/archAuxiliares/Gen/t01.txt.bak +328 -0
- data/tests/archAuxiliares/Gen/t02.txt +328 -0
- data/tests/archAuxiliares/Gen/t02.txt.bak +328 -0
- data/tests/archAuxiliares/Gen/t03.txt +328 -0
- data/tests/archAuxiliares/Gen/t03.txt.bak +328 -0
- data/tests/archAuxiliares/Gen/t04.txt +328 -0
- data/tests/archAuxiliares/Gen/t04.txt.bak +328 -0
- data/tests/archAuxiliares/Gen/t1.txt +328 -0
- data/tests/archAuxiliares/Gen/t1.txt.bak +328 -0
- data/tests/archAuxiliares/Gen/t2.txt +328 -0
- data/tests/archAuxiliares/Gen/t2.txt.bak +328 -0
- data/tests/archAuxiliares/Gen/t5.txt +328 -0
- data/tests/archAuxiliares/Gen/t9.txt +328 -0
- data/tests/archAuxiliares/Gen/t9.txt.bak +328 -0
- data/tests/archAuxiliares/GenTesis_156_1.lgi +10 -0
- data/tests/archAuxiliares/Matriz.java +74 -0
- data/tests/archAuxiliares/MatrizOut.java +74 -0
- data/tests/archAuxiliares/MatrizOut10.java +68 -0
- data/tests/archAuxiliares/MatrizOut11.java +86 -0
- data/tests/archAuxiliares/MatrizOut2.java +74 -0
- data/tests/archAuxiliares/MatrizOut3.java +74 -0
- data/tests/archAuxiliares/MatrizOut4.java +74 -0
- data/tests/archAuxiliares/MatrizOut5.java +21 -0
- data/tests/archAuxiliares/MatrizOut6.java +21 -0
- data/tests/archAuxiliares/MatrizOut7.java +21 -0
- data/tests/archAuxiliares/MatrizOut8.java +16 -0
- data/tests/archAuxiliares/MatrizOut9.java +86 -0
- data/tests/archAuxiliares/MatrizOut_9.java +86 -0
- data/tests/archAuxiliares/Matriz_1.java +74 -0
- data/tests/archAuxiliares/Matriz_10.java +68 -0
- data/tests/archAuxiliares/Matriz_11.java +86 -0
- data/tests/archAuxiliares/Matriz_2.java +74 -0
- data/tests/archAuxiliares/Matriz_3.java +74 -0
- data/tests/archAuxiliares/Matriz_4.java +74 -0
- data/tests/archAuxiliares/Matriz_5.java +21 -0
- data/tests/archAuxiliares/Matriz_6.java +21 -0
- data/tests/archAuxiliares/Matriz_7.java +21 -0
- data/tests/archAuxiliares/Matriz_8.java +16 -0
- data/tests/archAuxiliares/Matriz_9.java +86 -0
- data/tests/archAuxiliares/Matriz_N_1.java +21 -0
- data/tests/archAuxiliares/Matriz_N_2.java +91 -0
- data/tests/archAuxiliares/N1.txt +18 -0
- data/tests/archAuxiliares/N1_EXPECTED.txt +18 -0
- data/tests/archAuxiliares/N1_OUT.txt +18 -0
- data/tests/archAuxiliares/N2_EXPECTED.txt +18 -0
- data/tests/archAuxiliares/N2_OUT.txt +18 -0
- data/tests/archAuxiliares/N3.txt +23 -0
- data/tests/archAuxiliares/N3_EXPECTED.txt +22 -0
- data/tests/archAuxiliares/N3_OUT.txt +22 -0
- data/tests/archAuxiliares/N4_EXPECTED.txt +10 -0
- data/tests/archAuxiliares/N4_OUT.txt +10 -0
- data/tests/archAuxiliares/N5_OUT.txt +18 -0
- data/tests/archAuxiliares/N6_OUT.txt +18 -0
- data/tests/archAuxiliares/PedidorTerceroWS.jsp +142 -0
- data/tests/archAuxiliares/Tesis_156.lgi +7 -0
- data/tests/archAuxiliares/aspectgen.rb +328 -0
- data/tests/archAuxiliares/aspectgenCopy.rb +328 -0
- data/tests/archAuxiliares/extract_dollar.txt +1 -0
- data/tests/archAuxiliares/minus.txt +26 -0
- data/tests/archAuxiliares/minus_expected_1.txt +26 -0
- data/tests/archAuxiliares/minus_expected_2.txt +26 -0
- data/tests/archAuxiliares/minus_out_1.txt +26 -0
- data/tests/archAuxiliares/minus_out_2.txt +26 -0
- data/tests/archAuxiliares/p1.txt +328 -0
- data/tests/archAuxiliares/p2.txt +328 -0
- data/tests/archAuxiliares/s1.txt +328 -0
- data/tests/archAuxiliares/s2.txt +328 -0
- data/tests/archAuxiliares/s3.txt +328 -0
- data/tests/archAuxiliares/s4.txt +328 -0
- data/tests/archAuxiliares/s5.txt +328 -0
- data/tests/archAuxiliares/s7.txt +328 -0
- data/tests/archAuxiliares/s8.txt +328 -0
- data/tests/archAuxiliares/s9.txt +328 -0
- data/tests/archAuxiliares/text.txt +1 -0
- data/tests/delay.rb +33 -0
- data/tests/delay.rb.bak +33 -0
- data/tests/satisfy.rb +44 -0
- data/tests/satisfy.rb.bak +34 -0
- metadata +252 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>generator (EFL_syntactic_sugar.rb)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File EFL_syntactic_sugar.rb, line 32</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generator</span>(<span class="ruby-identifier">args</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
15
|
+
<span class="ruby-identifier">g</span> = <span class="ruby-constant">Generator</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>
|
17
|
+
<span class="ruby-identifier">args_code</span> = <span class="ruby-value str">''</span>
|
18
|
+
<span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
19
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-node">"'#{value}'"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">String</span>
|
20
|
+
<span class="ruby-identifier">code</span> = <span class="ruby-value str">" def g.\#{key}\n @\#{key}\n end\n \n def g.\#{key}=(val)\n @\#{key} = val\n end\n \n g.\#{key} = \#{value}\n"</span>
|
21
|
+
<span class="ruby-identifier">args_code</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">code</span>
|
22
|
+
}
|
23
|
+
<span class="ruby-identifier">eval</span>(<span class="ruby-identifier">args_code</span>)
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-identifier">g</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
|
26
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">g</span>
|
27
|
+
<span class="ruby-keyword kw">end</span></pre>
|
28
|
+
</body>
|
29
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>o (EFL_syntactic_sugar.rb)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File EFL_syntactic_sugar.rb, line 65</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">o</span>(<span class="ruby-identifier">regular_expression</span>)
|
15
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">regular_expression</span>.<span class="ruby-identifier">dup</span>
|
16
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">o</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
3
|
+
<!DOCTYPE html
|
4
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
5
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
6
|
+
|
7
|
+
<!--
|
8
|
+
|
9
|
+
Classes
|
10
|
+
|
11
|
+
-->
|
12
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
13
|
+
<head>
|
14
|
+
<title>Classes</title>
|
15
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
16
|
+
<link rel="stylesheet" href="rdoc-style.css" type="text/css" />
|
17
|
+
<base target="docwin" />
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<div id="index">
|
21
|
+
<h1 class="section-bar">Classes</h1>
|
22
|
+
<div id="index-entries">
|
23
|
+
<a href="classes/Generator.html">Generator</a><br />
|
24
|
+
<a href="classes/Regexp.html">Regexp</a><br />
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
3
|
+
<!DOCTYPE html
|
4
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
5
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
6
|
+
|
7
|
+
<!--
|
8
|
+
|
9
|
+
Files
|
10
|
+
|
11
|
+
-->
|
12
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
13
|
+
<head>
|
14
|
+
<title>Files</title>
|
15
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
16
|
+
<link rel="stylesheet" href="rdoc-style.css" type="text/css" />
|
17
|
+
<base target="docwin" />
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<div id="index">
|
21
|
+
<h1 class="section-bar">Files</h1>
|
22
|
+
<div id="index-entries">
|
23
|
+
<a href="files/EFL_rb.html">EFL.rb</a><br />
|
24
|
+
<a href="files/EFL_regexp_rb.html">EFL_regexp.rb</a><br />
|
25
|
+
<a href="files/EFL_regexp_generator_rb.html">EFL_regexp_generator.rb</a><br />
|
26
|
+
<a href="files/EFL_syntactic_sugar_rb.html">EFL_syntactic_sugar.rb</a><br />
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</body>
|
30
|
+
</html>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
|
2
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
3
|
+
<!DOCTYPE html
|
4
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
5
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
6
|
+
|
7
|
+
<!--
|
8
|
+
|
9
|
+
Methods
|
10
|
+
|
11
|
+
-->
|
12
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
13
|
+
<head>
|
14
|
+
<title>Methods</title>
|
15
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
16
|
+
<link rel="stylesheet" href="rdoc-style.css" type="text/css" />
|
17
|
+
<base target="docwin" />
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<div id="index">
|
21
|
+
<h1 class="section-bar">Methods</h1>
|
22
|
+
<div id="index-entries">
|
23
|
+
<a href="classes/Generator.html#M000022">+ (Generator)</a><br />
|
24
|
+
<a href="classes/Regexp.html#M000029">- (Regexp)</a><br />
|
25
|
+
<a href="classes/Generator.html#M000025"><< (Generator)</a><br />
|
26
|
+
<a href="classes/Regexp.html#M000028">> (Regexp)</a><br />
|
27
|
+
<a href="classes/Generator.html#M000023">add (Generator)</a><br />
|
28
|
+
<a href="classes/Generator.html#M000024">add? (Generator)</a><br />
|
29
|
+
<a href="classes/Generator.html#M000011">after (Generator)</a><br />
|
30
|
+
<a href="classes/Generator.html#M000010">before (Generator)</a><br />
|
31
|
+
<a href="classes/Generator.html#M000009">del (Generator)</a><br />
|
32
|
+
<a href="classes/Generator.html#M000020">extract (Generator)</a><br />
|
33
|
+
<a href="classes/Generator.html#M000021">extract_dollar (Generator)</a><br />
|
34
|
+
<a href="classes/Generator.html#M000015">gafter (Generator)</a><br />
|
35
|
+
<a href="classes/Generator.html#M000014">gbefore (Generator)</a><br />
|
36
|
+
<a href="classes/Generator.html#M000013">gdel (Generator)</a><br />
|
37
|
+
<a href="classes/Generator.html#M000018">gen (Generator)</a><br />
|
38
|
+
<a href="classes/Generator.html#M000019">gen? (Generator)</a><br />
|
39
|
+
<a href="files/EFL_syntactic_sugar_rb.html#M000001">generator (EFL_syntactic_sugar.rb)</a><br />
|
40
|
+
<a href="classes/Generator.html#M000012">gsub (Generator)</a><br />
|
41
|
+
<a href="files/EFL_regexp_generator_rb.html#M000007">inside_nested_symbols (EFL_regexp_generator.rb)</a><br />
|
42
|
+
<a href="files/EFL_regexp_generator_rb.html#M000006">nested_quotes (EFL_regexp_generator.rb)</a><br />
|
43
|
+
<a href="files/EFL_regexp_generator_rb.html#M000004">nested_symbol (EFL_regexp_generator.rb)</a><br />
|
44
|
+
<a href="files/EFL_regexp_generator_rb.html#M000003">nested_symbols (EFL_regexp_generator.rb)</a><br />
|
45
|
+
<a href="files/EFL_syntactic_sugar_rb.html#M000002">o (EFL_syntactic_sugar.rb)</a><br />
|
46
|
+
<a href="classes/Regexp.html#M000030">o (Regexp)</a><br />
|
47
|
+
<a href="classes/Generator.html#M000016">prod (Generator)</a><br />
|
48
|
+
<a href="classes/Generator.html#M000017">prod? (Generator)</a><br />
|
49
|
+
<a href="files/EFL_regexp_generator_rb.html#M000005">regexp2string (EFL_regexp_generator.rb)</a><br />
|
50
|
+
<a href="classes/Generator.html#M000008">sub (Generator)</a><br />
|
51
|
+
<a href="classes/Generator.html#M000026">sup! (Generator)</a><br />
|
52
|
+
<a href="classes/Generator.html#M000027">sup? (Generator)</a><br />
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
</body>
|
56
|
+
</html>
|
data/lib/doc/index.html
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
5
|
+
|
6
|
+
<!--
|
7
|
+
|
8
|
+
EFL 1.0 - A Ruby implementation of the Exemplar Flexibilization Language
|
9
|
+
|
10
|
+
-->
|
11
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
12
|
+
<head>
|
13
|
+
<title>EFL 1.0 - A Ruby implementation of the Exemplar Flexibilization Language</title>
|
14
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
15
|
+
</head>
|
16
|
+
<frameset rows="20%, 80%">
|
17
|
+
<frameset cols="25%,35%,45%">
|
18
|
+
<frame src="fr_file_index.html" title="Files" name="Files" />
|
19
|
+
<frame src="fr_class_index.html" name="Classes" />
|
20
|
+
<frame src="fr_method_index.html" name="Methods" />
|
21
|
+
</frameset>
|
22
|
+
<frame src="files/EFL_rb.html" name="docwin" />
|
23
|
+
</frameset>
|
24
|
+
</html>
|
data/tests/Add_Sup_1.rb
ADDED
@@ -0,0 +1,223 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require "EFL"
|
3
|
+
|
4
|
+
########################################################
|
5
|
+
# Bateria de pruebas para las funciones add? y sup?
|
6
|
+
#
|
7
|
+
# Ultima actualizacion: 6-10-2004
|
8
|
+
########################################################
|
9
|
+
|
10
|
+
class Add_Sup_1 < Test::Unit::TestCase
|
11
|
+
def setup
|
12
|
+
@g1 = Generator.new
|
13
|
+
@g2 = Generator.new
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_1
|
17
|
+
@g1.gsub(/initialize/, 'constructor')
|
18
|
+
@g2.gsub(/crash/, 'colisi�n')
|
19
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
20
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
21
|
+
assert(@g1.add?(@g2))
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_2
|
25
|
+
@g1.gsub(/initialize/, 'constructor')
|
26
|
+
@g2.gsub(/crash/, 'colisi�n')
|
27
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
28
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
29
|
+
assert(@g2.add?(@g1))
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_3
|
33
|
+
@g1.gsub(/initialize/, 'constructor')
|
34
|
+
@g2.gsub(/crash/, 'colisi�n')
|
35
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
36
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
37
|
+
assert(@g1.sup?(@g2))
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_4
|
41
|
+
@g1.gsub(/initialize/, 'constructor')
|
42
|
+
@g2.gsub(/crash/, 'colisi�n')
|
43
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
44
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
45
|
+
assert(@g2.sup?(@g1))
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_5
|
49
|
+
@g1.gsub(/initialize/, 'constructor')
|
50
|
+
@g2.gsub(/crash/, 'colisi�n')
|
51
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
52
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
53
|
+
assert(@g1.add?(@g2))
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_6
|
57
|
+
@g1.gsub(/initialize/, 'constructor')
|
58
|
+
@g2.gsub(/crash/, 'colisi�n')
|
59
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
60
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
61
|
+
assert(@g2.add?(@g1))
|
62
|
+
end
|
63
|
+
|
64
|
+
def test_7
|
65
|
+
@g1.gsub(/initialize/, 'constructor')
|
66
|
+
@g2.gsub(/crash/, 'colisi�n')
|
67
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
68
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
69
|
+
assert(@g1.sup?(@g2))
|
70
|
+
end
|
71
|
+
|
72
|
+
def test_8
|
73
|
+
@g1.gsub(/initialize/, 'constructor')
|
74
|
+
@g2.gsub(/crash/, 'colisi�n')
|
75
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
76
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
77
|
+
assert(@g2.sup?(@g1))
|
78
|
+
end
|
79
|
+
|
80
|
+
def test_9
|
81
|
+
@g1.gsub(/initialize/, 'constructor')
|
82
|
+
@g2.gsub(/crash/, 'colisi�n')
|
83
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
84
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt')
|
85
|
+
assert(!@g1.add?(@g2))
|
86
|
+
end
|
87
|
+
|
88
|
+
def test_10
|
89
|
+
@g1.gsub(/initialize/, 'constructor')
|
90
|
+
@g2.gsub(/crash/, 'colisi�n')
|
91
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
92
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt')
|
93
|
+
assert(!@g2.add?(@g1))
|
94
|
+
end
|
95
|
+
|
96
|
+
def test_11
|
97
|
+
@g1.gsub(/initialize/, 'constructor')
|
98
|
+
@g2.gsub(/crash/, 'colisi�n')
|
99
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
100
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt')
|
101
|
+
assert(@g1.sup?(@g2))
|
102
|
+
end
|
103
|
+
|
104
|
+
def test_12
|
105
|
+
@g1.gsub(/initialize/, 'constructor')
|
106
|
+
@g2.gsub(/crash/, 'colisi�n')
|
107
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
108
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt')
|
109
|
+
assert(@g1.sup?(@g2))
|
110
|
+
end
|
111
|
+
|
112
|
+
def test_13
|
113
|
+
@g1.gsub(/initialize/, 'constructor', 's1')
|
114
|
+
@g2.gsub(/crash/, 'colisi�n', 's2')
|
115
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
116
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
117
|
+
assert(!@g1.add?(@g2))
|
118
|
+
end
|
119
|
+
|
120
|
+
def test_14
|
121
|
+
@g1.gsub(/initialize/, 'constructor', 's1')
|
122
|
+
@g2.gsub(/crash/, 'colisi�n', 's2')
|
123
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
124
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
125
|
+
assert(!@g2.add?(@g1))
|
126
|
+
end
|
127
|
+
|
128
|
+
def test_15
|
129
|
+
@g1.gsub(/initialize/, 'constructor', 's1')
|
130
|
+
@g2.gsub(/crash/, 'colisi�n', 's2')
|
131
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
132
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
133
|
+
assert(!@g1.sup?(@g2))
|
134
|
+
end
|
135
|
+
|
136
|
+
def test_16
|
137
|
+
@g1.gsub(/initialize/, 'constructor', 's1')
|
138
|
+
@g2.gsub(/crash/, 'colisi�n', 's2')
|
139
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
140
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
141
|
+
assert(!@g2.sup?(@g1))
|
142
|
+
end
|
143
|
+
|
144
|
+
def test_17
|
145
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
146
|
+
@g2.gsub(/name/, 'texto2')
|
147
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
148
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
149
|
+
assert(@g1.add?(@g2))
|
150
|
+
end
|
151
|
+
|
152
|
+
def test_18
|
153
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
154
|
+
@g2.gsub(/name/, 'texto2')
|
155
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
156
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
157
|
+
assert(@g2.add?(@g1))
|
158
|
+
end
|
159
|
+
|
160
|
+
def test_19
|
161
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
162
|
+
@g2.gsub(/name/, 'texto2')
|
163
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
164
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
165
|
+
assert(@g1.sup?(@g2))
|
166
|
+
end
|
167
|
+
|
168
|
+
def test_20
|
169
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
170
|
+
@g2.gsub(/name/, 'texto2')
|
171
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
172
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
173
|
+
assert(@g2.sup?(@g1))
|
174
|
+
end
|
175
|
+
|
176
|
+
def test_21
|
177
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
178
|
+
@g2.gsub(/name/, 'texto2')
|
179
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
180
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
181
|
+
assert(!@g1.add?(@g2))
|
182
|
+
end
|
183
|
+
|
184
|
+
def test_22
|
185
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
186
|
+
@g2.gsub(/name/, 'texto2')
|
187
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
188
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
189
|
+
assert(!@g2.add?(@g1))
|
190
|
+
end
|
191
|
+
|
192
|
+
def test_23
|
193
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
194
|
+
@g2.gsub(/name/, 'texto2')
|
195
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
196
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
197
|
+
assert(@g2.sup?(@g1))
|
198
|
+
end
|
199
|
+
|
200
|
+
def test_24
|
201
|
+
@g1.gsub(/initialize\(name/, 'texto1', 's1')
|
202
|
+
@g2.gsub(/name/, 'texto2', 's1')
|
203
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
204
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
205
|
+
assert(@g2.sup?(@g1))
|
206
|
+
end
|
207
|
+
|
208
|
+
def test_25
|
209
|
+
@g1.gsub(/initialize\(name/, 'texto1', 's1')
|
210
|
+
@g2.gsub(/name/, 'texto2', 's2')
|
211
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
212
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
213
|
+
assert(!@g2.sup?(@g1))
|
214
|
+
end
|
215
|
+
|
216
|
+
def test_26
|
217
|
+
@g1.gsub(/initialize\(name/, 'texto1', 's1')
|
218
|
+
@g2.gsub(/name/, 'texto2', 's2')
|
219
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
220
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
221
|
+
assert(!@g1.sup?(@g2))
|
222
|
+
end
|
223
|
+
end
|
@@ -0,0 +1,223 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require "EFL.rb"
|
3
|
+
|
4
|
+
########################################################
|
5
|
+
# Bateria de pruebas para las funciones add? y sup?
|
6
|
+
#
|
7
|
+
# Ultima actualizacion: 6-10-2004
|
8
|
+
########################################################
|
9
|
+
|
10
|
+
class Add_Sup_1 < Test::Unit::TestCase
|
11
|
+
def setup
|
12
|
+
@g1 = Generator.new
|
13
|
+
@g2 = Generator.new
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_1
|
17
|
+
@g1.gsub(/initialize/, 'constructor')
|
18
|
+
@g2.gsub(/crash/, 'colisi�n')
|
19
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
20
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
21
|
+
assert(@g1.add?(@g2))
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_2
|
25
|
+
@g1.gsub(/initialize/, 'constructor')
|
26
|
+
@g2.gsub(/crash/, 'colisi�n')
|
27
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
28
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
29
|
+
assert(@g2.add?(@g1))
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_3
|
33
|
+
@g1.gsub(/initialize/, 'constructor')
|
34
|
+
@g2.gsub(/crash/, 'colisi�n')
|
35
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
36
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
37
|
+
assert(@g1.sup?(@g2))
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_4
|
41
|
+
@g1.gsub(/initialize/, 'constructor')
|
42
|
+
@g2.gsub(/crash/, 'colisi�n')
|
43
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
44
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
45
|
+
assert(@g2.sup?(@g1))
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_5
|
49
|
+
@g1.gsub(/initialize/, 'constructor')
|
50
|
+
@g2.gsub(/crash/, 'colisi�n')
|
51
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
52
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
53
|
+
assert(@g1.add?(@g2))
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_6
|
57
|
+
@g1.gsub(/initialize/, 'constructor')
|
58
|
+
@g2.gsub(/crash/, 'colisi�n')
|
59
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
60
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
61
|
+
assert(@g2.add?(@g1))
|
62
|
+
end
|
63
|
+
|
64
|
+
def test_7
|
65
|
+
@g1.gsub(/initialize/, 'constructor')
|
66
|
+
@g2.gsub(/crash/, 'colisi�n')
|
67
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
68
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
69
|
+
assert(@g1.sup?(@g2))
|
70
|
+
end
|
71
|
+
|
72
|
+
def test_8
|
73
|
+
@g1.gsub(/initialize/, 'constructor')
|
74
|
+
@g2.gsub(/crash/, 'colisi�n')
|
75
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
76
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
77
|
+
assert(@g2.sup?(@g1))
|
78
|
+
end
|
79
|
+
|
80
|
+
def test_9
|
81
|
+
@g1.gsub(/initialize/, 'constructor')
|
82
|
+
@g2.gsub(/crash/, 'colisi�n')
|
83
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
84
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt')
|
85
|
+
assert(!@g1.add?(@g2))
|
86
|
+
end
|
87
|
+
|
88
|
+
def test_10
|
89
|
+
@g1.gsub(/initialize/, 'constructor')
|
90
|
+
@g2.gsub(/crash/, 'colisi�n')
|
91
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
92
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt')
|
93
|
+
assert(!@g2.add?(@g1))
|
94
|
+
end
|
95
|
+
|
96
|
+
def test_11
|
97
|
+
@g1.gsub(/initialize/, 'constructor')
|
98
|
+
@g2.gsub(/crash/, 'colisi�n')
|
99
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
100
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt')
|
101
|
+
assert(@g1.sup?(@g2))
|
102
|
+
end
|
103
|
+
|
104
|
+
def test_12
|
105
|
+
@g1.gsub(/initialize/, 'constructor')
|
106
|
+
@g2.gsub(/crash/, 'colisi�n')
|
107
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
108
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt')
|
109
|
+
assert(@g1.sup?(@g2))
|
110
|
+
end
|
111
|
+
|
112
|
+
def test_13
|
113
|
+
@g1.gsub(/initialize/, 'constructor', 's1')
|
114
|
+
@g2.gsub(/crash/, 'colisi�n', 's2')
|
115
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
116
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
117
|
+
assert(!@g1.add?(@g2))
|
118
|
+
end
|
119
|
+
|
120
|
+
def test_14
|
121
|
+
@g1.gsub(/initialize/, 'constructor', 's1')
|
122
|
+
@g2.gsub(/crash/, 'colisi�n', 's2')
|
123
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
124
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
125
|
+
assert(!@g2.add?(@g1))
|
126
|
+
end
|
127
|
+
|
128
|
+
def test_15
|
129
|
+
@g1.gsub(/initialize/, 'constructor', 's1')
|
130
|
+
@g2.gsub(/crash/, 'colisi�n', 's2')
|
131
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
132
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
133
|
+
assert(!@g1.sup?(@g2))
|
134
|
+
end
|
135
|
+
|
136
|
+
def test_16
|
137
|
+
@g1.gsub(/initialize/, 'constructor', 's1')
|
138
|
+
@g2.gsub(/crash/, 'colisi�n', 's2')
|
139
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
140
|
+
@g2.prod('archAuxiliares/aspectgenCopy.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
141
|
+
assert(!@g2.sup?(@g1))
|
142
|
+
end
|
143
|
+
|
144
|
+
def test_17
|
145
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
146
|
+
@g2.gsub(/name/, 'texto2')
|
147
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
148
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
149
|
+
assert(@g1.add?(@g2))
|
150
|
+
end
|
151
|
+
|
152
|
+
def test_18
|
153
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
154
|
+
@g2.gsub(/name/, 'texto2')
|
155
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
156
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
157
|
+
assert(@g2.add?(@g1))
|
158
|
+
end
|
159
|
+
|
160
|
+
def test_19
|
161
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
162
|
+
@g2.gsub(/name/, 'texto2')
|
163
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
164
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
165
|
+
assert(@g1.sup?(@g2))
|
166
|
+
end
|
167
|
+
|
168
|
+
def test_20
|
169
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
170
|
+
@g2.gsub(/name/, 'texto2')
|
171
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
172
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/2.txt')
|
173
|
+
assert(@g2.sup?(@g1))
|
174
|
+
end
|
175
|
+
|
176
|
+
def test_21
|
177
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
178
|
+
@g2.gsub(/name/, 'texto2')
|
179
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
180
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
181
|
+
assert(!@g1.add?(@g2))
|
182
|
+
end
|
183
|
+
|
184
|
+
def test_22
|
185
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
186
|
+
@g2.gsub(/name/, 'texto2')
|
187
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
188
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
189
|
+
assert(!@g2.add?(@g1))
|
190
|
+
end
|
191
|
+
|
192
|
+
def test_23
|
193
|
+
@g1.gsub(/initialize\(name/, 'texto1')
|
194
|
+
@g2.gsub(/name/, 'texto2')
|
195
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
196
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt')
|
197
|
+
assert(@g2.sup?(@g1))
|
198
|
+
end
|
199
|
+
|
200
|
+
def test_24
|
201
|
+
@g1.gsub(/initialize\(name/, 'texto1', 's1')
|
202
|
+
@g2.gsub(/name/, 'texto2', 's1')
|
203
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
204
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
205
|
+
assert(@g2.sup?(@g1))
|
206
|
+
end
|
207
|
+
|
208
|
+
def test_25
|
209
|
+
@g1.gsub(/initialize\(name/, 'texto1', 's1')
|
210
|
+
@g2.gsub(/name/, 'texto2', 's2')
|
211
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
212
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
213
|
+
assert(!@g2.sup?(@g1))
|
214
|
+
end
|
215
|
+
|
216
|
+
def test_26
|
217
|
+
@g1.gsub(/initialize\(name/, 'texto1', 's1')
|
218
|
+
@g2.gsub(/name/, 'texto2', 's2')
|
219
|
+
@g1.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p1')
|
220
|
+
@g2.prod('archAuxiliares/aspectGen.rb', 'archAuxiliares/1.txt', 'all', 'p2')
|
221
|
+
assert(!@g1.sup?(@g2))
|
222
|
+
end
|
223
|
+
end
|