• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / #36977
77%

Build:
DEFAULT BRANCH: master
Ran 30 Aug 2021 09:40AM UTC
Jobs 1
Files 373
Run time 1545min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
#36977

push

local

web-flow
handle the condition in `in` when `step(r::AbstractRange)` equals 0  (#41974)

* handle the condition in `in` when `step` equals 0

Using `in` when `step(r::AbstractRange) == 0` results in an error.

Handle this case by using boolean logic for both the definitions to
which this case applies (`x::Real` and `x::AbstractChar`).
First, check if the step equals zero and if `x` (the value) equals the
reference value before performing the invalid `mod` operation.

Signed-off-by: Anant Thazhemadam <anant.thazhemadam@gmail.com>

* add tests for `StepRangeLen` when step equals 0

Add two tests (one which passes and another which fails) each,
for `in` with `StepRangeLen` that has step = 0, where `x` is of
type `Real` and `AbstractChar`.

Signed-off-by: Anant Thazhemadam <anant.thazhemadam@gmail.com>

62318 of 77384 relevant lines covered (80.53%)

2611978.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #36977.1 30 Aug 2021 09:40AM UTC 0
80.53
Source Files on build #36977
Detailed source file information is not available for this build.
  • Back to Repo
  • c9140623 on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc