groonga 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. data/AUTHORS +1 -0
  2. data/NEWS.ja.rdoc +5 -0
  3. data/NEWS.rdoc +5 -0
  4. data/README.ja.rdoc +53 -0
  5. data/README.rdoc +54 -0
  6. data/Rakefile +209 -0
  7. data/TUTORIAL.ja.rdoc +160 -0
  8. data/benchmark/small-many-items.rb +175 -0
  9. data/example/bookmark.rb +38 -0
  10. data/ext/.gitignore +2 -0
  11. data/ext/rb-grn-accessor.c +52 -0
  12. data/ext/rb-grn-array-cursor.c +28 -0
  13. data/ext/rb-grn-array.c +168 -0
  14. data/ext/rb-grn-column.c +273 -0
  15. data/ext/rb-grn-context.c +333 -0
  16. data/ext/rb-grn-database.c +128 -0
  17. data/ext/rb-grn-encoding.c +163 -0
  18. data/ext/rb-grn-exception.c +1014 -0
  19. data/ext/rb-grn-hash-cursor.c +30 -0
  20. data/ext/rb-grn-hash.c +40 -0
  21. data/ext/rb-grn-logger.c +277 -0
  22. data/ext/rb-grn-object.c +985 -0
  23. data/ext/rb-grn-patricia-trie-cursor.c +30 -0
  24. data/ext/rb-grn-patricia-trie.c +40 -0
  25. data/ext/rb-grn-procedure.c +52 -0
  26. data/ext/rb-grn-query.c +207 -0
  27. data/ext/rb-grn-record.c +33 -0
  28. data/ext/rb-grn-snippet.c +274 -0
  29. data/ext/rb-grn-table-cursor-key-support.c +55 -0
  30. data/ext/rb-grn-table-cursor.c +294 -0
  31. data/ext/rb-grn-table-key-support.c +299 -0
  32. data/ext/rb-grn-table.c +706 -0
  33. data/ext/rb-grn-type.c +114 -0
  34. data/ext/rb-grn-utils.c +578 -0
  35. data/ext/rb-grn.h +346 -0
  36. data/ext/rb-groonga.c +98 -0
  37. data/extconf.rb +171 -0
  38. data/html/bar.svg +153 -0
  39. data/html/developer.html +121 -0
  40. data/html/developer.svg +469 -0
  41. data/html/download.svg +253 -0
  42. data/html/footer.html.erb +28 -0
  43. data/html/head.html.erb +4 -0
  44. data/html/header.html.erb +17 -0
  45. data/html/index.html +153 -0
  46. data/html/install.svg +636 -0
  47. data/html/logo.xcf +0 -0
  48. data/html/ranguba.css +248 -0
  49. data/html/tutorial.svg +559 -0
  50. data/lib/groonga.rb +50 -0
  51. data/lib/groonga/record.rb +98 -0
  52. data/license/GPL +340 -0
  53. data/license/LGPL +504 -0
  54. data/license/RUBY +59 -0
  55. data/pkg-config.rb +328 -0
  56. data/test-unit/Rakefile +35 -0
  57. data/test-unit/TODO +5 -0
  58. data/test-unit/bin/testrb +5 -0
  59. data/test-unit/html/classic.html +15 -0
  60. data/test-unit/html/index.html +25 -0
  61. data/test-unit/html/index.html.ja +27 -0
  62. data/test-unit/lib/test/unit.rb +342 -0
  63. data/test-unit/lib/test/unit/assertionfailederror.rb +14 -0
  64. data/test-unit/lib/test/unit/assertions.rb +1149 -0
  65. data/test-unit/lib/test/unit/attribute.rb +125 -0
  66. data/test-unit/lib/test/unit/autorunner.rb +306 -0
  67. data/test-unit/lib/test/unit/collector.rb +43 -0
  68. data/test-unit/lib/test/unit/collector/descendant.rb +23 -0
  69. data/test-unit/lib/test/unit/collector/dir.rb +108 -0
  70. data/test-unit/lib/test/unit/collector/load.rb +135 -0
  71. data/test-unit/lib/test/unit/collector/objectspace.rb +34 -0
  72. data/test-unit/lib/test/unit/color-scheme.rb +86 -0
  73. data/test-unit/lib/test/unit/color.rb +96 -0
  74. data/test-unit/lib/test/unit/diff.rb +538 -0
  75. data/test-unit/lib/test/unit/error.rb +124 -0
  76. data/test-unit/lib/test/unit/exceptionhandler.rb +39 -0
  77. data/test-unit/lib/test/unit/failure.rb +110 -0
  78. data/test-unit/lib/test/unit/fixture.rb +176 -0
  79. data/test-unit/lib/test/unit/notification.rb +125 -0
  80. data/test-unit/lib/test/unit/omission.rb +143 -0
  81. data/test-unit/lib/test/unit/pending.rb +146 -0
  82. data/test-unit/lib/test/unit/priority.rb +161 -0
  83. data/test-unit/lib/test/unit/runner/console.rb +52 -0
  84. data/test-unit/lib/test/unit/runner/emacs.rb +8 -0
  85. data/test-unit/lib/test/unit/testcase.rb +360 -0
  86. data/test-unit/lib/test/unit/testresult.rb +89 -0
  87. data/test-unit/lib/test/unit/testsuite.rb +110 -0
  88. data/test-unit/lib/test/unit/ui/console/outputlevel.rb +14 -0
  89. data/test-unit/lib/test/unit/ui/console/testrunner.rb +220 -0
  90. data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +49 -0
  91. data/test-unit/lib/test/unit/ui/testrunner.rb +20 -0
  92. data/test-unit/lib/test/unit/ui/testrunnermediator.rb +77 -0
  93. data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +41 -0
  94. data/test-unit/lib/test/unit/util/backtracefilter.rb +41 -0
  95. data/test-unit/lib/test/unit/util/method-owner-finder.rb +28 -0
  96. data/test-unit/lib/test/unit/util/observable.rb +90 -0
  97. data/test-unit/lib/test/unit/util/procwrapper.rb +48 -0
  98. data/test-unit/lib/test/unit/version.rb +7 -0
  99. data/test-unit/sample/adder.rb +13 -0
  100. data/test-unit/sample/subtracter.rb +12 -0
  101. data/test-unit/sample/tc_adder.rb +18 -0
  102. data/test-unit/sample/tc_subtracter.rb +18 -0
  103. data/test-unit/sample/test_user.rb +22 -0
  104. data/test-unit/sample/ts_examples.rb +7 -0
  105. data/test-unit/test/collector/test-descendant.rb +135 -0
  106. data/test-unit/test/collector/test-load.rb +333 -0
  107. data/test-unit/test/collector/test_dir.rb +406 -0
  108. data/test-unit/test/collector/test_objectspace.rb +98 -0
  109. data/test-unit/test/run-test.rb +13 -0
  110. data/test-unit/test/test-attribute.rb +86 -0
  111. data/test-unit/test/test-color-scheme.rb +56 -0
  112. data/test-unit/test/test-color.rb +47 -0
  113. data/test-unit/test/test-diff.rb +477 -0
  114. data/test-unit/test/test-emacs-runner.rb +60 -0
  115. data/test-unit/test/test-fixture.rb +287 -0
  116. data/test-unit/test/test-notification.rb +33 -0
  117. data/test-unit/test/test-omission.rb +81 -0
  118. data/test-unit/test/test-pending.rb +70 -0
  119. data/test-unit/test/test-priority.rb +119 -0
  120. data/test-unit/test/test_assertions.rb +1082 -0
  121. data/test-unit/test/test_error.rb +26 -0
  122. data/test-unit/test/test_failure.rb +33 -0
  123. data/test-unit/test/test_testcase.rb +478 -0
  124. data/test-unit/test/test_testresult.rb +113 -0
  125. data/test-unit/test/test_testsuite.rb +129 -0
  126. data/test-unit/test/testunit-test-util.rb +14 -0
  127. data/test-unit/test/ui/test_testrunmediator.rb +20 -0
  128. data/test-unit/test/util/test-method-owner-finder.rb +38 -0
  129. data/test-unit/test/util/test_backtracefilter.rb +41 -0
  130. data/test-unit/test/util/test_observable.rb +102 -0
  131. data/test-unit/test/util/test_procwrapper.rb +36 -0
  132. data/test/.gitignore +1 -0
  133. data/test/groonga-test-utils.rb +90 -0
  134. data/test/run-test.rb +54 -0
  135. data/test/test-column.rb +190 -0
  136. data/test/test-context.rb +90 -0
  137. data/test/test-database.rb +62 -0
  138. data/test/test-encoding.rb +33 -0
  139. data/test/test-exception.rb +85 -0
  140. data/test/test-procedure.rb +35 -0
  141. data/test/test-query.rb +22 -0
  142. data/test/test-record.rb +188 -0
  143. data/test/test-snippet.rb +121 -0
  144. data/test/test-table-cursor.rb +51 -0
  145. data/test/test-table.rb +447 -0
  146. data/test/test-type.rb +52 -0
  147. data/test/test-version.rb +31 -0
  148. metadata +213 -0
