diff options
Diffstat (limited to 'linden/indra/test/llsd_new_tut.cpp')
-rw-r--r-- | linden/indra/test/llsd_new_tut.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/linden/indra/test/llsd_new_tut.cpp b/linden/indra/test/llsd_new_tut.cpp index 6c8d96a..7332d97 100644 --- a/linden/indra/test/llsd_new_tut.cpp +++ b/linden/indra/test/llsd_new_tut.cpp | |||
@@ -5,7 +5,7 @@ | |||
5 | * | 5 | * |
6 | * $LicenseInfo:firstyear=2006&license=viewergpl$ | 6 | * $LicenseInfo:firstyear=2006&license=viewergpl$ |
7 | * | 7 | * |
8 | * Copyright (c) 2006-2008, Linden Research, Inc. | 8 | * Copyright (c) 2006-2009, Linden Research, Inc. |
9 | * | 9 | * |
10 | * Second Life Viewer Source Code | 10 | * Second Life Viewer Source Code |
11 | * The source code in this file ("Source Code") is provided by Linden Lab | 11 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -108,7 +108,7 @@ namespace tut | |||
108 | SDCleanupCheck check; | 108 | SDCleanupCheck check; |
109 | 109 | ||
110 | LLSD v; | 110 | LLSD v; |
111 | 111 | ||
112 | v = true; ensureTypeAndValue("set true", v, true); | 112 | v = true; ensureTypeAndValue("set true", v, true); |
113 | v = false; ensureTypeAndValue("set false", v, false); | 113 | v = false; ensureTypeAndValue("set false", v, false); |
114 | v = true; ensureTypeAndValue("set true again", v, true); | 114 | v = true; ensureTypeAndValue("set true again", v, true); |
@@ -749,6 +749,15 @@ namespace tut | |||
749 | } | 749 | } |
750 | } | 750 | } |
751 | 751 | ||
752 | template<> template<> | ||
753 | void SDTestObject::test<14>() | ||
754 | // make sure that assignment of char* NULL in a string does not crash. | ||
755 | { | ||
756 | LLSD v; | ||
757 | v = (const char*)NULL; | ||
758 | ensure("type is a string", v.isString()); | ||
759 | } | ||
760 | |||
752 | /* TO DO: | 761 | /* TO DO: |
753 | conversion of undefined to UUID, Date, URI and Binary | 762 | conversion of undefined to UUID, Date, URI and Binary |
754 | conversion of undefined to map and array | 763 | conversion of undefined to map and array |