first commit
CI / Build (clang, clang++, ubuntu-22.04, linux, 3.10, master, x86,x86_64) (push) Canceled after 0s
CI / Build (clang, clang++, windows-2022, windows, 3.10, master, x86,x86_64) (push) Canceled after 0s
CI / Release (push) Canceled after 0s

This commit is contained in:
2026-09-13 22:18:11 +01:00
commit 08c03ac533
6701 changed files with 1577314 additions and 0 deletions
@@ -0,0 +1,29 @@
assert("sleep works") do
assert_nothing_raised { sleep(1) }
assert_nothing_raised { sleep(0) }
end
assert("sleep would accept non-negative float value") do
skip unless Object.const_defined?(:Float)
assert_nothing_raised { sleep(0.01) }
assert_nothing_raised { sleep(0.0) }
assert_nothing_raised { sleep(-0.0) }
end
assert("sleep would not accept negative integer value") do
assert_raise(ArgumentError) { sleep(-1) }
end
assert("sleep would not accept negative float value") do
skip unless Object.const_defined?(:Float)
assert_raise(ArgumentError) { sleep(-0.1) }
end
assert("usleep works") do
assert_nothing_raised { usleep(100) }
assert_nothing_raised { usleep(0) }
end
assert("usleep would not accept negative value") do
assert_raise(ArgumentError) { usleep(-100) }
end