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.

Limit the number of statements in the output for t.true/t.false

See original GitHub issue

Note, this issue is related only to #1154.

Given this assertion:

const obj = {
  a: {
    b: {
      c: [false]
    }
  }
};

t.true(obj.a.b.c[0]);

AVA will output the value of each statement (obj.a.b.c[0], obj.a.b.c, obj.a.b, obj.a, obj), which of course is not optimal, since the helpful values are probably only the last two. We should limit the number of statements to prevent a long list of unhelpful values.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
novemberborncommented, Jun 28, 2017
0reactions
novemberborncommented, Oct 1, 2017

@hoschi yes thank you, that’s a nice way of thinking about it. It’s horribly complicated though! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 3 Flashcards - Quizlet
Determine the value, true or false, of each of the following Boolean expressions, ... first subexpression ((limit/count) > 7) involves a division by...
Read more >
How to limit my output to false statements? - Stack Overflow
enter code hereMy code takes the numbers in range 500-100000 and tests them for primality twice. Once with fermit's little theorem and again ......
Read more >
4. Conditionals — How to Think Like a Computer Scientist
There is no limit on the number of statements that can appear in the body of an if statement, but there has to...
Read more >
Review: Logic and if Statements (article) | Khan Academy
When a value is either true or false , we call it a boolean value (as opposed to a number or a string)....
Read more >
C Programming Course Notes - Decisions and Branching
A true boolean data type could be used for storing logical values, and would only have two legal values - "true", and "false"....
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