local Z=require("\046\046\047\115\116\097\114\116\115\087\105\116\104")local r=require("\064\112\107\103\047\064\106\115\100\111\116\108\117\097\047\106\101\115\116-\103\108\111\098\097\108\115")local s=r.expect local z=r.it z("\105\115 \116\114\117\101 \105\102 \116\104\101 \115\116\114\105\110\103 \115\116\097\114\116\115 \119\105\116\104 \116\104\101 \103\105\118\101\110 \115\117\098\115\116\114\105\110\103",function()(s(Z("\111\111\102","\111\111"))).toEqual(true)end)z("\105\115 \102\097\108\115\101 \105\102 \116\104\101 \115\116\114\105\110\103 \100\111\101\115 \110\111\116 \115\116\097\114\116 \119\105\116\104 \116\104\101 \103\105\118\101\110 \115\117\098\115\116\114\105\110\103",function()(s(Z("\111\111\102","\098"))).toEqual(false)end)z("\105\115 \116\114\117\101 \105\102 \116\104\101 \115\117\098\115\116\114\105\110\103 \105\115 \101\109\112\116\121",function()(s(Z("\111\111\102",""))).toEqual(true)end)
local startsWith = require('../startsWith')

local JestGlobals = require('@pkg/@jsdotlua/jest-globals')
local expect = JestGlobals.expect
local it = JestGlobals.it

it('is true if the string starts with the given substring', function()
    expect(startsWith('oof', 'oo')).toEqual(true)
end)

it('is false if the string does not start with the given substring', function()
    expect(startsWith('oof', 'b')).toEqual(false)
end)

it('is true if the substring is empty', function()
    expect(startsWith('oof', '')).toEqual(true)
end)
