Skip to content

Support negative integer literals in types#20

Open
23Skidoo wants to merge 1 commit into
pylon:masterfrom
23Skidoo:support-negative-literals
Open

Support negative integer literals in types#20
23Skidoo wants to merge 1 commit into
pylon:masterfrom
23Skidoo:support-negative-literals

Conversation

@23Skidoo

Copy link
Copy Markdown

Fixes #19.

Patch by @wojtekmach.

@23Skidoo

23Skidoo commented Feb 16, 2022

Copy link
Copy Markdown
Author

I have tested that this patch solves the problem for me:

iex(2)> Spect.to_spec(Decimal.new("1.23"), Decimal)
{:ok, #Decimal<1.23>}
iex(3)> Spect.to_spec(Decimal.new("-1.23"), Decimal)
{:ok, #Decimal<-1.23>}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spect can't handle negative Decimals

2 participants