From 739d987cb74e01247d7567f7bea1947db2299e8b Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 9 Dec 2025 23:40:24 +0200 Subject: [PATCH] Add a test for tostring fix --- spec/harfbuzz_spec.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/harfbuzz_spec.lua b/spec/harfbuzz_spec.lua index 77e8b8a..c24a32a 100644 --- a/spec/harfbuzz_spec.lua +++ b/spec/harfbuzz_spec.lua @@ -11,6 +11,14 @@ describe("harfbuzz module", function() assert.is_not.True(#shapers == 0) end) + it("no __tostring in in class tables", function() + local luaharfbuzz = require("luaharfbuzz") + for k,v in pairs(luaharfbuzz) do + assert(tostring(k)) + assert(tostring(v)) + end + end) + describe("harfbuzz.Blob", function() it("can be initialized with a string", function() local s = "test string"