New submission from Cheryl Sabella:

Added test cases for `random` argument in random.shuffle for code coverage.

Two interesting results (documented within test cases):
1.  In the docs, `random` is defined as a function returning a float in the 
range [0, 1), but negative floats could be returned and shuffle worked using 
slice notation.
2.  A dictionary with sequential numeric keys could be shuffled.

----------
components: Tests
messages: 293253
nosy: csabella
priority: normal
severity: normal
status: open
title: Add code coverage for argument in random.shuffle
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30308>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to