data/license/RUBY ADDED
@@ -0,0 +1,59 @@
1
+ Rcairo is copyrighted free software by the persons listed in AUTHORS
2
+ distributed under the same conditions as ruby; which follow:
3
+
4
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
5
+ You can redistribute it and/or modify it under either the terms of the GPL
6
+ (see the file GPL), or the conditions below:
7
+
8
+ 1. You may make and give away verbatim copies of the source form of the
9
+ software without restriction, provided that you duplicate all of the
10
+ original copyright notices and associated disclaimers.
11
+
12
+ 2. You may modify your copy of the software in any way, provided that
13
+ you do at least ONE of the following:
14
+
15
+ a) place your modifications in the Public Domain or otherwise
16
+ make them Freely Available, such as by posting said
17
+ modifications to Usenet or an equivalent medium, or by allowing
18
+ the author to include your modifications in the software.
19
+
20
+ b) use the modified software only within your corporation or
21
+ organization.
22
+
23
+ c) give non-standard binaries non-standard names, with
24
+ instructions on where to get the original software distribution.
25
+
26
+ d) make other distribution arrangements with the author.
27
+
28
+ 3. You may distribute the software in object code or binary form,
29
+ provided that you do at least ONE of the following:
30
+
31
+ a) distribute the binaries and library files of the software,
32
+ together with instructions (in the manual page or equivalent)
33
+ on where to get the original distribution.
34
+
35
+ b) accompany the distribution with the machine-readable source of
36
+ the software.
37
+
38
+ c) give non-standard binaries non-standard names, with
39
+ instructions on where to get the original software distribution.
40
+
41
+ d) make other distribution arrangements with the author.
42
+
43
+ 4. You may modify and include the part of the software into any other
44
+ software (possibly commercial). But some files in the distribution
45
+ are not written by the author, so that they are not under these terms.
46
+
47
+ For the list of those files and their copying conditions, see the
48
+ file LEGAL.
49
+
50
+ 5. The scripts and library files supplied as input to or produced as
51
+ output from the software do not automatically fall under the
52
+ copyright of the software, but belong to whomever generated them,
53
+ and may be sold commercially, and may be aggregated with this
54
+ software.
55
+
56
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
57
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
58
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
59
+ PURPOSE.
data/pkg-config.rb ADDED
@@ -0,0 +1,328 @@
1
+ # Copyright 2008-2009 Kouhei Sutou <kou@cozmixng.org>
2
+ # This file is made available under the same terms as Ruby.
3
+
4
+ require "rbconfig"
5
+
6
+ require 'mkmf'
7
+ require 'shellwords'
8
+ require 'English'
9
+ require 'pathname'
10
+
11
+ class PackageConfig
12
+ @@default_prepend_paths = []
13
+ @@default_append_paths = []
14
+
15
+ class << self
16
+ def prepend_default_path(path)
17
+ @@default_prepend_paths.unshift(path)
18
+ end
19
+
20
+ def append_default_path(path)
21
+ @@default_append_paths << path
22
+ end
23
+ end
24
+
25
+ attr_accessor :msvc_syntax
26
+ def initialize(name, path=nil, msvc_syntax=false)
27
+ @name = name
28
+ @path = path || ENV["PKG_CONFIG_PATH"]
29
+ @path = [@path, guess_default_path].compact.join(separator)
30
+ @msvc_syntax = msvc_syntax
31
+ @variables = @declarations = nil
32
+ override_variables = with_config("override-variables", "")
33
+ @override_variables = parse_override_variables(override_variables)
34
+ end
35
+
36
+ def exist?
37
+ not pc.nil?
38
+ end
39
+
40
+ def requires
41
+ parse_requires(declaration("Requires"))
42
+ end
43
+
44
+ def requires_private
45
+ parse_requires(declaration("Requires.private"))
46
+ end
47
+
48
+ def cflags
49
+ path_flags, other_flags = collect_cflags
50
+ (other_flags + path_flags).join(" ")
51
+ end
52
+
53
+ def cflags_only_I
54
+ collect_cflags[0].join(" ")
55
+ end
56
+
57
+ def libs
58
+ path_flags, other_flags = collect_libs
59
+ (other_flags + path_flags).join(" ")
60
+ end
61
+
62
+ def libs_only_l
63
+ collect_libs[1].find_all do |arg|
64
+ if @msvc_syntax
65
+ /\.lib\z/ =~ arg
66
+ else
67
+ /\A-l/ =~ arg
68
+ end
69
+ end.join(" ")
70
+ end
71
+
72
+ def version
73
+ declaration("Version")
74
+ end
75
+
76
+ def variable(name)
77
+ parse_pc if @variables.nil?
78
+ expand_value(@override_variables[name] || @variables[name])
79
+ end
80
+
81
+ def declaration(name)
82
+ parse_pc if @declarations.nil?
83
+ expand_value(@declarations[name])
84
+ end
85
+
86
+ private
87
+ def paths
88
+ paths = @@default_prepend_paths
89
+ paths += @path.split(separator)
90
+ paths += @@default_append_paths
91
+ paths
92
+ end
93
+
94
+ def pc
95
+ paths.each do |path|
96
+ pc_name = File.join(path, "#{@name}.pc")
97
+ return pc_name if File.exist?(pc_name)
98
+ end
99
+ return nil
100
+ end
101
+
102
+ def separator
103
+ File.expand_path(".").index(":") ? ";" : ":"
104
+ end
105
+
106
+ def collect_cflags
107
+ all_cflags = (requires_private + requires.reverse).collect do |package|
108
+ self.class.new(package, @path, @msvc_syntax).cflags
109
+ end
110
+ all_cflags = [declaration("Cflags")] + all_cflags
111
+ all_cflags = all_cflags.join(" ").gsub(/-I /, '-I').split.uniq
112
+ path_flags, other_flags = all_cflags.partition {|flag| /\A-I/ =~ flag}
113
+ path_flags = path_flags.reject do |flag|
114
+ flag == "-I/usr/include"
115
+ end
116
+ if @msvc_syntax
117
+ path_flags = path_flags.collect do |flag|
118
+ flag.gsub(/\A-I/, "/I")
119
+ end
120
+ end
121
+ [path_flags, other_flags]
122
+ end
123
+
124
+ def collect_libs
125
+ all_libs = requires.collect do |package|
126
+ self.class.new(package, @path, @msvc_syntax).libs
127
+ end
128
+ all_libs = [declaration("Libs")] + all_libs
129
+ all_libs = all_libs.join(" ").gsub(/-([Ll]) /, '\1').split.uniq
130
+ path_flags, other_flags = all_libs.partition {|flag| /\A-L/ =~ flag}
131
+ path_flags = path_flags.reject do |flag|
132
+ /\A-L\/usr\/lib(?:64)?\z/ =~ flag
133
+ end
134
+ if @msvc_syntax
135
+ path_flags = path_flags.collect do |flag|
136
+ flag.gsub(/\A-L/, "/libpath:")
137
+ end
138
+ other_flags = other_flags.collect do |flag|
139
+ if /\A-l/ =~ flag
140
+ "#{$POSTMATCH}.lib"
141
+ else
142
+ flag
143
+ end
144
+ end
145
+ end
146
+ [path_flags, other_flags]
147
+ end
148
+
149
+ IDENTIFIER_RE = /[\w\d_.]+/
150
+ def parse_pc
151
+ raise ".pc for #{@name} doesn't exist." unless exist?
152
+ @variables = {}
153
+ @declarations = {}
154
+ File.open(pc) do |input|
155
+ input.each_line do |line|
156
+ line = line.gsub(/#.*/, '').strip
157
+ next if line.empty?
158
+ case line
159
+ when /^(#{IDENTIFIER_RE})=/
160
+ @variables[$1] = $POSTMATCH.strip
161
+ when /^(#{IDENTIFIER_RE}):/
162
+ @declarations[$1] = $POSTMATCH.strip
163
+ end
164
+ end
165
+ end
166
+ end
167
+
168
+ def parse_requires(requires)
169
+ return [] if requires.nil?
170
+ requires_without_version = requires.gsub(/[<>]?=\s*[\d.]+\s*/, '')
171
+ requires_without_version.split(/[,\s]+/)
172
+ end
173
+
174
+ def parse_override_variables(override_variables)
175
+ variables = {}
176
+ override_variables.split(",").each do |variable|
177
+ name, value = variable.split("=", 2)
178
+ variables[name] = value
179
+ end
180
+ variables
181
+ end
182
+
183
+ def expand_value(value)
184
+ return nil if value.nil?
185
+ value.gsub(/\$\{(#{IDENTIFIER_RE})\}/) do
186
+ variable($1)
187
+ end
188
+ end
189
+
190
+ def search_pkg_config_from_path(pkg_config)
191
+ (ENV["PATH"] || "").split(separator).each do |path|
192
+ try_pkg_config = Pathname(path) + pkg_config
193
+ return try_pkg_config if try_pkg_config.exist?
194
+ end
195
+ nil
196
+ end
197
+
198
+ def search_pkg_config_by_dln_find_exe(pkg_config)
199
+ begin
200
+ require "dl/import"
201
+ rescue LoadError
202
+ return nil
203
+ end
204
+ dln = Module.new
205
+ dln.module_eval do
206
+ if DL.const_defined?(:Importer)
207
+ extend DL::Importer
208
+ else
209
+ extend DL::Importable
210
+ end
211
+ begin
212
+ dlload RbConfig::CONFIG["LIBRUBY"]
213
+ rescue RuntimeError
214
+ return nil if $!.message == "unknown error"
215
+ return nil if /: image not found\z/ =~ $!.message
216
+ raise
217
+ rescue DL::DLError
218
+ return nil
219
+ end
220
+ extern "const char *dln_find_exe(const char *, const char *)"
221
+ end
222
+ dln.dln_find_exe(pkg_config.to_s, ".")
223
+ end
224
+
225
+ def guess_default_path
226
+ default_path = ["/usr/local/lib64/pkgconfig",
227
+ "/usr/local/lib/pkgconfig",
228
+ "/usr/local/libdata/pkgconfig",
229
+ "/opt/local/lib/pkgconfig",
230
+ "/usr/lib64/pkgconfig",
231
+ "/usr/lib/pkgconfig",
232
+ "/usr/X11/lib/pkgconfig/",
233
+ "/usr/share/pkgconfig"].join(separator)
234
+ libdir = ENV["PKG_CONFIG_LIBDIR"]
235
+ default_path = [libdir, default_path].join(separator) if libdir
236
+
237
+ pkg_config = with_config("pkg-config", ENV["PKG_CONFIG"] || "pkg-config")
238
+ pkg_config = Pathname.new(pkg_config)
239
+ unless pkg_config.absolute?
240
+ found_pkg_config = search_pkg_config_from_path(pkg_config)
241
+ pkg_config = found_pkg_config if found_pkg_config
242
+ end
243
+ unless pkg_config.absolute?
244
+ found_pkg_config = search_pkg_config_by_dln_find_exe(pkg_config)
245
+ pkg_config = found_pkg_config if found_pkg_config
246
+ end
247
+
248
+ return default_path unless pkg_config.absolute?
249
+ [(pkg_config.parent.parent + "lib" + "pkgconfig").to_s,
250
+ (pkg_config.parent.parent + "libdata" + "pkgconfig").to_s,
251
+ default_path].join(separator)
252
+ end
253
+ end
254
+
255
+ module PKGConfig
256
+ module_function
257
+ def msvc?
258
+ /mswin32/.match(RUBY_PLATFORM) and /^cl\b/.match(Config::CONFIG['CC'])
259
+ end
260
+
261
+ def package_config(package)
262
+ PackageConfig.new(package, nil, msvc?)
263
+ end
264
+
265
+ def exist?(pkg)
266
+ package_config(pkg).exist?
267
+ end
268
+
269
+ def libs(pkg)
270
+ package_config(pkg).libs
271
+ end
272
+
273
+ def libs_only_l(pkg)
274
+ package_config(pkg).libs_only_l
275
+ end
276
+
277
+ def cflags(pkg)
278
+ package_config(pkg).cflags
279
+ end
280
+
281
+ def cflags_only_I(pkg)
282
+ package_config(pkg).cflags_only_I
283
+ end
284
+
285
+ def modversion(pkg)
286
+ package_config(pkg).version
287
+ end
288
+
289
+ def check_version?(pkg, major = 0, minor = 0, micro = 0)
290
+ return false unless exist?(pkg)
291
+ ver = modversion(pkg).split(".").collect{|item| item.to_i}
292
+ (0..2).each {|i| ver[i] = 0 unless ver[i]}
293
+
294
+ (ver[0] > major ||
295
+ (ver[0] == major && ver[1] > minor) ||
296
+ (ver[0] == major && ver[1] == minor &&
297
+ ver[2] >= micro))
298
+ end
299
+
300
+ def have_package(pkg, major = nil, minor = 0, micro = 0)
301
+ if major.nil?
302
+ STDOUT.print("checking for #{pkg}... ")
303
+ else
304
+ STDOUT.print("checking for #{pkg} version (>= #{major}.#{minor}.#{micro})... ")
305
+ end
306
+ major ||= 0
307
+ STDOUT.flush
308
+ if check_version?(pkg, major, minor, micro)
309
+ STDOUT.print "yes\n"
310
+ libraries = libs_only_l(pkg)
311
+ dldflags = libs(pkg)
312
+ dldflags = (Shellwords.shellwords(dldflags) -
313
+ Shellwords.shellwords(libraries))
314
+ dldflags = dldflags.map {|s| /\s/ =~ s ? "\"#{s}\"" : s }.join(' ')
315
+ $libs += ' ' + libraries
316
+ if /mswin32/ =~ RUBY_PLATFORM
317
+ $DLDFLAGS += ' ' + dldflags
318
+ else
319
+ $LDFLAGS += ' ' + dldflags
320
+ end
321
+ $CFLAGS += ' ' + cflags(pkg)
322
+ true
323
+ else
324
+ STDOUT.print "no\n"
325
+ false
326
+ end
327
+ end
328
+ end
@@ -0,0 +1,35 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'hoe'
5
+ require './lib/test/unit/version.rb'
6
+
7
+ version = Test::Unit::VERSION
8
+ ENV["VERSION"] = version
9
+ Hoe.new('test-unit', version) do |p|
10
+ p.developer('Kouhei Sutou', 'kou@cozmixng.org')
11
+ p.developer('Ryan Davis', 'ryand-ruby@zenspider.com')
12
+
13
+ # Ex-Parrot:
14
+ # p.developer('Nathaniel Talbott', 'nathaniel@talbott.ws')
15
+ end
16
+
17
+ task :check_manifest => :clean_test_result
18
+ task :check_manifest => :clean_coverage
19
+
20
+ task :clean_test_result do
21
+ test_results = Dir.glob("**/.test-result")
22
+ sh("rm", "-rf", *test_results) unless test_results.empty?
23
+ end
24
+
25
+ task :clean_coverage do
26
+ sh("rm", "-rf", "coverage")
27
+ end
28
+
29
+ task :tag do
30
+ message = "Released Test::Unit #{version}!"
31
+ base = "svn+ssh://#{ENV['USER']}@rubyforge.org/var/svn/test-unit/"
32
+ sh 'svn', 'copy', '-m', message, "#{base}trunk", "#{base}tags/#{version}"
33
+ end
34
+
35
+ # vim: syntax=Ruby
data/test-unit/TODO ADDED
@@ -0,0 +1,5 @@
1
+ * mock.
2
+ * data-driven test.
3
+ * port ruby trunk's assert_equal's intelligent inspection
4
+ when inspected expected and actual are same content
5
+ string.
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ require 'test/unit'
3
+ (r = Test::Unit::AutoRunner.new(true)).process_args(ARGV) or
4
+ abort r.options.banner + " tests..."
5
+ exit r.run
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <title>Test::Unit (Classic)</title>
5
+ </head>
6
+ <body bgcolor="red">
7
+ <p style="text-align: center">
8
+ <img height="161" width="308" src="test-unit-classic.png">
9
+ <br>
10
+ <br>
11
+ <br>
12
+ Read the <a href="classic/test-unit/">rdoc</a>
13
+ </p>
14
+ </body>
15
+ </html>