diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-06 02:15:25 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-06 02:15:25 +0900 |
| commit | 4f9a7e90adf0bdd77e7971d5066834c68eac33b0 (patch) | |
| tree | 2679c6cdc8a0cb706698655acc606ac21298f3c3 /test | |
| parent | 56817a91a7c66c697bac74a1ea85f90d1a95886a (diff) | |
| download | mruby-4f9a7e90adf0bdd77e7971d5066834c68eac33b0.tar.gz mruby-4f9a7e90adf0bdd77e7971d5066834c68eac33b0.zip | |
test_time should pass
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_time.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_time.rb b/test/test_time.rb index 737b7e060..79d658e1b 100644 --- a/test/test_time.rb +++ b/test/test_time.rb @@ -31,9 +31,8 @@ assert("gm day") { doom.mday == 23 } t0 = Time.new assert("Can create time.") { t0 } -t1 = Time.at(1300000000.0e6).utc -p t1.asctime -assert("asctime") { t1.asctime == "Sun Mar 13 16:06:40 UTC 2011" } +t1 = Time.at(1300000000.0).utc +assert("asctime") { t1.asctime == "Sun Mar 13 07:06:40 UTC 2011" } assert("usec") { t1.usec == 0 } assert("to_i") { t1.to_i == 1300000000 } assert("to_f") { t1.to_f == 1300000000.0 } @@ -43,7 +42,7 @@ assert("wday") { t1.wday == 0 } assert("yday") { t1.yday == 71 } assert("year") { t1.year == 2011 } -t2 = Time.new(7.0e6) +t2 = Time.at(7.0e6) t1.initialize_copy(t2) assert("initialize_copy") { t1 == t2 } |
