robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

master
465 B18 linesraw
1local t = require('test.testutil')
2
3local describe, it = t.describe, t.it
4describe('vim.text', function()
5  local input, output = string.rep('😂', 2 ^ 16), string.rep('F09F9882', 2 ^ 16)
6
7  it('hexencode', function()
8    t.bench(function()
9      vim.text.hexencode(input)
10    end, { n = 100, label = 'hexencode' })
11  end)
12
13  it('hexdecode', function()
14    t.bench(function()
15      vim.text.hexdecode(output)
16    end, { n = 100, label = 'hexdecode' })
17  end)
18end)