1 |
3132
|
perry
|
<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7 |
|
|
<head>
|
8 |
|
|
<title>Class: DataTableTest</title>
|
9 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10 |
|
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11 |
|
|
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12 |
|
|
<script type="text/javascript">
|
13 |
|
|
// <![CDATA[
|
14 |
|
|
|
15 |
|
|
function popupCode( url ) {
|
16 |
|
|
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17 |
|
|
}
|
18 |
|
|
|
19 |
|
|
function toggleCode( id ) {
|
20 |
|
|
if ( document.getElementById )
|
21 |
|
|
elem = document.getElementById( id );
|
22 |
|
|
else if ( document.all )
|
23 |
|
|
elem = eval( "document.all." + id );
|
24 |
|
|
else
|
25 |
|
|
return false;
|
26 |
|
|
|
27 |
|
|
elemStyle = elem.style;
|
28 |
|
|
|
29 |
|
|
if ( elemStyle.display != "block" ) {
|
30 |
|
|
elemStyle.display = "block"
|
31 |
|
|
} else {
|
32 |
|
|
elemStyle.display = "none"
|
33 |
|
|
}
|
34 |
|
|
|
35 |
|
|
return true;
|
36 |
|
|
}
|
37 |
|
|
|
38 |
|
|
// Make codeblocks hidden by default
|
39 |
|
|
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40 |
|
|
|
41 |
|
|
// ]]>
|
42 |
|
|
</script>
|
43 |
|
|
|
44 |
|
|
</head>
|
45 |
|
|
<body>
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
<div id="classHeader">
|
50 |
|
|
<table class="header-table">
|
51 |
|
|
<tr class="top-aligned-row">
|
52 |
|
|
<td><strong>Class</strong></td>
|
53 |
|
|
<td class="class-name-in-header">DataTableTest</td>
|
54 |
|
|
</tr>
|
55 |
|
|
<tr class="top-aligned-row">
|
56 |
|
|
<td><strong>In:</strong></td>
|
57 |
|
|
<td>
|
58 |
|
|
<a href="../files/test/data_table_test_rb.html">
|
59 |
|
|
test/data_table_test.rb
|
60 |
|
|
</a>
|
61 |
|
|
<br />
|
62 |
|
|
</td>
|
63 |
|
|
</tr>
|
64 |
|
|
|
65 |
|
|
<tr class="top-aligned-row">
|
66 |
|
|
<td><strong>Parent:</strong></td>
|
67 |
|
|
<td>
|
68 |
|
|
Test::Unit::TestCase
|
69 |
|
|
</td>
|
70 |
|
|
</tr>
|
71 |
|
|
</table>
|
72 |
|
|
</div>
|
73 |
|
|
<!-- banner header -->
|
74 |
|
|
|
75 |
|
|
<div id="bodyContent">
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
<div id="contextContent">
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
</div>
|
84 |
|
|
|
85 |
|
|
<div id="method-list">
|
86 |
|
|
<h3 class="section-bar">Methods</h3>
|
87 |
|
|
|
88 |
|
|
<div class="name-list">
|
89 |
|
|
<a href="#M000011">setup</a>
|
90 |
|
|
<a href="#M000012">teardown</a>
|
91 |
|
|
<a href="#M000018">test_data_format</a>
|
92 |
|
|
<a href="#M000014">test_docid</a>
|
93 |
|
|
<a href="#M000021">test_field_delimiter</a>
|
94 |
|
|
<a href="#M000013">test_id</a>
|
95 |
|
|
<a href="#M000015">test_location</a>
|
96 |
|
|
<a href="#M000024">test_metadata_attr_reader</a>
|
97 |
|
|
<a href="#M000022">test_num_headers</a>
|
98 |
|
|
<a href="#M000017">test_physical</a>
|
99 |
|
|
<a href="#M000025">test_read</a>
|
100 |
|
|
<a href="#M000023">test_record_delimiter</a>
|
101 |
|
|
<a href="#M000020">test_simple_delimited</a>
|
102 |
|
|
<a href="#M000016">test_size</a>
|
103 |
|
|
<a href="#M000019">test_text_format</a>
|
104 |
|
|
</div>
|
105 |
|
|
</div>
|
106 |
|
|
|
107 |
|
|
</div>
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
<!-- if includes -->
|
111 |
|
|
|
112 |
|
|
<div id="section">
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
<!-- if method_list -->
|
122 |
|
|
<div id="methods">
|
123 |
|
|
<h3 class="section-bar">Public Instance methods</h3>
|
124 |
|
|
|
125 |
|
|
<div id="method-M000011" class="method-detail">
|
126 |
|
|
<a name="M000011"></a>
|
127 |
|
|
|
128 |
|
|
<div class="method-heading">
|
129 |
|
|
<a href="DataTableTest.src/M000011.html" target="Code" class="method-signature"
|
130 |
|
|
onclick="popupCode('DataTableTest.src/M000011.html');return false;">
|
131 |
|
|
<span class="method-name">setup</span><span class="method-args">()</span>
|
132 |
|
|
</a>
|
133 |
|
|
</div>
|
134 |
|
|
|
135 |
|
|
<div class="method-description">
|
136 |
|
|
</div>
|
137 |
|
|
</div>
|
138 |
|
|
|
139 |
|
|
<div id="method-M000012" class="method-detail">
|
140 |
|
|
<a name="M000012"></a>
|
141 |
|
|
|
142 |
|
|
<div class="method-heading">
|
143 |
|
|
<a href="DataTableTest.src/M000012.html" target="Code" class="method-signature"
|
144 |
|
|
onclick="popupCode('DataTableTest.src/M000012.html');return false;">
|
145 |
|
|
<span class="method-name">teardown</span><span class="method-args">()</span>
|
146 |
|
|
</a>
|
147 |
|
|
</div>
|
148 |
|
|
|
149 |
|
|
<div class="method-description">
|
150 |
|
|
</div>
|
151 |
|
|
</div>
|
152 |
|
|
|
153 |
|
|
<div id="method-M000018" class="method-detail">
|
154 |
|
|
<a name="M000018"></a>
|
155 |
|
|
|
156 |
|
|
<div class="method-heading">
|
157 |
|
|
<a href="DataTableTest.src/M000018.html" target="Code" class="method-signature"
|
158 |
|
|
onclick="popupCode('DataTableTest.src/M000018.html');return false;">
|
159 |
|
|
<span class="method-name">test_data_format</span><span class="method-args">()</span>
|
160 |
|
|
</a>
|
161 |
|
|
</div>
|
162 |
|
|
|
163 |
|
|
<div class="method-description">
|
164 |
|
|
</div>
|
165 |
|
|
</div>
|
166 |
|
|
|
167 |
|
|
<div id="method-M000014" class="method-detail">
|
168 |
|
|
<a name="M000014"></a>
|
169 |
|
|
|
170 |
|
|
<div class="method-heading">
|
171 |
|
|
<a href="DataTableTest.src/M000014.html" target="Code" class="method-signature"
|
172 |
|
|
onclick="popupCode('DataTableTest.src/M000014.html');return false;">
|
173 |
|
|
<span class="method-name">test_docid</span><span class="method-args">()</span>
|
174 |
|
|
</a>
|
175 |
|
|
</div>
|
176 |
|
|
|
177 |
|
|
<div class="method-description">
|
178 |
|
|
</div>
|
179 |
|
|
</div>
|
180 |
|
|
|
181 |
|
|
<div id="method-M000021" class="method-detail">
|
182 |
|
|
<a name="M000021"></a>
|
183 |
|
|
|
184 |
|
|
<div class="method-heading">
|
185 |
|
|
<a href="DataTableTest.src/M000021.html" target="Code" class="method-signature"
|
186 |
|
|
onclick="popupCode('DataTableTest.src/M000021.html');return false;">
|
187 |
|
|
<span class="method-name">test_field_delimiter</span><span class="method-args">()</span>
|
188 |
|
|
</a>
|
189 |
|
|
</div>
|
190 |
|
|
|
191 |
|
|
<div class="method-description">
|
192 |
|
|
</div>
|
193 |
|
|
</div>
|
194 |
|
|
|
195 |
|
|
<div id="method-M000013" class="method-detail">
|
196 |
|
|
<a name="M000013"></a>
|
197 |
|
|
|
198 |
|
|
<div class="method-heading">
|
199 |
|
|
<a href="DataTableTest.src/M000013.html" target="Code" class="method-signature"
|
200 |
|
|
onclick="popupCode('DataTableTest.src/M000013.html');return false;">
|
201 |
|
|
<span class="method-name">test_id</span><span class="method-args">()</span>
|
202 |
|
|
</a>
|
203 |
|
|
</div>
|
204 |
|
|
|
205 |
|
|
<div class="method-description">
|
206 |
|
|
<p>
|
207 |
|
|
Replace this with your real tests.
|
208 |
|
|
</p>
|
209 |
|
|
</div>
|
210 |
|
|
</div>
|
211 |
|
|
|
212 |
|
|
<div id="method-M000015" class="method-detail">
|
213 |
|
|
<a name="M000015"></a>
|
214 |
|
|
|
215 |
|
|
<div class="method-heading">
|
216 |
|
|
<a href="DataTableTest.src/M000015.html" target="Code" class="method-signature"
|
217 |
|
|
onclick="popupCode('DataTableTest.src/M000015.html');return false;">
|
218 |
|
|
<span class="method-name">test_location</span><span class="method-args">()</span>
|
219 |
|
|
</a>
|
220 |
|
|
</div>
|
221 |
|
|
|
222 |
|
|
<div class="method-description">
|
223 |
|
|
</div>
|
224 |
|
|
</div>
|
225 |
|
|
|
226 |
|
|
<div id="method-M000024" class="method-detail">
|
227 |
|
|
<a name="M000024"></a>
|
228 |
|
|
|
229 |
|
|
<div class="method-heading">
|
230 |
|
|
<a href="DataTableTest.src/M000024.html" target="Code" class="method-signature"
|
231 |
|
|
onclick="popupCode('DataTableTest.src/M000024.html');return false;">
|
232 |
|
|
<span class="method-name">test_metadata_attr_reader</span><span class="method-args">()</span>
|
233 |
|
|
</a>
|
234 |
|
|
</div>
|
235 |
|
|
|
236 |
|
|
<div class="method-description">
|
237 |
|
|
</div>
|
238 |
|
|
</div>
|
239 |
|
|
|
240 |
|
|
<div id="method-M000022" class="method-detail">
|
241 |
|
|
<a name="M000022"></a>
|
242 |
|
|
|
243 |
|
|
<div class="method-heading">
|
244 |
|
|
<a href="DataTableTest.src/M000022.html" target="Code" class="method-signature"
|
245 |
|
|
onclick="popupCode('DataTableTest.src/M000022.html');return false;">
|
246 |
|
|
<span class="method-name">test_num_headers</span><span class="method-args">()</span>
|
247 |
|
|
</a>
|
248 |
|
|
</div>
|
249 |
|
|
|
250 |
|
|
<div class="method-description">
|
251 |
|
|
</div>
|
252 |
|
|
</div>
|
253 |
|
|
|
254 |
|
|
<div id="method-M000017" class="method-detail">
|
255 |
|
|
<a name="M000017"></a>
|
256 |
|
|
|
257 |
|
|
<div class="method-heading">
|
258 |
|
|
<a href="DataTableTest.src/M000017.html" target="Code" class="method-signature"
|
259 |
|
|
onclick="popupCode('DataTableTest.src/M000017.html');return false;">
|
260 |
|
|
<span class="method-name">test_physical</span><span class="method-args">()</span>
|
261 |
|
|
</a>
|
262 |
|
|
</div>
|
263 |
|
|
|
264 |
|
|
<div class="method-description">
|
265 |
|
|
</div>
|
266 |
|
|
</div>
|
267 |
|
|
|
268 |
|
|
<div id="method-M000025" class="method-detail">
|
269 |
|
|
<a name="M000025"></a>
|
270 |
|
|
|
271 |
|
|
<div class="method-heading">
|
272 |
|
|
<a href="DataTableTest.src/M000025.html" target="Code" class="method-signature"
|
273 |
|
|
onclick="popupCode('DataTableTest.src/M000025.html');return false;">
|
274 |
|
|
<span class="method-name">test_read</span><span class="method-args">()</span>
|
275 |
|
|
</a>
|
276 |
|
|
</div>
|
277 |
|
|
|
278 |
|
|
<div class="method-description">
|
279 |
|
|
</div>
|
280 |
|
|
</div>
|
281 |
|
|
|
282 |
|
|
<div id="method-M000023" class="method-detail">
|
283 |
|
|
<a name="M000023"></a>
|
284 |
|
|
|
285 |
|
|
<div class="method-heading">
|
286 |
|
|
<a href="DataTableTest.src/M000023.html" target="Code" class="method-signature"
|
287 |
|
|
onclick="popupCode('DataTableTest.src/M000023.html');return false;">
|
288 |
|
|
<span class="method-name">test_record_delimiter</span><span class="method-args">()</span>
|
289 |
|
|
</a>
|
290 |
|
|
</div>
|
291 |
|
|
|
292 |
|
|
<div class="method-description">
|
293 |
|
|
</div>
|
294 |
|
|
</div>
|
295 |
|
|
|
296 |
|
|
<div id="method-M000020" class="method-detail">
|
297 |
|
|
<a name="M000020"></a>
|
298 |
|
|
|
299 |
|
|
<div class="method-heading">
|
300 |
|
|
<a href="DataTableTest.src/M000020.html" target="Code" class="method-signature"
|
301 |
|
|
onclick="popupCode('DataTableTest.src/M000020.html');return false;">
|
302 |
|
|
<span class="method-name">test_simple_delimited</span><span class="method-args">()</span>
|
303 |
|
|
</a>
|
304 |
|
|
</div>
|
305 |
|
|
|
306 |
|
|
<div class="method-description">
|
307 |
|
|
</div>
|
308 |
|
|
</div>
|
309 |
|
|
|
310 |
|
|
<div id="method-M000016" class="method-detail">
|
311 |
|
|
<a name="M000016"></a>
|
312 |
|
|
|
313 |
|
|
<div class="method-heading">
|
314 |
|
|
<a href="DataTableTest.src/M000016.html" target="Code" class="method-signature"
|
315 |
|
|
onclick="popupCode('DataTableTest.src/M000016.html');return false;">
|
316 |
|
|
<span class="method-name">test_size</span><span class="method-args">()</span>
|
317 |
|
|
</a>
|
318 |
|
|
</div>
|
319 |
|
|
|
320 |
|
|
<div class="method-description">
|
321 |
|
|
</div>
|
322 |
|
|
</div>
|
323 |
|
|
|
324 |
|
|
<div id="method-M000019" class="method-detail">
|
325 |
|
|
<a name="M000019"></a>
|
326 |
|
|
|
327 |
|
|
<div class="method-heading">
|
328 |
|
|
<a href="DataTableTest.src/M000019.html" target="Code" class="method-signature"
|
329 |
|
|
onclick="popupCode('DataTableTest.src/M000019.html');return false;">
|
330 |
|
|
<span class="method-name">test_text_format</span><span class="method-args">()</span>
|
331 |
|
|
</a>
|
332 |
|
|
</div>
|
333 |
|
|
|
334 |
|
|
<div class="method-description">
|
335 |
|
|
</div>
|
336 |
|
|
</div>
|
337 |
|
|
|
338 |
|
|
|
339 |
|
|
</div>
|
340 |
|
|
|
341 |
|
|
|
342 |
|
|
</div>
|
343 |
|
|
|
344 |
|
|
|
345 |
|
|
<div id="validator-badges">
|
346 |
|
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
347 |
|
|
</div>
|
348 |
|
|
|
349 |
|
|
</body>
|
350 |
|
|
</html>
|