mirror of
https://github.com/tailix/libkernaux.git
synced 2026-08-15 11:00:07 -04:00
mruby: fix code style
This commit is contained in:
parent
673f7c4b37
commit
4ea9f7b36f
1 changed files with 6 additions and 6 deletions
|
|
@ -205,8 +205,8 @@ end
|
||||||
|
|
||||||
assert 'KernAux.utoa8' do
|
assert 'KernAux.utoa8' do
|
||||||
test_utoa8 0, '0o0'
|
test_utoa8 0, '0o0'
|
||||||
test_utoa8 01, '0o1'
|
test_utoa8 0o1, '0o1'
|
||||||
test_utoa8 0123, '0o123'
|
test_utoa8 0o123, '0o123'
|
||||||
test_utoa8 2**32 - 1, "0o#{(2**32 - 1).to_s(8)}"
|
test_utoa8 2**32 - 1, "0o#{(2**32 - 1).to_s(8)}"
|
||||||
|
|
||||||
assert_raise RangeError, 'can\'t convert negative number to uint64_t' do
|
assert_raise RangeError, 'can\'t convert negative number to uint64_t' do
|
||||||
|
|
@ -216,10 +216,10 @@ end
|
||||||
|
|
||||||
assert 'KernAux.itoa8' do
|
assert 'KernAux.itoa8' do
|
||||||
test_itoa8 0, '0o0'
|
test_itoa8 0, '0o0'
|
||||||
test_itoa8 01, '0o1'
|
test_itoa8 0o1, '0o1'
|
||||||
test_itoa8(-01, '-0o1')
|
test_itoa8(-0o1, '-0o1')
|
||||||
test_itoa8 0123, '0o123'
|
test_itoa8 0o123, '0o123'
|
||||||
test_itoa8(-0123, '-0o123')
|
test_itoa8(-0o123, '-0o123')
|
||||||
test_itoa8 2**31 - 1, "0o#{(2**31 - 1).to_s(8)}"
|
test_itoa8 2**31 - 1, "0o#{(2**31 - 1).to_s(8)}"
|
||||||
test_itoa8(-2**31, "-0o#{(2**31).to_s(8)}")
|
test_itoa8(-2**31, "-0o#{(2**31).to_s(8)}")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue