diff options
author | Justin Clark-Casey (justincc) | 2013-02-28 20:57:03 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-02-28 20:57:03 +0000 |
commit | 14684116f8ef23892b71ef16759224a536ac27bf (patch) | |
tree | 4857f32a20f03c2f7e42e6d00cf0e91b8d615b2f /OpenSim/Tests/Common/TestHelpers.cs | |
parent | Robust.HG.ini.example updated to get an [Hypergrid] section too. (diff) | |
download | opensim-SC_OLD-14684116f8ef23892b71ef16759224a536ac27bf.zip opensim-SC_OLD-14684116f8ef23892b71ef16759224a536ac27bf.tar.gz opensim-SC_OLD-14684116f8ef23892b71ef16759224a536ac27bf.tar.bz2 opensim-SC_OLD-14684116f8ef23892b71ef16759224a536ac27bf.tar.xz |
Add regression tests for llGetNotecardLine()
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tests/Common/TestHelpers.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/TestHelpers.cs b/OpenSim/Tests/Common/TestHelpers.cs index 57da802..a684d72 100644 --- a/OpenSim/Tests/Common/TestHelpers.cs +++ b/OpenSim/Tests/Common/TestHelpers.cs | |||
@@ -114,6 +114,27 @@ namespace OpenSim.Tests.Common | |||
114 | } | 114 | } |
115 | 115 | ||
116 | /// <summary> | 116 | /// <summary> |
117 | /// Parse a UUID stem into a full UUID. | ||
118 | /// </summary> | ||
119 | /// <remarks> | ||
120 | /// Yes, this is completely inconsistent with ParseTail but this is probably a better way to do it, | ||
121 | /// UUIDs are conceptually not hexadecmial numbers. | ||
122 | /// The fragment will come at the start of the UUID. The rest will be 0s | ||
123 | /// </remarks> | ||
124 | /// <returns></returns> | ||
125 | /// <param name='frag'> | ||
126 | /// A UUID fragment that will be parsed into a full UUID. Therefore, it can only contain | ||
127 | /// cahracters which are valid in a UUID, except for "-" which is currently only allowed if a full UUID is | ||
128 | /// given as the 'fragment'. | ||
129 | /// </param> | ||
130 | public static UUID ParseStem(string stem) | ||
131 | { | ||
132 | string rawUuid = stem.PadRight(32, '0'); | ||
133 | |||
134 | return UUID.Parse(rawUuid); | ||
135 | } | ||
136 | |||
137 | /// <summary> | ||
117 | /// Parse tail section into full UUID. | 138 | /// Parse tail section into full UUID. |
118 | /// </summary> | 139 | /// </summary> |
119 | /// <param name="tail"></param> | 140 | /// <param name="tail"></param> |