Revision: 5199
Author: [email protected]
Date: Fri Aug  6 13:24:52 2010
Log: [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.

Review URL: http://codereview.chromium.org/3037051
http://code.google.com/p/v8/source/detail?r=5199

Modified:
 /branches/experimental/isolates/test/cctest/test-api.cc

=======================================
--- /branches/experimental/isolates/test/cctest/test-api.cc Mon Aug 2 17:41:48 2010 +++ /branches/experimental/isolates/test/cctest/test-api.cc Fri Aug 6 13:24:52 2010
@@ -11423,7 +11423,10 @@
   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