aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/llsdmessagereader_tut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/test/llsdmessagereader_tut.cpp')
-rwxr-xr-xlinden/indra/test/llsdmessagereader_tut.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/test/llsdmessagereader_tut.cpp b/linden/indra/test/llsdmessagereader_tut.cpp
index 707cf31..5b644d0 100755
--- a/linden/indra/test/llsdmessagereader_tut.cpp
+++ b/linden/indra/test/llsdmessagereader_tut.cpp
@@ -30,6 +30,7 @@
30#include <tut/tut.h> 30#include <tut/tut.h>
31#include "lltut.h" 31#include "lltut.h"
32 32
33#include "message.h"
33#include "llsdmessagereader.h" 34#include "llsdmessagereader.h"
34#include "llsdutil.h" 35#include "llsdutil.h"
35 36
@@ -41,7 +42,7 @@ namespace tut
41 const std::string& expected_name) 42 const std::string& expected_name)
42 { 43 {
43 LLSDMessageReader msg; 44 LLSDMessageReader msg;
44 msg.setMessage(msg_name, msg_data); 45 msg.setMessage(gMessageStringTable.getString(msg_name.c_str()), msg_data);
45 ensure_equals("Ensure name", std::string(msg.getMessageName()), 46 ensure_equals("Ensure name", std::string(msg.getMessageName()),
46 expected_name); 47 expected_name);
47 } 48 }
@@ -189,7 +190,7 @@ namespace tut
189 void LLSDMessageReaderTestObject::test<9>() 190 void LLSDMessageReaderTestObject::test<9>()
190 // F32 191 // F32
191 { 192 {
192 F32 outValue, inValue = 121.44; 193 F32 outValue, inValue = 121.44f;
193 LLSDMessageReader msg = testType(inValue); 194 LLSDMessageReader msg = testType(inValue);
194 msg.getF32("block", "var", outValue); 195 msg.getF32("block", "var", outValue);
195 ensure_equals("Ensure F32", outValue, inValue); 196 ensure_equals("Ensure F32", outValue, inValue);
@@ -317,4 +318,3 @@ namespace tut
317 ensure_equals("Ensure Binary", outValue, inValue); 318 ensure_equals("Ensure Binary", outValue, inValue);
318 } 319 }
319} 320}
320