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

Unified Diff: third_party/WebKit/Source/wtf/MathExtrasTest.cpp

Issue 2386843002: reflow comments in wtf (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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 | « third_party/WebKit/Source/wtf/MathExtras.h ('k') | third_party/WebKit/Source/wtf/PassRefPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/MathExtrasTest.cpp
diff --git a/third_party/WebKit/Source/wtf/MathExtrasTest.cpp b/third_party/WebKit/Source/wtf/MathExtrasTest.cpp
index ca8cab11cb134729c2d3e715ac210ffff9740b50..0ab26cd4e6fb9f82e81f271d87b69092e1bd0e62 100644
--- a/third_party/WebKit/Source/wtf/MathExtrasTest.cpp
+++ b/third_party/WebKit/Source/wtf/MathExtrasTest.cpp
@@ -40,10 +40,12 @@ TEST(MathExtrasTest, Lrint) {
EXPECT_EQ(0, lrint(0));
EXPECT_EQ(0, lrint(-0));
if (sizeof(long int) == 8) {
- // Largest double number with 0.5 precision and one halfway rounding case below.
+ // Largest double number with 0.5 precision and one halfway rounding case
+ // below.
EXPECT_EQ(pow(2.0, 52), lrint(pow(2.0, 52) - 0.5));
EXPECT_EQ(pow(2.0, 52) - 2, lrint(pow(2.0, 52) - 1.5));
- // Smallest double number with 0.5 precision and one halfway rounding case above.
+ // Smallest double number with 0.5 precision and one halfway rounding case
+ // above.
EXPECT_EQ(-pow(2.0, 52), lrint(-pow(2.0, 52) + 0.5));
EXPECT_EQ(-pow(2.0, 52) + 2, lrint(-pow(2.0, 52) + 1.5));
}
« no previous file with comments | « third_party/WebKit/Source/wtf/MathExtras.h ('k') | third_party/WebKit/Source/wtf/PassRefPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698