Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Unified Diff: test/cctest/test-api.cc

Issue 3037051: [Isolates] Added specific check for Fibonacci results. (Closed)
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
Vitaly Repeshko 2010/08/06 20:43:14 http://www.wolframalpha.com/input/?i=fibonacci+21
+ CHECK(result1 == 10946);
+ CHECK(result2 == 144);
CHECK(result1 == thread1.result());
CHECK(result2 == thread2.result());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698