prct09 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +7 -2
- data/config/gemnasium.yml +10 -0
- data/doc/Fraccion.html +856 -0
- data/doc/Gemfile.html +280 -0
- data/doc/Guarfile.html +310 -0
- data/doc/LICENSE_txt.html +297 -0
- data/doc/Matriz.html +721 -0
- data/doc/Matriz_densa.html +605 -0
- data/doc/Matriz_dispersa.html +829 -0
- data/doc/Prct09.html +328 -0
- data/doc/Rakefile.html +318 -0
- data/doc/Test_Matriz.html +509 -0
- data/doc/bin/prct09.html +54 -0
- data/doc/classes/Fraccion.html +0 -0
- data/doc/classes/Fraccion.src/M000024.html +0 -0
- data/doc/classes/Fraccion.src/M000025.html +0 -0
- data/doc/classes/Fraccion.src/M000026.html +0 -0
- data/doc/classes/Fraccion.src/M000027.html +0 -0
- data/doc/classes/Fraccion.src/M000028.html +0 -0
- data/doc/classes/Fraccion.src/M000029.html +0 -0
- data/doc/classes/Fraccion.src/M000030.html +0 -0
- data/doc/classes/Fraccion.src/M000031.html +0 -0
- data/doc/classes/Fraccion.src/M000032.html +0 -0
- data/doc/classes/Fraccion.src/M000033.html +0 -0
- data/doc/classes/Fraccion.src/M000034.html +0 -0
- data/doc/classes/Fraccion.src/M000035.html +0 -0
- data/doc/classes/Fraccion.src/M000036.html +0 -0
- data/doc/classes/Matriz.html +0 -0
- data/doc/classes/Matriz.src/M000015.html +0 -0
- data/doc/classes/Matriz.src/M000016.html +0 -0
- data/doc/classes/Matriz.src/M000017.html +0 -0
- data/doc/classes/Matriz.src/M000018.html +0 -0
- data/doc/classes/Matriz.src/M000019.html +0 -0
- data/doc/classes/Matriz.src/M000020.html +0 -0
- data/doc/classes/Matriz.src/M000021.html +0 -0
- data/doc/classes/Matriz.src/M000022.html +0 -0
- data/doc/classes/Matriz.src/M000023.html +0 -0
- data/doc/classes/Matriz_densa.html +0 -0
- data/doc/classes/Matriz_densa.src/M000010.html +0 -0
- data/doc/classes/Matriz_densa.src/M000011.html +0 -0
- data/doc/classes/Matriz_densa.src/M000012.html +0 -0
- data/doc/classes/Matriz_densa.src/M000013.html +0 -0
- data/doc/classes/Matriz_densa.src/M000014.html +0 -0
- data/doc/classes/Matriz_dispersa.html +0 -0
- data/doc/classes/Matriz_dispersa.src/M000002.html +0 -0
- data/doc/classes/Matriz_dispersa.src/M000003.html +0 -0
- data/doc/classes/Matriz_dispersa.src/M000004.html +0 -0
- data/doc/classes/Matriz_dispersa.src/M000005.html +0 -0
- data/doc/classes/Matriz_dispersa.src/M000006.html +0 -0
- data/doc/classes/Matriz_dispersa.src/M000007.html +0 -0
- data/doc/classes/Matriz_dispersa.src/M000008.html +0 -0
- data/doc/classes/Matriz_dispersa.src/M000009.html +0 -0
- data/doc/classes/Prct09.html +0 -0
- data/doc/classes/Test_Matriz.html +0 -0
- data/doc/classes/Test_Matriz.src/M000037.html +0 -0
- data/doc/classes/Test_Matriz.src/M000038.html +0 -0
- data/doc/classes/Test_Matriz.src/M000039.html +0 -0
- data/doc/classes/Test_Matriz.src/M000040.html +0 -0
- data/doc/created.rid +125 -14
- data/doc/files/lib/Fraccion_rb.html +0 -0
- data/doc/files/lib/Matriz_densa_rb.html +0 -0
- data/doc/files/lib/Matriz_dispersa_rb.html +0 -0
- data/doc/files/lib/Matriz_rb.html +0 -0
- data/doc/files/lib/mcd_rb.html +0 -0
- data/doc/files/lib/mcd_rb.src/M000001.html +0 -0
- data/doc/files/lib/prct09/version_rb.html +0 -0
- data/doc/files/lib/prct09_rb.html +0 -0
- data/doc/files/spec/Matriz_spec_rb.html +0 -0
- data/doc/files/test/tc_matriz_rb.html +0 -0
- data/doc/fr_class_index.html +0 -0
- data/doc/fr_file_index.html +0 -0
- data/doc/fr_method_index.html +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +254 -132
- data/doc/js/darkfish.js +155 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/Fraccion_rb.html +52 -0
- data/doc/lib/Matriz_densa_rb.html +56 -0
- data/doc/lib/Matriz_dispersa_rb.html +56 -0
- data/doc/lib/Matriz_rb.html +54 -0
- data/doc/lib/prct09/version_rb.html +52 -0
- data/doc/lib/prct09_rb.html +54 -0
- data/doc/rdoc-style.css +0 -0
- data/doc/rdoc.css +595 -0
- data/doc/spec/Matriz_spec_rb.html +62 -0
- data/doc/test/tc_matriz_rb.html +62 -0
- data/lib/Dsl.rb +82 -0
- data/lib/prct09/version.rb +1 -1
- data/prct09-1.0.0.gem +0 -0
- data/prct09.gemspec +1 -1
- data/spec/Dsl_spec.rb +92 -0
- metadata +66 -29
- data/prct09-0.0.1.gem +0 -0
@@ -0,0 +1,509 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Test_Matriz - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="file-metadata">
|
49
|
+
<nav id="file-list-section" class="section">
|
50
|
+
<h3 class="section-header">Defined In</h3>
|
51
|
+
<ul>
|
52
|
+
<li>test/tc_matriz.rb
|
53
|
+
</ul>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">Test::Unit::TestCase
|
65
|
+
|
66
|
+
</nav>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
|
76
|
+
<li ><a href="#method-i-setup">#setup</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-test_Comprobacion">#test_Comprobacion</a>
|
79
|
+
|
80
|
+
<li ><a href="#method-i-test_Operacion">#test_Operacion</a>
|
81
|
+
|
82
|
+
<li ><a href="#method-i-test_Tipo">#test_Tipo</a>
|
83
|
+
|
84
|
+
</ul>
|
85
|
+
</nav>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<div id="project-metadata">
|
90
|
+
<nav id="fileindex-section" class="section project-section">
|
91
|
+
<h3 class="section-header">Pages</h3>
|
92
|
+
|
93
|
+
<ul>
|
94
|
+
|
95
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
96
|
+
|
97
|
+
<li class="file"><a href="./Guarfile.html">Guarfile</a>
|
98
|
+
|
99
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE</a>
|
100
|
+
|
101
|
+
<li class="file"><a href="./README_md.html">README</a>
|
102
|
+
|
103
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
104
|
+
|
105
|
+
<li class="file"><a href="./doc/Fraccion_html.html">Fraccion.html</a>
|
106
|
+
|
107
|
+
<li class="file"><a href="./doc/Gemfile_html.html">Gemfile.html</a>
|
108
|
+
|
109
|
+
<li class="file"><a href="./doc/Guarfile_html.html">Guarfile.html</a>
|
110
|
+
|
111
|
+
<li class="file"><a href="./doc/LICENSE_txt_html.html">LICENSE_txt.html</a>
|
112
|
+
|
113
|
+
<li class="file"><a href="./doc/Matriz_html.html">Matriz.html</a>
|
114
|
+
|
115
|
+
<li class="file"><a href="./doc/Matriz_densa_html.html">Matriz_densa.html</a>
|
116
|
+
|
117
|
+
<li class="file"><a href="./doc/Matriz_dispersa_html.html">Matriz_dispersa.html</a>
|
118
|
+
|
119
|
+
<li class="file"><a href="./doc/Prct09_html.html">Prct09.html</a>
|
120
|
+
|
121
|
+
<li class="file"><a href="./doc/Rakefile_html.html">Rakefile.html</a>
|
122
|
+
|
123
|
+
<li class="file"><a href="./doc/Test_Matriz_html.html">Test_Matriz.html</a>
|
124
|
+
|
125
|
+
<li class="file"><a href="./doc/bin/prct09_html.html">prct09.html</a>
|
126
|
+
|
127
|
+
<li class="file"><a href="./doc/classes/Fraccion_html.html">Fraccion.html</a>
|
128
|
+
|
129
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000024_html.html">M000024.html</a>
|
130
|
+
|
131
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000025_html.html">M000025.html</a>
|
132
|
+
|
133
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000026_html.html">M000026.html</a>
|
134
|
+
|
135
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000027_html.html">M000027.html</a>
|
136
|
+
|
137
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000028_html.html">M000028.html</a>
|
138
|
+
|
139
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000029_html.html">M000029.html</a>
|
140
|
+
|
141
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000030_html.html">M000030.html</a>
|
142
|
+
|
143
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000031_html.html">M000031.html</a>
|
144
|
+
|
145
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000032_html.html">M000032.html</a>
|
146
|
+
|
147
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000033_html.html">M000033.html</a>
|
148
|
+
|
149
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000034_html.html">M000034.html</a>
|
150
|
+
|
151
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000035_html.html">M000035.html</a>
|
152
|
+
|
153
|
+
<li class="file"><a href="./doc/classes/Fraccion_src/M000036_html.html">M000036.html</a>
|
154
|
+
|
155
|
+
<li class="file"><a href="./doc/classes/Matriz_html.html">Matriz.html</a>
|
156
|
+
|
157
|
+
<li class="file"><a href="./doc/classes/Matriz_src/M000015_html.html">M000015.html</a>
|
158
|
+
|
159
|
+
<li class="file"><a href="./doc/classes/Matriz_src/M000016_html.html">M000016.html</a>
|
160
|
+
|
161
|
+
<li class="file"><a href="./doc/classes/Matriz_src/M000017_html.html">M000017.html</a>
|
162
|
+
|
163
|
+
<li class="file"><a href="./doc/classes/Matriz_src/M000018_html.html">M000018.html</a>
|
164
|
+
|
165
|
+
<li class="file"><a href="./doc/classes/Matriz_src/M000019_html.html">M000019.html</a>
|
166
|
+
|
167
|
+
<li class="file"><a href="./doc/classes/Matriz_src/M000020_html.html">M000020.html</a>
|
168
|
+
|
169
|
+
<li class="file"><a href="./doc/classes/Matriz_src/M000021_html.html">M000021.html</a>
|
170
|
+
|
171
|
+
<li class="file"><a href="./doc/classes/Matriz_src/M000022_html.html">M000022.html</a>
|
172
|
+
|
173
|
+
<li class="file"><a href="./doc/classes/Matriz_src/M000023_html.html">M000023.html</a>
|
174
|
+
|
175
|
+
<li class="file"><a href="./doc/classes/Matriz_densa_html.html">Matriz_densa.html</a>
|
176
|
+
|
177
|
+
<li class="file"><a href="./doc/classes/Matriz_densa_src/M000010_html.html">M000010.html</a>
|
178
|
+
|
179
|
+
<li class="file"><a href="./doc/classes/Matriz_densa_src/M000011_html.html">M000011.html</a>
|
180
|
+
|
181
|
+
<li class="file"><a href="./doc/classes/Matriz_densa_src/M000012_html.html">M000012.html</a>
|
182
|
+
|
183
|
+
<li class="file"><a href="./doc/classes/Matriz_densa_src/M000013_html.html">M000013.html</a>
|
184
|
+
|
185
|
+
<li class="file"><a href="./doc/classes/Matriz_densa_src/M000014_html.html">M000014.html</a>
|
186
|
+
|
187
|
+
<li class="file"><a href="./doc/classes/Matriz_dispersa_html.html">Matriz_dispersa.html</a>
|
188
|
+
|
189
|
+
<li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000002_html.html">M000002.html</a>
|
190
|
+
|
191
|
+
<li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000003_html.html">M000003.html</a>
|
192
|
+
|
193
|
+
<li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000004_html.html">M000004.html</a>
|
194
|
+
|
195
|
+
<li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000005_html.html">M000005.html</a>
|
196
|
+
|
197
|
+
<li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000006_html.html">M000006.html</a>
|
198
|
+
|
199
|
+
<li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000007_html.html">M000007.html</a>
|
200
|
+
|
201
|
+
<li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000008_html.html">M000008.html</a>
|
202
|
+
|
203
|
+
<li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000009_html.html">M000009.html</a>
|
204
|
+
|
205
|
+
<li class="file"><a href="./doc/classes/Prct09_html.html">Prct09.html</a>
|
206
|
+
|
207
|
+
<li class="file"><a href="./doc/classes/Test_Matriz_html.html">Test_Matriz.html</a>
|
208
|
+
|
209
|
+
<li class="file"><a href="./doc/classes/Test_Matriz_src/M000037_html.html">M000037.html</a>
|
210
|
+
|
211
|
+
<li class="file"><a href="./doc/classes/Test_Matriz_src/M000038_html.html">M000038.html</a>
|
212
|
+
|
213
|
+
<li class="file"><a href="./doc/classes/Test_Matriz_src/M000039_html.html">M000039.html</a>
|
214
|
+
|
215
|
+
<li class="file"><a href="./doc/classes/Test_Matriz_src/M000040_html.html">M000040.html</a>
|
216
|
+
|
217
|
+
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
218
|
+
|
219
|
+
<li class="file"><a href="./doc/files/lib/Fraccion_rb_html.html">Fraccion_rb.html</a>
|
220
|
+
|
221
|
+
<li class="file"><a href="./doc/files/lib/Matriz_densa_rb_html.html">Matriz_densa_rb.html</a>
|
222
|
+
|
223
|
+
<li class="file"><a href="./doc/files/lib/Matriz_dispersa_rb_html.html">Matriz_dispersa_rb.html</a>
|
224
|
+
|
225
|
+
<li class="file"><a href="./doc/files/lib/Matriz_rb_html.html">Matriz_rb.html</a>
|
226
|
+
|
227
|
+
<li class="file"><a href="./doc/files/lib/mcd_rb_html.html">mcd_rb.html</a>
|
228
|
+
|
229
|
+
<li class="file"><a href="./doc/files/lib/mcd_rb_src/M000001_html.html">M000001.html</a>
|
230
|
+
|
231
|
+
<li class="file"><a href="./doc/files/lib/prct09/version_rb_html.html">version_rb.html</a>
|
232
|
+
|
233
|
+
<li class="file"><a href="./doc/files/lib/prct09_rb_html.html">prct09_rb.html</a>
|
234
|
+
|
235
|
+
<li class="file"><a href="./doc/files/spec/Matriz_spec_rb_html.html">Matriz_spec_rb.html</a>
|
236
|
+
|
237
|
+
<li class="file"><a href="./doc/files/test/tc_matriz_rb_html.html">tc_matriz_rb.html</a>
|
238
|
+
|
239
|
+
<li class="file"><a href="./doc/fr_class_index_html.html">fr_class_index.html</a>
|
240
|
+
|
241
|
+
<li class="file"><a href="./doc/fr_file_index_html.html">fr_file_index.html</a>
|
242
|
+
|
243
|
+
<li class="file"><a href="./doc/fr_method_index_html.html">fr_method_index.html</a>
|
244
|
+
|
245
|
+
<li class="file"><a href="./doc/index_html.html">index.html</a>
|
246
|
+
|
247
|
+
<li class="file"><a href="./doc/js/darkfish_js.html">darkfish.js</a>
|
248
|
+
|
249
|
+
<li class="file"><a href="./doc/js/jquery_js.html">jquery.js</a>
|
250
|
+
|
251
|
+
<li class="file"><a href="./doc/js/quicksearch_js.html">quicksearch.js</a>
|
252
|
+
|
253
|
+
<li class="file"><a href="./doc/js/thickbox-compressed_js.html">thickbox-compressed.js</a>
|
254
|
+
|
255
|
+
<li class="file"><a href="./doc/lib/Fraccion_rb_html.html">Fraccion_rb.html</a>
|
256
|
+
|
257
|
+
<li class="file"><a href="./doc/lib/Matriz_densa_rb_html.html">Matriz_densa_rb.html</a>
|
258
|
+
|
259
|
+
<li class="file"><a href="./doc/lib/Matriz_dispersa_rb_html.html">Matriz_dispersa_rb.html</a>
|
260
|
+
|
261
|
+
<li class="file"><a href="./doc/lib/Matriz_rb_html.html">Matriz_rb.html</a>
|
262
|
+
|
263
|
+
<li class="file"><a href="./doc/lib/prct09/version_rb_html.html">version_rb.html</a>
|
264
|
+
|
265
|
+
<li class="file"><a href="./doc/lib/prct09_rb_html.html">prct09_rb.html</a>
|
266
|
+
|
267
|
+
<li class="file"><a href="./doc/rdoc-style_css.html">rdoc-style.css</a>
|
268
|
+
|
269
|
+
<li class="file"><a href="./doc/rdoc_css.html">rdoc.css</a>
|
270
|
+
|
271
|
+
<li class="file"><a href="./doc/spec/Matriz_spec_rb_html.html">Matriz_spec_rb.html</a>
|
272
|
+
|
273
|
+
<li class="file"><a href="./doc/test/tc_matriz_rb_html.html">tc_matriz_rb.html</a>
|
274
|
+
|
275
|
+
<li class="file"><a href="./prct09_gemspec.html">prct09.gemspec</a>
|
276
|
+
|
277
|
+
</ul>
|
278
|
+
</nav>
|
279
|
+
|
280
|
+
<nav id="classindex-section" class="section project-section">
|
281
|
+
<h3 class="section-header">Class and Module Index</h3>
|
282
|
+
|
283
|
+
<ul class="link-list">
|
284
|
+
|
285
|
+
<li><a href="./Dsl.html">Dsl</a>
|
286
|
+
|
287
|
+
<li><a href="./Fraccion.html">Fraccion</a>
|
288
|
+
|
289
|
+
<li><a href="./Matriz.html">Matriz</a>
|
290
|
+
|
291
|
+
<li><a href="./Matriz_densa.html">Matriz_densa</a>
|
292
|
+
|
293
|
+
<li><a href="./Matriz_dispersa.html">Matriz_dispersa</a>
|
294
|
+
|
295
|
+
<li><a href="./Prct09.html">Prct09</a>
|
296
|
+
|
297
|
+
<li><a href="./Test_Matriz.html">Test_Matriz</a>
|
298
|
+
|
299
|
+
</ul>
|
300
|
+
</nav>
|
301
|
+
|
302
|
+
</div>
|
303
|
+
</nav>
|
304
|
+
|
305
|
+
<div id="documentation">
|
306
|
+
<h1 class="class">class Test_Matriz</h1>
|
307
|
+
|
308
|
+
<div id="description" class="description">
|
309
|
+
|
310
|
+
</div><!-- description -->
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
<!-- Methods -->
|
325
|
+
|
326
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
327
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
328
|
+
|
329
|
+
|
330
|
+
<div id="method-i-setup" class="method-detail ">
|
331
|
+
|
332
|
+
<div class="method-heading">
|
333
|
+
<span class="method-name">setup</span><span
|
334
|
+
class="method-args">()</span>
|
335
|
+
|
336
|
+
<span class="method-click-advice">click to toggle source</span>
|
337
|
+
|
338
|
+
</div>
|
339
|
+
|
340
|
+
|
341
|
+
<div class="method-description">
|
342
|
+
|
343
|
+
<p>Inicializador de los objetos</p>
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
<div class="method-source-code" id="setup-source">
|
349
|
+
<pre><span class="ruby-comment"># File test/tc_matriz.rb, line 10</span>
|
350
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">setup</span>
|
351
|
+
<span class="ruby-ivar">@m1</span>=<span class="ruby-constant">Matriz_dispersa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">1</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>],[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>,<span class="ruby-value">0</span>],[<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>]]) <span class="ruby-comment">#dispersa</span>
|
352
|
+
<span class="ruby-ivar">@m2</span>=<span class="ruby-constant">Matriz_densa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">1</span>,<span class="ruby-value">2</span>,<span class="ruby-value">1</span>],[<span class="ruby-value">2</span>,<span class="ruby-value">1</span>,<span class="ruby-value">3</span>],[<span class="ruby-value">3</span>,<span class="ruby-value">5</span>,<span class="ruby-value">4</span>]]) <span class="ruby-comment">#densa</span>
|
353
|
+
<span class="ruby-ivar">@m3</span>=<span class="ruby-constant">Matriz_dispersa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">1</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>],[<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>],[<span class="ruby-value">1</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>]]) <span class="ruby-comment">#dispersa</span>
|
354
|
+
<span class="ruby-ivar">@m4</span>=<span class="ruby-constant">Matriz_densa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">2</span>,<span class="ruby-value">3</span>,<span class="ruby-value">1</span>],[<span class="ruby-value">9</span>,<span class="ruby-value">3</span>,<span class="ruby-value">4</span>],[<span class="ruby-value">2</span>,<span class="ruby-value">7</span>,<span class="ruby-value">5</span>]]) <span class="ruby-comment">#densa</span>
|
355
|
+
<span class="ruby-keyword">end</span></pre>
|
356
|
+
</div><!-- setup-source -->
|
357
|
+
|
358
|
+
</div>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
</div><!-- setup-method -->
|
364
|
+
|
365
|
+
|
366
|
+
<div id="method-i-test_Comprobacion" class="method-detail ">
|
367
|
+
|
368
|
+
<div class="method-heading">
|
369
|
+
<span class="method-name">test_Comprobacion</span><span
|
370
|
+
class="method-args">()</span>
|
371
|
+
|
372
|
+
<span class="method-click-advice">click to toggle source</span>
|
373
|
+
|
374
|
+
</div>
|
375
|
+
|
376
|
+
|
377
|
+
<div class="method-description">
|
378
|
+
|
379
|
+
<p>Test para comprobar la correcta construcción de las matrices</p>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
<div class="method-source-code" id="test_Comprobacion-source">
|
385
|
+
<pre><span class="ruby-comment"># File test/tc_matriz.rb, line 20</span>
|
386
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">test_Comprobacion</span>
|
387
|
+
|
388
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@m1</span>.<span class="ruby-identifier">filas</span>,<span class="ruby-value">3</span>)
|
389
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@m1</span>.<span class="ruby-identifier">cols</span>,<span class="ruby-value">3</span>)
|
390
|
+
|
391
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@m2</span>.<span class="ruby-identifier">filas</span>,<span class="ruby-value">3</span>)
|
392
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@m2</span>.<span class="ruby-identifier">cols</span>,<span class="ruby-value">3</span>)
|
393
|
+
|
394
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@m3</span>.<span class="ruby-identifier">filas</span>,<span class="ruby-value">3</span>)
|
395
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@m3</span>.<span class="ruby-identifier">cols</span>,<span class="ruby-value">3</span>)
|
396
|
+
|
397
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@m4</span>.<span class="ruby-identifier">filas</span>,<span class="ruby-value">3</span>)
|
398
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-ivar">@m4</span>.<span class="ruby-identifier">cols</span>,<span class="ruby-value">3</span>)
|
399
|
+
|
400
|
+
<span class="ruby-keyword">end</span></pre>
|
401
|
+
</div><!-- test_Comprobacion-source -->
|
402
|
+
|
403
|
+
</div>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
</div><!-- test_Comprobacion-method -->
|
409
|
+
|
410
|
+
|
411
|
+
<div id="method-i-test_Operacion" class="method-detail ">
|
412
|
+
|
413
|
+
<div class="method-heading">
|
414
|
+
<span class="method-name">test_Operacion</span><span
|
415
|
+
class="method-args">()</span>
|
416
|
+
|
417
|
+
<span class="method-click-advice">click to toggle source</span>
|
418
|
+
|
419
|
+
</div>
|
420
|
+
|
421
|
+
|
422
|
+
<div class="method-description">
|
423
|
+
|
424
|
+
<p>Test para comprobar las operaciones entre matrices</p>
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
<div class="method-source-code" id="test_Operacion-source">
|
430
|
+
<pre><span class="ruby-comment"># File test/tc_matriz.rb, line 51</span>
|
431
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">test_Operacion</span>
|
432
|
+
|
433
|
+
<span class="ruby-comment">#suma</span>
|
434
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">Matriz_dispersa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">2</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>],[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>,<span class="ruby-value">0</span>],[<span class="ruby-value">1</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>]]).<span class="ruby-identifier">matriz</span>, (<span class="ruby-ivar">@m1</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@m3</span>).<span class="ruby-identifier">matriz</span>)
|
435
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">Matriz_densa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">2</span>,<span class="ruby-value">2</span>,<span class="ruby-value">1</span>],[<span class="ruby-value">2</span>,<span class="ruby-value">2</span>,<span class="ruby-value">3</span>],[<span class="ruby-value">3</span>,<span class="ruby-value">5</span>,<span class="ruby-value">4</span>]]).<span class="ruby-identifier">matriz</span>,(<span class="ruby-ivar">@m1</span><span class="ruby-operator">+</span><span class="ruby-ivar">@m2</span>).<span class="ruby-identifier">matriz</span>)
|
436
|
+
|
437
|
+
<span class="ruby-comment">#resta</span>
|
438
|
+
|
439
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">Matriz_densa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">0</span>,<span class="ruby-value">-2</span>,<span class="ruby-value">-1</span>],[<span class="ruby-value">-2</span>,<span class="ruby-value">0</span>,<span class="ruby-value">-3</span>],[<span class="ruby-value">-3</span>,<span class="ruby-value">-5</span>,<span class="ruby-value">-4</span>]]).<span class="ruby-identifier">matriz</span>,(<span class="ruby-ivar">@m1</span><span class="ruby-operator">-</span><span class="ruby-ivar">@m2</span>).<span class="ruby-identifier">matriz</span>)
|
440
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">Matriz_dispersa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>],[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>,<span class="ruby-value">0</span>],[<span class="ruby-value">-1</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>]]).<span class="ruby-identifier">matriz</span>,(<span class="ruby-ivar">@m1</span><span class="ruby-operator">-</span><span class="ruby-ivar">@m3</span>).<span class="ruby-identifier">matriz</span>)
|
441
|
+
|
442
|
+
<span class="ruby-comment">#multiplicacion</span>
|
443
|
+
|
444
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">Matriz_densa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">2</span>,<span class="ruby-value">3</span>,<span class="ruby-value">1</span>],[<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>],[<span class="ruby-value">2</span>,<span class="ruby-value">3</span>,<span class="ruby-value">1</span>]]).<span class="ruby-identifier">matriz</span>,(<span class="ruby-ivar">@m3</span><span class="ruby-operator">*</span><span class="ruby-ivar">@m4</span>).<span class="ruby-identifier">matriz</span>)
|
445
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">Matriz_densa</span>.<span class="ruby-identifier">new</span>([[<span class="ruby-value">22</span>,<span class="ruby-value">16</span>,<span class="ruby-value">14</span>],[<span class="ruby-value">19</span>,<span class="ruby-value">30</span>,<span class="ruby-value">21</span>],[<span class="ruby-value">59</span>,<span class="ruby-value">52</span>,<span class="ruby-value">43</span>]]).<span class="ruby-identifier">matriz</span>,(<span class="ruby-ivar">@m2</span><span class="ruby-operator">*</span><span class="ruby-ivar">@m4</span>).<span class="ruby-identifier">matriz</span>)
|
446
|
+
|
447
|
+
<span class="ruby-keyword">end</span></pre>
|
448
|
+
</div><!-- test_Operacion-source -->
|
449
|
+
|
450
|
+
</div>
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
</div><!-- test_Operacion-method -->
|
456
|
+
|
457
|
+
|
458
|
+
<div id="method-i-test_Tipo" class="method-detail ">
|
459
|
+
|
460
|
+
<div class="method-heading">
|
461
|
+
<span class="method-name">test_Tipo</span><span
|
462
|
+
class="method-args">()</span>
|
463
|
+
|
464
|
+
<span class="method-click-advice">click to toggle source</span>
|
465
|
+
|
466
|
+
</div>
|
467
|
+
|
468
|
+
|
469
|
+
<div class="method-description">
|
470
|
+
|
471
|
+
<p>Test para comprobar la correcta construcción de las matrices según el tipo</p>
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
<div class="method-source-code" id="test_Tipo-source">
|
477
|
+
<pre><span class="ruby-comment"># File test/tc_matriz.rb, line 39</span>
|
478
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">test_Tipo</span>
|
479
|
+
|
480
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword">true</span>, <span class="ruby-ivar">@m1</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Matriz_dispersa</span>))
|
481
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword">true</span>, <span class="ruby-ivar">@m2</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Matriz_densa</span>))
|
482
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword">true</span>, <span class="ruby-ivar">@m3</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Matriz_dispersa</span>))
|
483
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword">true</span>, <span class="ruby-ivar">@m4</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Matriz_densa</span>))
|
484
|
+
|
485
|
+
|
486
|
+
<span class="ruby-keyword">end</span></pre>
|
487
|
+
</div><!-- test_Tipo-source -->
|
488
|
+
|
489
|
+
</div>
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
</div><!-- test_Tipo-method -->
|
495
|
+
|
496
|
+
|
497
|
+
</section><!-- public-instance-method-details -->
|
498
|
+
|
499
|
+
</section><!-- 5Buntitled-5D -->
|
500
|
+
|
501
|
+
</div><!-- documentation -->
|
502
|
+
|
503
|
+
|
504
|
+
<footer id="validator-badges">
|
505
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
506
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
507
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
508
|
+
</footer>
|
509
|
+
|