diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-29 15:05:19 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-29 15:05:19 +0200 |
commit | f125d90796a7394760e98380255117952bcb0109 (patch) | |
tree | 8a55aca136c8667112ee9484e11740d9ef126afc /tests | |
parent | 4007dbf5a2262a7c4f2f26089071942dde7c3a91 (diff) | |
download | lanes-f125d90796a7394760e98380255117952bcb0109.tar.gz lanes-f125d90796a7394760e98380255117952bcb0109.tar.bz2 lanes-f125d90796a7394760e98380255117952bcb0109.zip |
Fix bad std::optional usage
Diffstat (limited to 'tests')
-rw-r--r-- | tests/nameof.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/nameof.lua b/tests/nameof.lua index 79d5760..5c4f1b1 100644 --- a/tests/nameof.lua +++ b/tests/nameof.lua | |||
@@ -1,4 +1,4 @@ | |||
1 | local lanes = require "lanes".configure() | 1 | local lanes = require "lanes".configure{on_state_create = function() end} |
2 | 2 | ||
3 | print("Name of table: ", lanes.nameof({})) | 3 | print("Name of table: ", lanes.nameof({})) |
4 | print("Name of string.sub: ", lanes.nameof(string.sub)) | 4 | print("Name of string.sub: ", lanes.nameof(string.sub)) |
@@ -22,4 +22,4 @@ h:cancel("line", 1) | |||
22 | lanes.sleep(0.1) | 22 | lanes.sleep(0.1) |
23 | print("Name of lane: ", lanes.nameof(h), "("..h.status..")") | 23 | print("Name of lane: ", lanes.nameof(h), "("..h.status..")") |
24 | assert(h.status == "cancelled") | 24 | assert(h.status == "cancelled") |
25 | print "TEST OK" \ No newline at end of file | 25 | print "TEST OK" |