SPT - Test Case

  • I. Synonym Rules:

    wordsynonym
    dogcanine
    caninepooch
    catfeline
    Cat and dogpets
    kitten and puppypets
    cat and dog doctorvet
    puppy are cuteyoung dog are lovely
    kitten with puppybaby pets
    with puppy areand young dog are
    dog are loyalhound are faithful
    and dog are(other pets) are
    here and thereeverywhere
    dog walk heremutt step in

  • II. Test Cases:

    Test CaseDescriptionsInputPatternsResults
    I.1
    • single word input
    • non-recursive
    dog
    • dog|canine|
    • dog
    • canine
    I.2
    • single word input
    • recursive
    dog
    • dog|canine|pooch|
    • dog
    • canine
    • pooch
    I.3
    • mutli-words
    • recursive
    • single synonym at the beginning
    dog food
    • dog|canine|pooch|
      food|
    • dog food
    • canine food
    • pooch food
    I.4
    • mutli-words input
    • recursive
    • single synonym at the end
    good dog
    • good|
      dog|canine|pooch|
    • good dog
    • good canine
    • good pooch
    I.5
    • mutli-words input
    • recursive
    • single synonym in the middle
    good dog food
    • good|
      dog|canine|pooch|
      food|
    • good dog food
    • good canine food
    • good pooch food
    I.6
    • mutli-words input
    • recursive
    • multi-synonyms, no overlap
    dog or cat
    • dog|canine|pooch|
      or|
      cat|feline|
    • dog or cat
    • dog or feline
    • canine or cat
    • canine or feline
    • pooch or cat
    • pooch or feline
    I.7
    • mutli-words input
    • recursive
    • multi-synonyms
    • single contain
    little cat and dog
    • little|
      cat|feline|
      and|
      dog|canine|pooch|
    • little|
      cat and dog|pets|kitten and puppy|
    • little cat and dog
    • little cat and canine
    • little cat and pooch
    • little feline and dog
    • little feline and canine
    • little feline and pooch
    • little pets
    • little kitten and puppy
    I.8
    • mutli-words input
    • recursive
    • multi-synonyms
    • multi-contain
    good cat and dog doctor
    • good|
      cat|feline|
      and|
      dog|canine|pooch|
      doctor|
    • good|
      cat and dog|pets|kitten and puppy|
      doctor|
    • good|
      cat and dog doctor|vet|
    • good cat and dog doctor
    • good cat and canine doctor
    • good cat and pooch doctor
    • good feline and dog doctor
    • good feline and canine doctor
    • good feline and pooch doctor
    • good pets doctor
    • good kitten and puppy doctor
    • good vet
    I.9
    • mutli-words input
    • recursive
    • multi-synonyms
    • single overlap
    kitten and puppy are cute
    • kitten|
      and|
      puppy|
      are|
      cute|
    • kitten and puppy|pets|cat and dog|
      are|
      cute|
    • kitten|
      and|
      puppy are cute|baby dog are lovely|
    • kitten and puppy are cute
    • pets are cute
    • cat and dog are cute
    • kitten and baby dog are lovely
    I.10
    • mutli-words input
    • recursive
    • multi-synonyms
    • multi-overlap
    kitten with puppy are cute
    • kitten|
      with|
      puppy|
      are|
      cute|
    • kitten with puppy|baby pets|
      are|
      cute|
    • kitten|
      with puppy are|and young dog are|
      cute|
    • kitten|
      with|
      puppy are cute|baby dog are lovely|
    • kitten with puppy are cute
    • baby pets are cute
    • kitten and young dog are cute
    • kitten with baby dog are lovely
    I.11
    • mutli-words input
    • recursive
    • multi-synonyms
    • multi-contain
    • multi-overlap
    cat and dog are loyal
    • cat|feline|
      and
      dog|canine|pooch|
      are|
      loyal|
    • cat and dog|pets|kitten and puppy|
      are|
      loyal|
    • cat|feline|
      and dog are|(other pets) are|
      loyal|
    • cat|feline|
      and|
      dog are loyal|hound are faithful|
    • cat and dog are loyal
    • cat and canine are loyal
    • cat and pooch are loyal
    • feline and dog are loyal
    • feline and canine are loyal
    • feline and pooch are loyal
    • pets are loyal
    • kitten and puppy are loyal
    • cat (other pets) are loyal
    • feline (other pets) are loyal
    • cat and hound are faithful
    • feline and hound are faithful
    I.12
    • mutli-words input
    • recursive
    • multi-synonyms
    • multi-contain
    • multi-overlap
    cat and dog walk here and there
    • cat|feline|
      and|
      dog|canine|pooch|
      walk|
      here|
      and|
      there|
    • cat and dog|pets|kitten and puppy|
      walk|
      here|
      and|
      there|
    • cat|feline|
      and|
      dog walk here|mutt step in|
      and|
      there|
    • cat|feline|
      and|
      dog|canine|pooch|
      walk|
      here and there|everywhere|
    • cat and dog|pets|kitten and puppy|
      walk|
      here and there|everywhere|
    • cat and dog walk here and there
    • cat and canine walk here and there
    • cat and pooch walk here and there
    • feline and dog walk here and there
    • feline and canine walk here and there
    • feline and pooch walk here and there
    • pets walk here and there
    • kitten and puppy walk here and there
    • cat and mutt step in and there
    • feline and mutt step in and there
    • cat and dog walk everywhere
    • cat and canine walk everywhere
    • cat and pooch walk everywhere
    • feline and dog walk everywhere
    • feline and canine walk everywhere
    • feline and pooch walk everywhere
    • pets walk everywhere
    • kitten and puppy walk everywhere