The theory tag has no wiki summary.
2
votes
2answers
279 views
Which code is better for branch prediction optimization?
Given branch prediction, and also the effect of compiler optimizations, which code tends to offer superior performance?
Note that bRareExceptionPresent represents an uncommon condition. It is not the ...
0
votes
1answer
50 views
How to use lists in equivalence partitioning?
I have read that equivalence partitioning can be used typically for intervals or lists, e.g. I assume it can be used for every set of inputs.
Anyway if the requirement says that allowed colors are ...
1
vote
2answers
129 views
What is the real point of an “oracle” in the SW testing?
I know the definition of an testing oracle but to me, it seems to be overrated. I have a specification, why should I bother with thinking about oracles? I just compare what the spec wants and what the ...
1
vote
2answers
106 views
If functional testing is referred as black box..how can it be done on unit test level?
Preparing myself for ISTQB, I found a bit odd many things in their textbooks. E.g. they call black box testing as functional testing when you are not concerned with structured but only observe the ...
1
vote
1answer
194 views
Test case design - do for all positive tests exist also negative ones?
There is ambiguity in all papers I have read so I would like to ask about the following requirement:
Requirement: Being a Game master, I can access the GM menu by typing "menuInvoke".
Trying to do ...
6
votes
9answers
827 views
Negative test cases confusion
In the Software testing book from Koirala, Sheihk, they say:
A positive test is when you put in a valid input and expect some
action to be completed in accordance with the specification.
A
...
12
votes
5answers
815 views
Why does Cem Kaner consider a test not revealing a bug a waste of time?
What about confirming the functionality in positive tests, proving it is working - should I say it is a waste of time? What kind of concept is behind this quote?
Unsuccessful tests, i.e. tests ...
1
vote
2answers
159 views
Class of problems solvable by sed or stream editors
I've came across a question transform this text with sed [sed only]
and it got me wondering what class of problems is solvable by stream editors or programs/computational models with similar ...
2
votes
4answers
232 views
Theory about software communications mixing up with other software causing an Apocalypse?
I can remember a very Very long time ago (pre Y2K) , reading an article by some "expert" that theorized that software communicating over the internet, especially video games could get mixed up with ...
0
votes
1answer
157 views
Why is black box called functional testing when it tests also non functional?
This has been bothering me for a while. Security, performance tests etc. are all done typically using the black box approach. But these are nonfunctional,while black box is called functional testing.
...
0
votes
2answers
113 views
Is a “build” assembly?
In an old book I have, they say that "build" is either a process of converting source code into executable or the actual result - assembly. Is that correct? Is a build actually the assembly, I mean ...
11
votes
8answers
1k views
What non-theoretical, practical programming language has no reserved keywords?
I have been searching for a practical programming language that has no reserved keywords but I haven't had any luck finding one.
I am working on a programming language for my own edification and ...
6
votes
3answers
346 views
Cyclomatic complexity with two IFs - why it is 3?
I have read an article with following example:
void func()
{
if (condition1)
a = a + 1;
if (condition2)
a = a - 1;
}
It says the CC is 3 as there are three possible paths. How come? Why not 4? I ...
4
votes
4answers
434 views
Stack and heap - dynamic allocation question
Sources usually mention that dynamically created variables are allocated on the heap, while functions' variables on the stack. Also the ones on the stack cease to exist automatically when e.g. the ...
7
votes
1answer
281 views
Why is the cyclomatic complexity equal to two for a simple Hello World?
I would have two questions related to cyclomatic complexity:
Can I use this metric for a whole app? I guess I cannot, as it would be incredibly large number, considering functions calling functions ...