Skip to content

No tests for random library #446

@mjallday

Description

@mjallday

Problem or feature statement

https://github.com/python/cpython/blob/main/Lib/test/test_random.py - these tests have not been ported

I ran into a bug when trying to use random.randrange via `randrange(1, 100).

Received error from script engine: randrange() missing 1 required positional argument: stop in <builtin> at line number 0 at column number 0
Traceback (most recent call last):
    File "larky.star", line 73, column 28, in process
    Error in randrange: randrange() missing 1 required positional argument: stop.
Request id: 30eaab82df833ef3de097ddb5a57b57d.'

Advised solution

Add tests, fix method

Testing scenarios

See link

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions