From fd72b2951a8a5a1c1e419bf354fa3f396aa87418 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Sat, 23 Feb 2013 21:27:01 -0700 Subject: [PATCH] Correct broken unit test for vector of suffixed numbers --- contrib/codeanalysis/heterogenous_array_loop.chai | 2 +- unittests/vector_of_suffixed_numbers.chai | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/codeanalysis/heterogenous_array_loop.chai b/contrib/codeanalysis/heterogenous_array_loop.chai index f4aeb115b..5c688d1bd 100644 --- a/contrib/codeanalysis/heterogenous_array_loop.chai +++ b/contrib/codeanalysis/heterogenous_array_loop.chai @@ -1,5 +1,5 @@ -var my_array=["1", 4, 6.6, 10, "1000", 100, 10.9 ]; +var my_array=["1", 4, 6.6l, 10ul, "1000", 100, 10.9f ]; for (var j = 0; j < 10000; ++j) { diff --git a/unittests/vector_of_suffixed_numbers.chai b/unittests/vector_of_suffixed_numbers.chai index be3cb3a9f..aee96b9fe 100644 --- a/unittests/vector_of_suffixed_numbers.chai +++ b/unittests/vector_of_suffixed_numbers.chai @@ -1,2 +1,3 @@ -var x = [1, 2u] -assert_equal(2u, x[0]) +var x = [1, 2u, 3.0l] +assert_equal(3.0l, x[2]) +assert_equal(2u, x[1])