Merge pull request #28306 from jgouly/strings_spec_negative_zero

fix(test): fix strings_spec.lua for AArch64
This commit is contained in:
bfredl
2024-04-12 19:22:54 +02:00
committed by GitHub

View File

@@ -188,7 +188,7 @@ describe('vim_snprintf()', function()
a('nan', buf, bsize, '%f', 0.0 / 0.0)
a('inf', buf, bsize, '%f', 1.0 / 0.0)
a('-inf', buf, bsize, '%f', -1.0 / 0.0)
a('-0.000000', buf, bsize, '%f', -0.0)
a('-0.000000', buf, bsize, '%f', tonumber('-0.0'))
a('漢語', buf, bsize, '%s', '漢語')
a(' 漢語', buf, bsize, '%8s', '漢語')
a('漢語 ', buf, bsize, '%-8s', '漢語')
@@ -233,7 +233,7 @@ describe('vim_snprintf()', function()
a('nan', buf, bsize, '%1$f', 0.0 / 0.0)
a('inf', buf, bsize, '%1$f', 1.0 / 0.0)
a('-inf', buf, bsize, '%1$f', -1.0 / 0.0)
a('-0.000000', buf, bsize, '%1$f', -0.0)
a('-0.000000', buf, bsize, '%1$f', tonumber('-0.0'))
end
end)