Log inGet started
Package

valueText.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

Test.valueText

How the test framework renders a value nested inside a table for test output. Test.describeValue renders every failure message and raised error through it.

  • describeNested(value, depth, seen) renders value structurally ({code = "x", n = 2}): at most 8 entries per table, 2 levels deep, strings quoted and cut at 120 bytes, the hash part sorted so one value always renders the same text, a value with its own __tostring through it, and a cycle as <cycle>.
local ValueText = require("@builtin::assetTypes.testSuite.shared.valueText")
print(ValueText.describeNested({ code = "E1", line = 4 }, 0, {})) -- {code = "E1", line = 4}