diff options
| author | Richard Linden <none@none> | 2011-09-02 20:24:06 -0700 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2011-09-02 20:24:06 -0700 | 
| commit | fc45e9cbf6ea74412acd8bb55098cfd15493292b (patch) | |
| tree | 27c697035feb1d5d7e6de07e9834d49271b5b1ee /indra/llmath | |
| parent | 0ab6eee0996c78d32b722157140cea5a21a5e460 (diff) | |
| parent | 1836dd12c9b45e90aeab095dd4cc3e9cdcaf2190 (diff) | |
Automated merge with http://hg.secondlife.com/viewer-development
Diffstat (limited to 'indra/llmath')
| -rw-r--r-- | indra/llmath/tests/v3math_test.cpp | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/indra/llmath/tests/v3math_test.cpp b/indra/llmath/tests/v3math_test.cpp index df7a77002f..e4ae1c10ef 100644 --- a/indra/llmath/tests/v3math_test.cpp +++ b/indra/llmath/tests/v3math_test.cpp @@ -564,4 +564,22 @@ namespace tut  		z1 = U8_to_F32(F32_to_U8(z, lowerz, upperz), lowerz, upperz);  		ensure("2:quantize8: Fail ", is_approx_equal(x1, vec3a.mV[VX]) && is_approx_equal(y1, vec3a.mV[VY]) && is_approx_equal(z1, vec3a.mV[VZ]));  	} + +	template<> template<> +	void v3math_object::test<35>() +	{ +		LLSD sd = LLSD::emptyArray(); +		sd[0] = 1.f; + +		LLVector3 parsed_1(sd); +		ensure("1:LLSD parse: Fail ", is_approx_equal(parsed_1.mV[VX], 1.f) && is_approx_equal(parsed_1.mV[VY], 0.f) && is_approx_equal(parsed_1.mV[VZ], 0.f)); + +		sd[1] = 2.f; +		LLVector3 parsed_2(sd); +		ensure("2:LLSD parse: Fail ", is_approx_equal(parsed_2.mV[VX], 1.f) && is_approx_equal(parsed_2.mV[VY], 2.f) && is_approx_equal(parsed_2.mV[VZ], 0.f)); + +		sd[2] = 3.f; +		LLVector3 parsed_3(sd); +		ensure("3:LLSD parse: Fail ", is_approx_equal(parsed_3.mV[VX], 1.f) && is_approx_equal(parsed_3.mV[VY], 2.f) && is_approx_equal(parsed_3.mV[VZ], 3.f)); +	}  } | 
