Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
April 20, 2012 [Issue 7948] New: std.range.zip broken with requireSameLength | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7948 Summary: std.range.zip broken with requireSameLength Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: jens.k.mueller@gmx.de --- Comment #0 from jens.k.mueller@gmx.de 2012-04-20 07:02:16 PDT --- unittest { import std.algorithm; import std.range; int[] a = [ 1, 2, 3 ]; string[] b = [ "a", "b", "c" ]; sort!("a[0] > b[0]")(zip(StoppingPolicy.requireSameLength, a, b)); assert(a == [ 3, 2, 1 ]); assert(b == [ "c", "b", "a" ]); } fails with phobos/std/range.d(3563): Invalid Zip object but is expected to pass (the provided ranges have the same length). The checking code in range.d is wrong. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 21, 2012 [Issue 7948] std.range.zip broken with requireSameLength | ||||
---|---|---|---|---|
| ||||
Posted in reply to jens.k.mueller@gmx.de | http://d.puremagic.com/issues/show_bug.cgi?id=7948 SomeDude <lovelydear@mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear@mailmetrash.com --- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-04-21 13:18:33 PDT --- For convenience, same code as above: import std.algorithm; import std.range; void main(){ int[] a = [ 1, 2, 3 ]; string[] b = [ "a", "b", "c" ]; sort!("a[0] > b[0]")(zip(StoppingPolicy.requireSameLength, a, b)); assert(a == [ 3, 2, 1 ]); assert(b == [ "c", "b", "a" ]); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 02, 2012 [Issue 7948] std.range.zip broken with requireSameLength | ||||
---|---|---|---|---|
| ||||
Posted in reply to jens.k.mueller@gmx.de | http://d.puremagic.com/issues/show_bug.cgi?id=7948 --- Comment #2 from github-bugzilla@puremagic.com 2012-07-01 18:29:54 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/61012d929e14815419e81130d8aa0a55e2119fa1 Fix issue 7948 https://github.com/D-Programming-Language/phobos/commit/142051a12af7408a773aae7e5c5933d19581e15f Merge pull request #626 from jkm/master Fix issue 7948 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 02, 2012 [Issue 7948] std.range.zip broken with requireSameLength | ||||
---|---|---|---|---|
| ||||
Posted in reply to jens.k.mueller@gmx.de | http://d.puremagic.com/issues/show_bug.cgi?id=7948 --- Comment #3 from github-bugzilla@puremagic.com 2012-07-01 18:32:26 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/0402fc77da62bc9397baefe890752b84365f6910 Updated changelog for fix to issue# 7948. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 02, 2012 [Issue 7948] std.range.zip broken with requireSameLength | ||||
---|---|---|---|---|
| ||||
Posted in reply to jens.k.mueller@gmx.de | http://d.puremagic.com/issues/show_bug.cgi?id=7948 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jmdavisProg@gmx.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation