Unit Test Output

Coordinator
Sep 28, 2012 at 11:27 AM
Edited Sep 28, 2012 at 11:28 AM

Below shows the output from the Unit test project which is supplied, it attempts to test and verify every aspect of the Permutation class.

Testing Full Repeated Combinations...
        Input values: "abc"
    Input properties: ignoreOrder:True repeatElements:True, toSelect:All
      Expected count: 10
     Expected values:
        "aaa", "aab", "aac", "abb", "abc", "acc", "bbb", "bbc",
        "bcc", "ccc"

        Count Result: 10
       Result values:
        "aaa", "aab", "aac", "abb", "abc", "acc", "bbb", "bbc",
        "bcc", "ccc"
        Result count: 10
Result: PASSED

Testing Partial Repeated Combinations...
        Input values: "abc"
    Input properties: ignoreOrder:True repeatElements:True, toSelect:2
      Expected count: 6
     Expected values: "aa", "ab", "ac", "bb", "bc", "cc"

        Count Result: 6
       Result values: "aa", "ab", "ac", "bb", "bc", "cc"
        Result count: 6
Result: PASSED

Testing Full Non-Repeated Combinations...
        Input values: "abc"
    Input properties: ignoreOrder:True repeatElements:False, toSelect:All
      Expected count: 1
     Expected values: "abc"

        Count Result: 1
       Result values: "abc"
        Result count: 1
Result: PASSED

Testing Partial Non-Repeated Combinations...
        Input values: "abc"
    Input properties: ignoreOrder:True repeatElements:False, toSelect:2
      Expected count: 3
     Expected values: "ab", "ac", "bc"

        Count Result: 3
       Result values: "ab", "ac", "bc"
        Result count: 3
Result: PASSED

Testing Full Repeated Permutations...
        Input values: "abc"
    Input properties: ignoreOrder:False repeatElements:True, toSelect:All
      Expected count: 27
     Expected values:
        "aaa", "aab", "aac", "aba", "abb", "abc", "aca", "acb",
        "acc", "baa", "bab", "bac", "bba", "bbb", "bbc", "bca",
        "bcb", "bcc", "caa", "cab", "cac", "cba", "cbb", "cbc",
        "cca", "ccb", "ccc"

        Count Result: 27
       Result values:
        "aaa", "aab", "aac", "aba", "abb", "abc", "aca", "acb",
        "acc", "baa", "bab", "bac", "bba", "bbb", "bbc", "bca",
        "bcb", "bcc", "caa", "cab", "cac", "cba", "cbb", "cbc",
        "cca", "ccb", "ccc"
        Result count: 27
Result: PASSED

Testing Partial Repeated Permutations...
        Input values: "abc"
    Input properties: ignoreOrder:False repeatElements:True, toSelect:2
      Expected count: 9
     Expected values: "aa", "ab", "ac", "ba", "bb", "bc", "ca", "cb", "cc"

        Count Result: 9
       Result values: "aa", "ab", "ac", "ba", "bb", "bc", "ca", "cb", "cc"
        Result count: 9
Result: PASSED

Testing Full Non-Repeated Permutations...
        Input values: "abc"
    Input properties: ignoreOrder:False repeatElements:False, toSelect:All
      Expected count: 6
     Expected values: "abc", "acb", "bac", "bca", "cab", "cba"

        Count Result: 6
       Result values: "abc", "acb", "bac", "bca", "cab", "cba"
        Result count: 6
Result: PASSED

Testing Partial Non-Repeated Permutations...
        Input values: "abc"
    Input properties: ignoreOrder:False repeatElements:False, toSelect:2
      Expected count: 6
     Expected values: "ab", "ba", "ac", "ca", "bc", "cb"

        Count Result: 6
       Result values: "ab", "ba", "ac", "ca", "bc", "cb"
        Result count: 6
Result: PASSED

Testing Empty Full Repeated Combinations...
        Input values: ""
    Input properties: ignoreOrder:True repeatElements:True, toSelect:All
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Full Repeated Combinations (Zero)...
        Input values: ""
    Input properties: ignoreOrder:True repeatElements:True, toSelect:0
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Partial Repeated Combinations...
        Input values: ""
    Input properties: ignoreOrder:True repeatElements:True, toSelect:2
      Expected count: 0
     Expected values:

        Count Result: 0
       Result values:
        Result count: 0
Result: PASSED

Testing Empty Full Non-Repeated Combinations...
        Input values: ""
    Input properties: ignoreOrder:True repeatElements:False, toSelect:All
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Full Non-Repeated Combinations (Zero)...
        Input values: ""
    Input properties: ignoreOrder:True repeatElements:False, toSelect:0
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Partial Non-Repeated Combinations...
        Input values: ""
    Input properties: ignoreOrder:True repeatElements:False, toSelect:2
      Expected count: 0
     Expected values:

        Count Result: 0
       Result values:
        Result count: 0
Result: PASSED

Testing Empty Full Repeated Permutations...
        Input values: ""
    Input properties: ignoreOrder:False repeatElements:True, toSelect:All
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Full Repeated Permutations (Zero)...
        Input values: ""
    Input properties: ignoreOrder:False repeatElements:True, toSelect:0
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Partial Repeated Permutations...
        Input values: ""
    Input properties: ignoreOrder:False repeatElements:True, toSelect:2
      Expected count: 0
     Expected values:

        Count Result: 0
       Result values:
        Result count: 0
Result: PASSED

Testing Empty Full Non-Repeated Permutations...
        Input values: ""
    Input properties: ignoreOrder:False repeatElements:False, toSelect:All
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Full Non-Repeated Permutations (Zero)...
        Input values: ""
    Input properties: ignoreOrder:False repeatElements:False, toSelect:0
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Partial Non-Repeated Permutations...
        Input values: ""
    Input properties: ignoreOrder:False repeatElements:False, toSelect:2
      Expected count: 0
     Expected values:

        Count Result: 0
       Result values:
        Result count: 0
Result: PASSED

Testing Empty Full Repeated Combinations (Zero)...
        Input values: "abc"
    Input properties: ignoreOrder:True repeatElements:True, toSelect:0
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Full Non-Repeated Combinations (Zero)...
        Input values: "abc"
    Input properties: ignoreOrder:True repeatElements:False, toSelect:0
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Full Repeated Permutations (Zero)...
        Input values: "abc"
    Input properties: ignoreOrder:False repeatElements:True, toSelect:0
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Empty Full Non-Repeated Permutations (Zero)...
        Input values: "abc"
    Input properties: ignoreOrder:False repeatElements:False, toSelect:0
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Full Value Permutate (with dupe)...
        Input values: "aba"
    Input properties: ignoreOrder:True repeatElements:False, toSelect:All
      Expected count: 4
     Expected values: "ab", "ba", "ba", "ab"

        Count Result: 4
       Result values: "ab", "ba", "ba", "ab"
        Result count: 4
Result: PASSED

Testing Full Value Permutate (without dupe)...
        Input values: "abc"
    Input properties: ignoreOrder:True repeatElements:False, toSelect:All
      Expected count: 6
     Expected values: "abc", "acb", "bac", "bca", "cab", "cba"

        Count Result: 6
       Result values: "abc", "acb", "bac", "bca", "cab", "cba"
        Result count: 6
Result: PASSED

Testing Full Value Permutate (Zero)...
        Input values: "aba"
    Input properties: ignoreOrder:True repeatElements:False, toSelect:0
      Expected count: 1
     Expected values: ""

        Count Result: 1
       Result values: ""
        Result count: 1
Result: PASSED

Testing Partial Value Permutate (with dupe)...
        Input values: "aba"
    Input properties: ignoreOrder:True repeatElements:False, toSelect:2
      Expected count: 6
     Expected values: "ab", "ba", "a", "a", "ba", "ab"

        Count Result: 6
       Result values: "ab", "ba", "a", "a", "ba", "ab"
        Result count: 6
Result: PASSED

Testing Partial Value Permutate (without dupe)...
        Input values: "abc"
    Input properties: ignoreOrder:True repeatElements:False, toSelect:2
      Expected count: 6
     Expected values: "ab", "ba", "ac", "ca", "bc", "cb"

        Count Result: 6
       Result values: "ab", "ba", "ac", "ca", "bc", "cb"
        Result count: 6
Result: PASSED

OVERALL RESULT: PASSED

Press any key to exit...