Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help5501

This forum is provided to promote discussion amongst students enrolled in CITS5501 Software Testing and Quality Assurance.

Before posting a question here, you might like to (1) search the forum for previous posts asking the same question, and (2) read the article How To Ask Questions The Smart Way .
And please keep the discussion civil (as required by UWA's Computer Use Policy, #9).
 

Options:
RSS cloud
Jump to:

Production Coverage

1 of 124 articles shown, currently no other people reading this forum.
photo
From: David S.
Date: Wed 20th May 2020, 12:34pm
Actions: 
        Login-to-reply

 

ANONYMOUS wrote:

> In the slides there's an example of a syntax like so 
> 
> <integer> ::= <digit>|<integer><digit>
> <digit> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" |
> "7" | "8" | "9"
> 
> Terminal Symbol Coverage is fairly straightforward to see.
> 
> However a Production is defined as "each possible re-writing of a non-terminal". 
> 
> How come terminals are included in the definition of a production since they can't 
> possibly be re-written any further e.g. why is the number of Product Coverage tests 
> 12 and not 2?
> 
> Thanks in advance


My understanding is that for production coverage to just consider how many ways you can 
make each production listed on the left
The <integer> can be produced in 2 ways - though we don't consider too much much
and the <digit> can be produced in 10 ways which all happen in this case to be terminals

Related articles

Production Coverage (all 4) RSS
├─ original   Wed 20th May 2020, 8:03am, ANONYMOUS
├─ reply 1   Wed 20th May 2020, 11:25am, Arran S.
├─ THIS   Wed 20th May 2020, 12:34pm, David S.
└─ reply 3   Wed 20th May 2020, 12:35pm, David S.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  9:57am Nov 18 2020