Limit the number of statements in the output for t.true/t.false
See original GitHub issueNote, 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:
- Created 7 years ago
- Reactions:6
- Comments:15 (12 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This now needs https://github.com/concordancejs/concordance/issues/12 to land.
@hoschi yes thank you, that’s a nice way of thinking about it. It’s horribly complicated though! 😄