1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-07-14 19:02:05 -04:00

Cross-platform tests (#86)

This commit is contained in:
Alex Kotov 2022-06-21 21:18:28 +03:00 committed by GitHub
parent a904d7cf8e
commit a0517fb9dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 95 additions and 6 deletions

View file

@ -36,7 +36,13 @@ KernAux::Version.with_printf? and RSpec.describe KernAux, '.sprintf' do
else
arg.map do |item|
if item.is_a? Array
item[0]
if item.length == 1
item[0]
elsif item[0] == 'long long'
item[1]
else
raise "Unknown format: #{args.inspect}"
end
else
item
end