Commit graph

14572 commits

Author SHA1 Message Date
Robert Schadek
09bede3b80 adding assert messages to rbtree 2020-01-27 09:23:07 +00:00
Nicholas Wilson
18bf58f157
Merge pull request #7366 from kinke/mathsf
std.math: Follow-up to #7362
2020-01-26 21:21:34 +08:00
The Dlang Bot
1d166410c8
Merge pull request #7368 from kinke/schwartz
std.algorithm.sorting: Enable binary transform function for schwartzSort
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-01-25 07:14:33 +01:00
Martin Kinkelin
5497b666e4 std.algorithm.sorting: Enable binary transform function for schwartzSort
Receiving the element's index in the original range as 2nd parameter.
2020-01-25 04:36:33 +01:00
The Dlang Bot
9b323cecfe
Merge pull request #7364 from berni44/could_not_locate_warning
Remove 'could not locate' warning from std unittests
merged-on-behalf-of: Petar Kirov <PetarKirov@users.noreply.github.com>
2020-01-24 18:38:02 +01:00
Bernhard Seckinger
fd05d96149 Remove 'could not locate' warning from std unittests 2020-01-24 18:33:39 +02:00
Martin Kinkelin
f88116c2a3 bikeshed 2020-01-24 16:17:28 +01:00
Martin Kinkelin
4141cc15ad std.math: Follow-up to #7362
Get rid of redundant version conditions and don't disable whole unittest
blocks (like the extensive exp() tests) just because IEEE flags are
tested too.
2020-01-24 15:50:11 +01:00
Martin Kinkelin
4d98ca2ba8 Hide IEEE flags and FloatingPointControl for soft-float targets 2020-01-24 13:26:43 +07:00
Atila Neves
f049f0fd4b Make one std.algorithm.iteration.map unittest @nogc 2020-01-22 12:51:02 +01:00
Vladimir Panteleev
2b86fe1ff9
Fix Issue 20521 - Checking for and getting empty variables on Wine / XP fails
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48471
2020-01-21 15:07:43 +00:00
Alexandru Militaru
bb62aaca3d Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest 2020-01-19 14:05:17 +02:00
The Dlang Bot
e373b4e774
Merge pull request #7351 from berni44/mergestable
Merging stable back into master
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-01-14 09:20:12 +01:00
The Dlang Bot
6b404ebd44
Merge pull request #7345 from alexandrumc/rework-version
Some version (unittest) blocks removed
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2020-01-13 16:10:10 +01:00
Bernhard Seckinger
6655428b0e Merge branch 'stable' into mergestable 2020-01-13 09:52:27 +01:00
The Dlang Bot
495916b71b
Merge pull request #7302 from berni44/issue15891
Fix Issue 15891 - Compiler error when std.algorithm.cache after 2 layers of std.algorithm.map
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-01-13 08:37:20 +01:00
The Dlang Bot
dd27702095
Merge pull request #7346 from berni44/reg_formatA_stable
Fix performance regression introduced by PR #7285.
merged-on-behalf-of: David Nadlinger <code@klickverbot.at>
2020-01-12 21:55:51 +01:00
dkorpel
d4f74834d5 fix issue 20493 - incorrect result of BigInt * BigInt 2020-01-11 14:17:47 +01:00
The Dlang Bot
53ba9bb693
Merge pull request #7347 from schveiguy/choosesafe
Fix issue 20495 (choose copies unused union member, which is unsafe)
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-01-10 06:45:26 +01:00
Steven Schveighoffer
ae6de5515d Fix issue 19738. Make trusted parts of ChooseResult.opAssign smaller in case the
individual ranges have system opAssign.
2020-01-09 23:54:58 -05:00
Steven Schveighoffer
857543416d Fix issue 20495. Fixes safety of save function by passing init value of
unused union member to ctor. Also simplify the @safe inference.
2020-01-09 22:17:31 -05:00
Bernhard Seckinger
66a2ba02fd Fix Issue 15891 - Compiler error when std.algorithm.cache after 2
layers of std.algorithm.map
2020-01-08 16:05:25 +01:00
Bernhard Seckinger
bcf17697d4 Fix performance regression introduced by PR #7285. 2020-01-07 11:26:09 +01:00
Alexandru Militaru
d3e1bb0cdb Some version (unittest) blocks removed 2020-01-06 17:53:09 +02:00
The Dlang Bot
f66da1f8c9
Merge pull request #7337 from berni44/issue16262
Make assumeUTF nothrow
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-01-06 10:18:50 +01:00
Petar Kirov
c039fed843
Merge pull request #7343 from schveiguy/safebitmanip
Mark CTFE bitmanip function for generating longs to a string as @safe and pure
2020-01-06 01:12:19 +02:00
Steven Schveighoffer
f204ce7444 Mark CTFE bitmanip function for generating longs to a string as @safe and pure.
Helps with proposed DIP1028
2020-01-05 13:44:03 -05:00
aG0aep6G
f5f23b3d0d many existing tests can be @safe now 2020-01-05 01:32:03 +01:00
aG0aep6G
36ca83737a fix issue 20480 - make std.getopt ready for DIP 1000 2020-01-05 01:28:26 +01:00
Bernhard Seckinger
357a4df94d Fix Issue 7006 - std.math.pow (integral, integral) crashes on negative exponents 2020-01-03 09:00:46 +01:00
Bernhard Seckinger
cc36941901 Make assumeUTF nothrow. 2020-01-02 18:18:13 +01:00
Atila Neves
d3e03a9ef9
Merge pull request #7339 from Zevenberge/improve-sum-error-message
Improved error message when calling sum without a default value
2020-01-02 09:59:15 +00:00
Atila Neves
6561eb485a
Merge pull request #7331 from berni44/stable_numeric_customfloat
Merge pull request #7328 from berni44/reg_numeric_customfloat
2020-01-02 09:48:11 +00:00
The Dlang Bot
d0d02596dc
Merge pull request #7333 from berni44/issue7446
Fix Issue 7446 - [TDPL] Trivial asynchronous file copy example crashes
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-01-02 09:20:06 +01:00
Ben Jones
21949736f6 bugzilla issue 4391 add curry to std.functional (#6963)
bugzilla issue 4391 add curry to std.functional 
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-01-02 02:44:32 +01:00
The Dlang Bot
c777fa90e5
Merge pull request #7338 from berni44/issue12461
Fix Issue 12461 - Typedef and opOpAssign
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-12-31 10:24:42 +01:00
Marco de Wild
d93e7be91d
Improved error message when calling sum without a default value
If sum() is called, it tries to find a default value by constructing it with 0 (e.g. float(0)). This works for numbers, but produces obscure errors if the value cannot be constructed this way (e.g. issue #19525). The error message now states that the problem lies in the default value and suggests to supply one instead.
2019-12-30 16:11:55 +01:00
The Dlang Bot
d6540d76df
Merge pull request #7241 from berni44/isClose
Add isClose, a replacement for approxEqual
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-12-30 14:53:44 +01:00
Bernhard Seckinger
1d45910499 Add isClose, a replacement for approxEqual 2019-12-30 13:41:14 +01:00
Bernhard Seckinger
998ac2bc36 Fix Issue 12461 - Typedef and opOpAssign 2019-12-30 13:25:00 +01:00
The Dlang Bot
e3c912f7e6
Merge pull request #7319 from berni44/issue17427
Fix Issue 17427 - std.concurrency internal errors on uninitialised mailbox
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-12-30 09:48:37 +01:00
The Dlang Bot
478055f703
Merge pull request #7335 from BoraxMan/patch-1
Add further example for std.normalize
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-12-30 00:40:47 +01:00
The Dlang Bot
c37c4bccc3
Merge pull request #7151 from n8sh/issue-20146-20147
std.bigint.BigInt: allow casting to floating point numbers
merged-on-behalf-of: unknown
2019-12-30 00:02:51 +01:00
Nicholas Wilson
e8a4e9cb74
Merge pull request #7334 from berni44/issue5232
Fix Issue 5232 - [patch] std.conv.to & std.conv.roundTo report invalid overflows for very large numbers
2019-12-29 14:19:08 +08:00
Bernhard Seckinger
43276247b5 Fix Issue 20259 - [Function Socket.bind] Doesn't inform what Exception
it throws
2019-12-28 09:48:05 +01:00
Bernhard Seckinger
6a1b88fcb8 Fix Issue 5232 - [patch] std.conv.to & std.conv.roundTo report invalid
overflows for very large numbers
2019-12-28 09:27:40 +01:00
Atila Neves
da677375ab
Merge pull request #7332 from berni44/stable_numeric_findroot
Merge pull request #7329 from berni44/reg_numeric_findroot
2019-12-28 08:13:05 +00:00
Dennis Katsonis
3a7643fb03
Add further example for std.normalize
No examples provided which specify use of "sum" parameter.  The current examples imply that template parameters are not required, but this is not true when "sum" value is specified, which may confuse users wondering why normalize(a,50) does not compile.

The added example makes it clearer.
2019-12-28 19:05:19 +11:00
Bernhard Seckinger
9340d7a6b1 Fix Issue 7446 - [TDPL] Trivial asynchronous file copy example crashes
with OwnerTerminated
2019-12-27 11:35:32 +01:00
The Dlang Bot
3397b7981e Merge pull request #7329 from berni44/reg_numeric_findroot
Fix unittest, which assumes real > double.
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-12-26 12:33:14 +01:00