1
0
Fork 0
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:
Alex Kotov 2022-05-30 22:37:58 +03:00
parent 673f7c4b37
commit 4ea9f7b36f
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -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