diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-07-29 18:07:16 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-07-29 18:07:16 +0200 |
| commit | bb11006f635a69dd9244e09e4359ed02eff8fe84 (patch) | |
| tree | 7fda9eda216b1683ff3dd954b6300c13bfaf2b14 /tests/error.lua | |
| parent | 34b2b5e712ea1cc59004ca48f79f54af162993a5 (diff) | |
| download | lanes-bb11006f635a69dd9244e09e4359ed02eff8fe84.tar.gz lanes-bb11006f635a69dd9244e09e4359ed02eff8fe84.tar.bz2 lanes-bb11006f635a69dd9244e09e4359ed02eff8fe84.zip | |
Internal refactorization to properly handle lua_resume idiosyncrasies
Diffstat (limited to 'tests/error.lua')
| -rw-r--r-- | tests/error.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/error.lua b/tests/error.lua index 126161e..a1ba1ce 100644 --- a/tests/error.lua +++ b/tests/error.lua | |||
| @@ -95,12 +95,12 @@ local make_table_error_mt = function() | |||
| 95 | end | 95 | end |
| 96 | 96 | ||
| 97 | local lane_error_as_string = "'lane error as string'" | 97 | local lane_error_as_string = "'lane error as string'" |
| 98 | local lane_error_as_table = setmetatable({}, make_table_error_mt()) | 98 | local lane_error_as_table = setmetatable({"lane error as table"}, make_table_error_mt()) |
| 99 | local lane_error_as_linda = lanes.linda("'lane error'") | 99 | local lane_error_as_linda = lanes.linda("'lane error'") |
| 100 | 100 | ||
| 101 | local finalizer_error_as_string = "'lane error as string'" | 101 | local finalizer_error_as_string = "'finalizer error as string'" |
| 102 | local finalizer_error_as_table = setmetatable({}, make_table_error_mt()) | 102 | local finalizer_error_as_table = setmetatable({"finalizer error as table"}, make_table_error_mt()) |
| 103 | local finalizer_error_as_linda = lanes.linda("'lane error'") | 103 | local finalizer_error_as_linda = lanes.linda("'finalizer error'") |
| 104 | 104 | ||
| 105 | local test_settings = {} | 105 | local test_settings = {} |
| 106 | local configure_tests = function() | 106 | local configure_tests = function() |
| @@ -150,6 +150,7 @@ local configure_tests = function() | |||
| 150 | end | 150 | end |
| 151 | end | 151 | end |
| 152 | end | 152 | end |
| 153 | WR "Tests configured" | ||
| 153 | end | 154 | end |
| 154 | 155 | ||
| 155 | configure_tests() | 156 | configure_tests() |
