diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2026-03-05 17:19:02 +0100 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2026-03-05 17:19:02 +0100 |
| commit | b48df44c377fa0da8af20f2eb73c602be5aeebd6 (patch) | |
| tree | 47a6ed96de31a4806f33f1969b50344330a1053d /unit_tests/embedded_tests.cpp | |
| parent | 7629055685170ec7ba30142bbbca8c4ad3608e2c (diff) | |
| download | lanes-b48df44c377fa0da8af20f2eb73c602be5aeebd6.tar.gz lanes-b48df44c377fa0da8af20f2eb73c602be5aeebd6.tar.bz2 lanes-b48df44c377fa0da8af20f2eb73c602be5aeebd6.zip | |
Tweak test lanes.embedding.with_default_allocator/single_state
Use a more complex upvalue scenario (I use this to debug my natvis)
Diffstat (limited to 'unit_tests/embedded_tests.cpp')
| -rw-r--r-- | unit_tests/embedded_tests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unit_tests/embedded_tests.cpp b/unit_tests/embedded_tests.cpp index 899530c..6b12c85 100644 --- a/unit_tests/embedded_tests.cpp +++ b/unit_tests/embedded_tests.cpp | |||
| @@ -180,9 +180,11 @@ TEST_CASE("lanes.embedding.with_default_allocator") | |||
| 180 | std::string_view const _script{ | 180 | std::string_view const _script{ |
| 181 | " local lanes = require 'lanes'.configure{with_timers = false}" | 181 | " local lanes = require 'lanes'.configure{with_timers = false}" |
| 182 | " local l = lanes.linda{name = 'gleh'}" | 182 | " local l = lanes.linda{name = 'gleh'}" |
| 183 | " local upvalue = 'oeauaoeuoeuaoeuaoeujaoefubycfjbycfybcfjybcfjybcfjbcf'" | 183 | " local str_upvalue = 'oeauaoeuoeuaoeuaoeujaoefubycfjbycfybcfjybcfjybcfjbcf'" |
| 184 | " local num_upvalue = 42" | ||
| 185 | " local tab_upvalue = {what = 'i am an upvalue'}" | ||
| 184 | " local upvalued = function()" | 186 | " local upvalued = function()" |
| 185 | " return upvalue" | 187 | " return str_upvalue, num_upvalue, tab_upvalue" |
| 186 | " end" | 188 | " end" |
| 187 | " local t = setmetatable({ true, true, true, a = true}, {__index = rawget })" | 189 | " local t = setmetatable({ true, true, true, a = true}, {__index = rawget })" |
| 188 | " l:set('yo', true, 10, 100.0, upvalue, t, upvalued)" // put a breakpoint in linda_set to have some data to explore with the NATVIS | 190 | " l:set('yo', true, 10, 100.0, upvalue, t, upvalued)" // put a breakpoint in linda_set to have some data to explore with the NATVIS |
