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

Issue 22943005: Add documentation to dart:math pow function. (Closed)

Created:
7 years, 4 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 4 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add documentation to dart:math pow function. Also add test, and modify implementation to match on the single case where it didn't. BUG= http://dartdog.com/1952 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=26347

Patch Set 1 #

Total comments: 2

Patch Set 2 : Extended documentation, more readable too? #

Patch Set 3 : Adding tests and updating test expectations. #

Total comments: 8

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -12 lines) Patch
M runtime/lib/math_patch.dart View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M sdk/lib/math/math.dart View 1 2 1 chunk +29 lines, -1 line 0 comments Download
M tests/co19/co19-runtime.status View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/lib.status View 1 2 1 chunk +5 lines, -1 line 0 comments Download
A tests/lib/math/double_pow_test.dart View 1 2 3 1 chunk +158 lines, -0 lines 0 comments Download
M tests/lib/math/math_test.dart View 1 2 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein Nielsen
7 years, 4 months ago (2013-08-19 14:13:49 UTC) #1
floitsch
LGTM. Please fix the CL title ("documentation"). Maybe consider splitting some of the +/-0 cases ...
7 years, 4 months ago (2013-08-19 14:47:31 UTC) #2
Lasse Reichstein Nielsen
Seems the IEEE 754 spec itself is incomplete on pow, so I'll see if I ...
7 years, 4 months ago (2013-08-19 15:51:31 UTC) #3
floitsch
still LGTM. https://codereview.chromium.org/22943005/diff/9001/runtime/lib/math_patch.dart File runtime/lib/math_patch.dart (right): https://codereview.chromium.org/22943005/diff/9001/runtime/lib/math_patch.dart#newcode23 runtime/lib/math_patch.dart:23: if (exponent is! num) { remove the ...
7 years, 4 months ago (2013-08-20 10:56:23 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/22943005/diff/9001/runtime/lib/math_patch.dart File runtime/lib/math_patch.dart (right): https://codereview.chromium.org/22943005/diff/9001/runtime/lib/math_patch.dart#newcode23 runtime/lib/math_patch.dart:23: if (exponent is! num) { On 2013/08/20 10:56:23, floitsch ...
7 years, 4 months ago (2013-08-20 12:18:11 UTC) #5
Lasse Reichstein Nielsen
7 years, 4 months ago (2013-08-20 12:23:15 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r26347 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698