Reviewers: Vitaly,

Message:
TBR=vitalyr

Description:
[Isolates] Added specific check for Fibonacci results.
This is a follow-up to code review http://codereview.chromium.org/2836067/show,
I forgot to fix this before landing.

Please review this at http://codereview.chromium.org/3037051/show

Affected files:
  M test/cctest/test-api.cc


Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 272a01732acdba517d4277352831d17472910fb1..aa2023a5e09e5b5ba7c5097e6e84eeb454b09349 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -11423,7 +11423,10 @@ TEST(MultipleIsolatesOnIndividualThreads) {
   thread1.Join();
   thread2.Join();

-  // Compare results.
+  // Compare results. The actual fibonacci numbers for 12 and 21 are taken
+  // (I'm lazy!) from http://en.wikipedia.org/wiki/Fibonacci_number
+  CHECK(result1 == 10946);
+  CHECK(result2 == 144);
   CHECK(result1 == thread1.result());
   CHECK(result2 == thread2.result());



--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to