local S,H=(require("\064\116\101\115\116\115\047\115\117\105\116\101"))()local a=require("\064\115\114\099\047\099\111\114\101\047\101\110\099\111\100\101")local R=require("\064\116\101\115\116\115\047\117\116\105\108\115")S("\101\110\099\111\100\101\115 \100\097\116\097 \099\111\114\114\101\099\116\108\121",function(S)S.expect.equal(a({1,"\116\101\115\116";2,"\116\101\115\116"}),{buff=buffer.fromstring(string.char(1)..string.char(2));events={{"\116\101\115\116"},{"\116\101\115\116"}}})end)return H()
local case, eof = require("@tests/suite")()
local encode = require("@src/core/encode")
local utils = require("@tests/utils")

case("encodes data correctly", function(interface)
	interface.expect.equal(encode({ 1, "test", 2, "test" }), {
		buff = buffer.fromstring(string.char(1) .. string.char(2)),
		events = {
			{ "test" },
			{ "test" },
		},
	})
end)

return eof()
