Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

fixed implementation of hex() builtin - all tests pass #748

Merged
merged 1 commit into from
May 16, 2018

Conversation

nicklambourne
Copy link
Contributor

@nicklambourne nicklambourne commented May 15, 2018

Changes

Completed the implementation of hex for all input types. Had to introduce a dependency to the implementation (BigNumber - previously used in the implementation of the Integer type) due to the differences in how Python and Javascript handle large numbers. Unsupported types are now handled with Python-compliant errors.

Problem

The builtin function hex was failing for input from every builtin type, including Bool and Int, which it is supposed to support. Other types were failing with incorrect error types.

Fixes

Contributes to fixing #47

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@phildini phildini merged commit cb70313 into beeware:master May 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants