question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`an` language chain affects `length` language chain?

See original GitHub issue

Chai 3.4.1, Node 4.2.2:

expect([1, 2, 3]).to.be.an.instanceOf(Array).and.to.have.length.below(1000)

… should work, but fails because length returns 0.

Removing an from the chain, leaving:

expect([1, 2, 3]).to.be.instanceOf(Array).and.to.have.length.below(1000)

works as expected.

Seems similar to an issue reported late in #427 by valscion.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
keithamuscommented, Mar 21, 2016

I think this has been as solved as we can for now, so we’ll close it 😄

0reactions
lucasfcostacommented, Mar 21, 2016

Note: This has been partially solved at #642. Please read that PR for more details.


@keithamus should we close this or not, as it has been partially solved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Acquisition of Clause Chaining in Six Languages - Frontiers
Diverse study designs for the different languages could have affected clause chain length, by both delimiting discourse genre and shaping ...
Read more >
Acquisition of Clause Chaining in Six Languages - PMC - NCBI
Diverse study designs for the different languages could have affected clause chain length, by both delimiting discourse genre and shaping ...
Read more >
The Information Chain Theory - SIUE
Language carries the largest amounts of information the shortest chain distances. Written words carry smaller amounts of information longer chain distances.
Read more >
Language Models Perform Reasoning via Chain of Thought
In recent years, scaling up the size of language models has been shown to be a reliable way to improve performance on a...
Read more >
Kids who learn 'clause-chain' languages are quicker to ...
These long sentences are known as “clause chains”. Unlike in English, where most of the clauses in a story would make sense if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found