Simpcomp (was: Union sometimes fails if applied to a list of lists whose representations are mixed between PlistRep and RangeRep) #1447
Labels
kind: bug: wrong result
Issues describing bugs that result in mathematically or otherwise wrong results, and PRs fixing them
kind: bug
Issues describing general bugs, and PRs fixing them
regression
A bug that only occurs in the branch, not in a release
topic: packages
issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker)
Milestone
Observed behaviour
If Union gets a list of PlistRep-lists and RangeRep-lists, it sometimes does not return the union of those collections.
Input:
Union( [ [1..2], [17], [20], [11,23..23], [14,26..26], [1,17..17], [23] ] );
Union( [ [1..2], [5,6], [5,11], [6,14..14], [17], [20], [11,23..23], [14,26..26], [1,17..17], [2,20..20], [23], [26] ] );
Output:
[1,2]
[ 1, 2, 5, 6, 11 ]
Expected behaviour
Union should return the union of the appropriate collections. In the given example the results should be respectively:
[1,2,11,14,17,20,23,26]
[ 1, 2, 5, 6, 11, 14, 17, 20, 23, 26 ]
Copy and paste GAP banner (to tell us about your setup)
This was tested on three different versions of GAP (up to 4.8.7).
┌───────┐ GAP 4.8.3, 19-Mar-2016, build of 2016-06-09 11:32:41 (CEST)
│ GAP │ http://www.gap-system.org
└───────┘ Architecture: x86_64-pc-linux-gnu-gcc-default64
┌───────┐ GAP 4.8.5, 25-Sep-2016, build of 2016-09-30 22:20:20 (CEST)
│ GAP │ http://www.gap-system.org
└───────┘ Architecture: x86_64-pc-linux-gnu-gcc-default64
┌───────┐ GAP 4.8.7, 24-Mar-2017, build of 2017-05-16 12:12:16 (UTC)
│ GAP │ https://www.gap-system.org
└───────┘ Architecture: x86_64-pc-linux-gnu-gcc-default64
The text was updated successfully, but these errors were encountered: