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

Side by Side Diff: test/cctest/test-fast-dtoa.cc

Issue 1102002: Rename files containing underscores. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-double.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 2
3 #include <stdlib.h> 3 #include <stdlib.h>
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "platform.h" 7 #include "platform.h"
8 #include "cctest.h" 8 #include "cctest.h"
9 #include "diy_fp.h" 9 #include "diy-fp.h"
10 #include "double.h" 10 #include "double.h"
11 #include "fast-dtoa.h" 11 #include "fast-dtoa.h"
12 #include "gay_shortest.h" 12 #include "gay-shortest.h"
13 13
14 using namespace v8::internal; 14 using namespace v8::internal;
15 15
16 static const int kBufferSize = 100; 16 static const int kBufferSize = 100;
17 17
18 TEST(FastDtoaVariousDoubles) { 18 TEST(FastDtoaVariousDoubles) {
19 char buffer[kBufferSize]; 19 char buffer[kBufferSize];
20 int sign; 20 int sign;
21 int length; 21 int length;
22 int point; 22 int point;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 if (!status) continue; 107 if (!status) continue;
108 if (length == kFastDtoaMaximalLength) needed_max_length = true; 108 if (length == kFastDtoaMaximalLength) needed_max_length = true;
109 succeeded++; 109 succeeded++;
110 CHECK_EQ(0, sign); // All precomputed numbers are positive. 110 CHECK_EQ(0, sign); // All precomputed numbers are positive.
111 CHECK_EQ(current_test.decimal_point, point); 111 CHECK_EQ(current_test.decimal_point, point);
112 CHECK_EQ(current_test.representation, buffer); 112 CHECK_EQ(current_test.representation, buffer);
113 } 113 }
114 CHECK_GT(succeeded*1.0/total, 0.99); 114 CHECK_GT(succeeded*1.0/total, 0.99);
115 CHECK(needed_max_length); 115 CHECK(needed_max_length);
116 } 116 }
OLDNEW
« no previous file with comments | « test/cctest/test-double.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698