diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-06-21 15:47:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-21 15:47:15 -0400 |
commit | 75accbefdbe7741d57bf093690d65ad1100f82d4 (patch) | |
tree | df77079b8da7ba5d6d3523ea9d9466f104bf66dd /indra/newview/scripts/lua/qtest.lua | |
parent | b16209f86a376cadfcc9f43604618de7fdc789e7 (diff) | |
parent | 56e4b8c5f637343c8a1a181fd59324e033b4782d (diff) |
Merge pull request #1725 from secondlife/lua-login
UI-related Lua API work
Diffstat (limited to 'indra/newview/scripts/lua/qtest.lua')
-rw-r--r-- | indra/newview/scripts/lua/qtest.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/scripts/lua/qtest.lua b/indra/newview/scripts/lua/qtest.lua index 009446d0c3..9526f58b04 100644 --- a/indra/newview/scripts/lua/qtest.lua +++ b/indra/newview/scripts/lua/qtest.lua @@ -21,8 +21,8 @@ function resume(co, ...) end -- ------------------ Queue variables are instance-specific ------------------ -q1 = Queue:new() -q2 = Queue:new() +q1 = Queue() +q2 = Queue() q1:Enqueue(17) @@ -33,8 +33,8 @@ assert(q1:Dequeue() == nil) assert(q2:Dequeue() == nil) -- ----------------------------- test WaitQueue ------------------------------ -q1 = WaitQueue:new() -q2 = WaitQueue:new() +q1 = WaitQueue() +q2 = WaitQueue() result = {} values = { 1, 1, 2, 3, 5, 8, 13, 21 } @@ -76,7 +76,7 @@ print('result:', inspect(result)) assert(util.equal(values, result)) -- try incrementally enqueueing values -q3 = WaitQueue:new() +q3 = WaitQueue() result = {} values = { 'This', 'is', 'a', 'test', 'script' } @@ -124,7 +124,7 @@ print(string.format('%q', table.concat(result, ' '))) assert(util.equal(values, result)) -- ----------------------------- test ErrorQueue ----------------------------- -q4 = ErrorQueue:new() +q4 = ErrorQueue() result = {} values = { 'This', 'is', 'a', 'test', 'script' } |