1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* sample/test.rb: fix to show line information whether test succeeds.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-06-15 03:18:12 +00:00
parent d3be3d7102
commit f84c8cb190
3 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,7 @@
Fri Jun 15 12:14:07 2007 Koichi Sasada <ko1@atdot.net>
* sample/test.rb: fix to show line information whether test succeeds.
Thu Jun 14 17:16:05 2007 Tanaka Akira <akr@fsij.org>
* eval_load.c (Init_load): delay allocating an array for rb_load_path

View file

@ -14,10 +14,10 @@ end
def test_ok(cond,n=1)
$testnum+=1
$ntest+=1
where = (st = caller(n)) ? st[0] : "caller error! (n=#{n}, trace=#{caller(0).join(', ')}"
if cond
printf "ok %d\n", $testnum
printf "ok %d (%s)\n", $testnum, where
else
where = (st = caller(n)) ? st[0] : "caller error! (n=#{n}, trace=#{caller(0).join(', ')}"
printf "not ok %s %d -- %s\n", $what, $testnum, where
$failed+=1
end

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2007-06-14"
#define RUBY_RELEASE_DATE "2007-06-15"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20070614
#define RUBY_RELEASE_CODE 20070615
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 6
#define RUBY_RELEASE_DAY 14
#define RUBY_RELEASE_DAY 15
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];