Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nim v1 failed test: test_int_muldiv #88

Closed
jangko opened this issue Oct 2, 2019 · 3 comments
Closed

nim v1 failed test: test_int_muldiv #88

jangko opened this issue Oct 2, 2019 · 3 comments

Comments

@jangko
Copy link
Contributor

jangko commented Oct 2, 2019

this test failed with Nim 1.0.0

    F:\projects\nim-stint\tests\test_int_muldiv.nim(77, 32): Check failed: cast[int64](qr.rem) == -100'i64 mod 13
    -100'i64 mod 13 was 9
  [FAILED] Divmod(-100, 13) returns the correct result
    F:\projects\nim-stint\tests\test_int_muldiv.nim(86, 32): Check failed: cast[int64](qr.rem) == 100'i64 mod -13
    100'i64 mod -13 was -9
  [FAILED] Divmod(100, -13) returns the correct result
@jangko
Copy link
Contributor Author

jangko commented Oct 2, 2019

it is a Nim 0.20.0/1.0.0 bug nim-lang/Nim#12332

@arnetheduck
Copy link
Member

[1:54 PM] BOTgitterirc: well regarding #12332, most probably the fix won't be backported

@jangko
Copy link
Contributor Author

jangko commented Oct 23, 2019

closing. fixed by nim-lang/Nim#12402

@jangko jangko closed this as completed Oct 23, 2019
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

No branches or pull requests

2 participants