source-academy / js-slang

Implementations of sublanguages of JavaScript, TypeScript, Scheme and Python
https://source-academy.github.io/source/
Apache License 2.0
66 stars 104 forks source link

Created pylib.ts, added functions as built-ins to Python supporting BigInt typing. #1591

Closed JJtan2002 closed 6 months ago

JJtan2002 commented 6 months ago

This pull request adds functions to support binary operators and Math functions on Integers in Python. pylib.ts contains definitions of functions for binary operators and Math. These functions are declared as built-in functions for Python 1 in createContext.ts.

coveralls commented 6 months ago

Pull Request Test Coverage Report for Build 8383586925

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/stdlib/pylib.ts 43 107 40.19%
<!-- Total: 87 151 57.62% -->
Totals Coverage Status
Change from base Build 8383581983: -0.3%
Covered Lines: 10504
Relevant Lines: 12562

💛 - Coveralls