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

Wilfred / trifle / 401
98%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2014 01:05PM UTC
Jobs 1
Files 14
Run time 8s
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
401

push

travis-ci

Wilfred
Changing `if` to require the condition to be a boolean instead of a
'truthy' value.

This has several advantages. Firstly, it makes a type checker more useful
since previously the condition to `if` could be any type.

Secondly, it's more explicit. Compare:

    (if user-health (next-level) (game-over))

With:

    (if (zero? user-health) (game-over) (next-level))

Finally, it also helps catch errors earlier. Suppose a user writes:

    (if some-function (foo) (bar))

When they meant to write this:

    (if (some-function) (foo) (bar))

Previously this would be a subtle bug where `(foo)` is always
executed. Now, this is produces a helpful error.

2202 of 2346 relevant lines covered (93.86%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 401.1 05 Apr 2014 01:05PM UTC 0
93.86
Travis Job 401.1
Source Files on build 401
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #401
  • f3e0d0f4 on github
  • Prev Build on master (#400)
  • Next Build on master (#402)
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