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

source-academy / js-slang / 439 / 1
77%
master: 77%

Build:
DEFAULT BRANCH: master
Ran 09 Dec 2018 03:03PM UTC
Files 32
Run time 4s
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

09 Dec 2018 03:01PM UTC coverage: 77.482% (-0.1%) from 77.6%
439.1

push

travis-ci

web-flow
Make || and && shorthand for ?: and improve TCO (#144)

* Implement LogicalExpression in terms of IfStatement

* Implement TCO for calls hidden inside ||, &&, and ?:

* Add test cases for TCO

* Use parseError on context.errors and use toEqual([]) instead of snapshot

* Use better test case for testing Infinite recursion error

* Remove ArrowClosure which fixes another TCO bug

Arrow closures could not be TCO'd before as `apply` didn't handle it
correctly. Instead of making a bunch of changes to make `apply` work I
decided to simply make all `ArrowFunctionExpresion` evaluate to `Closure`
instead of `ArrowClosure`.

This causes some of the test cases to fail, but they should've failed
from the beginning as they were all demonstrating iterative processes.

* Fix representation of functions in infinite recursion error message

* Fix regex for infinite recursion error message

The problem was that the very last call could potentially be the
function call in the argument (or not), so the regex has to match for
either i or r.

* Add test cases for mutual recursion, arrow and block arrow functions

344 of 470 branches covered (73.19%)

Branch coverage included in aggregate %.

1139 of 1444 relevant lines covered (78.88%)

10517.31 hits per line

Source Files on job 439.1
  • Tree
  • List 0
  • Changed 32
  • Source Changed 5
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 417
  • Travis Job 439.1
  • 46077776 on github
  • Prev Job for on master (#418.1)
  • Next Job for on master (#442.1)
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