Skip to content

logics-py: sum function not working  #33

@Pumuckl4630

Description

@Pumuckl4630

This test case:

8724 < sum([x * x for x in (500, 1000, 90, 250, 25) if x < 100])
#EXPECT:True

does not work in logics-py but it works in logics-js

The problem seems to be with the sum function as the comprehension produces the right result
Here is a screenshot with both cases.

grafik

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions