aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-02-13 00:51:45 +0000
committerJustin Clark-Casey (justincc)2013-02-13 00:51:45 +0000
commit70e641c70828bc0b726e4962a40efc90c54a5420 (patch)
treedc4d0b7da9013a4bc79ec4257fc9b8348035dffc /OpenSim/Region
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-70e641c70828bc0b726e4962a40efc90c54a5420.zip
opensim-SC_OLD-70e641c70828bc0b726e4962a40efc90c54a5420.tar.gz
opensim-SC_OLD-70e641c70828bc0b726e4962a40efc90c54a5420.tar.bz2
opensim-SC_OLD-70e641c70828bc0b726e4962a40efc90c54a5420.tar.xz
Add test for array as root element in TestJsonCreateStore()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index bba727d..9721b8d 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -135,6 +135,15 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
135 string value = (string)InvokeOp("JsonGetValue", storeId, "Hello"); 135 string value = (string)InvokeOp("JsonGetValue", storeId, "Hello");
136 Assert.That(value, Is.EqualTo("42.15")); 136 Assert.That(value, Is.EqualTo("42.15"));
137 } 137 }
138
139 // Test with an array as the root node
140 {
141 UUID storeId = (UUID)InvokeOp("JsonCreateStore", "[ 'one', 'two', 'three' ]");
142 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
143
144 string value = (string)InvokeOp("JsonGetValue", storeId, "[1]");
145 Assert.That(value, Is.EqualTo("two"));
146 }
138 } 147 }
139 148
140 [Test] 149 [Test]