diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2011-02-06 21:32:25 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2011-02-06 21:32:25 -0500 |
commit | 1a1563bb154102c09a172235081d8db62e4fbec9 (patch) | |
tree | 7207634d5b4c485a52a40815748775517ca8ffb0 /indra/llcommon/tests | |
parent | f4f3791a5ff1cc76b9d1054c269e69d44cdaf8d6 (diff) |
Untested support for passing array to map-registered function.
An array-registered function has no param names, so you can only pass an
array: a map would be meaningless. Initial implementation of map-registered
functions assumed that since you CAN pass a map, you MUST pass a map. But in
fact it's meaningful to pass an array as well -- for whatever reason -- and
easy to implement, so there you are. Tests to follow.
Diffstat (limited to 'indra/llcommon/tests')
-rw-r--r-- | indra/llcommon/tests/lleventdispatcher_test.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llcommon/tests/lleventdispatcher_test.cpp b/indra/llcommon/tests/lleventdispatcher_test.cpp index bdd8c16cec..c599672bc5 100644 --- a/indra/llcommon/tests/lleventdispatcher_test.cpp +++ b/indra/llcommon/tests/lleventdispatcher_test.cpp @@ -682,7 +682,7 @@ namespace tut // (scalar | map | array (too short | too long | just right)) // [trap LL_WARNS for too-long case?] // - (Free function | non-static method), arbitrary args, map style with - // (scalar | array | map (all | too many | holes (with | without) defaults)) + // (scalar | (array | map) (all | too many | holes (with | without) defaults)) // - const char* param gets ("" | NULL) // Query cases: @@ -1108,7 +1108,9 @@ namespace tut std::string map_exc("needs a map"); call_exc("free0_map", 17, map_exc); - call_exc("free0_map", LLSDArray("a")("b"), map_exc); + // Passing an array to a map-style function works now! No longer an + // error case! +// call_exc("free0_map", LLSDArray("a")("b"), map_exc); } struct FunctionsTriple |