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

strange error message: results.d(1192): Range violation #95

Open
mw66 opened this issue Oct 10, 2020 · 0 comments
Open

strange error message: results.d(1192): Range violation #95

mw66 opened this issue Oct 10, 2020 · 0 comments

Comments

@mw66
Copy link

mw66 commented Oct 10, 2020

#!/usr/bin/env dub
/+ dub.sdl:
dependency "fluent-asserts" version="~>0.13.0"
dependency "dateparser" version="~>3.0.3"
+/

import fluent.asserts;

void main() {
  int[] wa = new int[1442];
  int[] da = new int[6953];
  auto dl = da.length / 5;
  //Assert.lessThan(wa.length, dl+3);   // normal assertion failure
  Assert.   lessThan(wa.length, dl+3);  // strange core.exception.RangeError@../../../.dub/packages/fluent-asserts-0.13.3/fluent-asserts/source/fluentasserts/core/results.d(1192): Range violation
}

Please notice it's the spaces Assert. lessThan(...) that triggered this Range violation.

@mw66 mw66 changed the title strange error message: strange error message: results.d(1192): Range violation Oct 10, 2020
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

1 participant