aboutsummaryrefslogtreecommitdiff
path: root/stdlib/stdlib.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-29 12:55:14 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-29 12:55:14 -0500
commit4b5e4cd1f21582f5e5fa682ab4e4bff252963468 (patch)
treee8fecb01f444c1d392c09255adba5cf6b312b326 /stdlib/stdlib.c
parent0b0e0a0a1d41e9574de8dc17c688a4894c5e7f92 (diff)
Change how types handle metamethods
Diffstat (limited to 'stdlib/stdlib.c')
-rw-r--r--stdlib/stdlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/stdlib.c b/stdlib/stdlib.c
index 5d51f651..6d0ddcad 100644
--- a/stdlib/stdlib.c
+++ b/stdlib/stdlib.c
@@ -467,12 +467,12 @@ public void end_test(const void *expr, const TypeInfo_t *type, const char *expec
if (expected && expected[0]) {
Text_t expected_text = Text$from_str(expected);
Text_t expr_plain = USE_COLOR ? generic_as_text(expr, false, type) : expr_text;
- bool success = Text$equal(&expr_plain, &expected_text);
+ bool success = Text$equal(&expr_plain, &expected_text, &Text$info);
if (!success) {
OptionalMatch_t colon = Text$find(expected_text, Text(":"), I_small(1));
if (colon.index.small) {
Text_t with_type = Text$concat(expr_plain, Text(" : "), type_name);
- success = Text$equal(&with_type, &expected_text);
+ success = Text$equal(&with_type, &expected_text, &Text$info);
}
}