diff options
author | Melanie Thielker | 2008-09-21 15:54:58 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-21 15:54:58 +0000 |
commit | 83b030229ec1d91edcf00269eedfc9c9075b877e (patch) | |
tree | dfd81404c516fae4ab7bb1551515b59d3545b0aa /OpenSim/Region/ScriptEngine/Common/Tests | |
parent | The viewer only stores a screenshot on "Set home to here" if the alert that (diff) | |
download | opensim-SC-83b030229ec1d91edcf00269eedfc9c9075b877e.zip opensim-SC-83b030229ec1d91edcf00269eedfc9c9075b877e.tar.gz opensim-SC-83b030229ec1d91edcf00269eedfc9c9075b877e.tar.bz2 opensim-SC-83b030229ec1d91edcf00269eedfc9c9075b877e.tar.xz |
Mantis #2232
Thank you, idb, for a patch that fixes an overflow issue in casting
string -> int for both engines, and adds tests!
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/Tests')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/Tests/LSL_TypesTestLSLInteger.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/Tests/LSL_TypesTestLSLInteger.cs b/OpenSim/Region/ScriptEngine/Common/Tests/LSL_TypesTestLSLInteger.cs index d2839db..a769608 100644 --- a/OpenSim/Region/ScriptEngine/Common/Tests/LSL_TypesTestLSLInteger.cs +++ b/OpenSim/Region/ScriptEngine/Common/Tests/LSL_TypesTestLSLInteger.cs | |||
@@ -62,6 +62,14 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
62 | m_stringIntSet.Add("123.9", 123); | 62 | m_stringIntSet.Add("123.9", 123); |
63 | m_stringIntSet.Add("999999999", 999999999); | 63 | m_stringIntSet.Add("999999999", 999999999); |
64 | m_stringIntSet.Add("-99999999", -99999999); | 64 | m_stringIntSet.Add("-99999999", -99999999); |
65 | m_stringIntSet.Add("", 0); | ||
66 | m_stringIntSet.Add("aa", 0); | ||
67 | m_stringIntSet.Add("42", 42); | ||
68 | m_stringIntSet.Add("42 is the answer", 42); | ||
69 | m_stringIntSet.Add(" 42", 42); | ||
70 | m_stringIntSet.Add("42,123,456", 42); | ||
71 | m_stringIntSet.Add("0xff", 255); | ||
72 | m_stringIntSet.Add("12345678900000", -1); | ||
65 | } | 73 | } |
66 | 74 | ||
67 | /// <summary> | 75 | /// <summary> |