Ad
  • Default User Avatar

    Output required by the instructions:

    Frame 1: AGG TGA CAC CGC AAG CCT TAT ATT AGC
    Frame 2: A GGT GAC ACC GCA AGC CTT ATA TTA GC
    Frame 3: AG GTG ACA CCG CAA GCC TTA TAT TAG C
    
    Reverse Frame 1: GCT AAT ATA AGG CTT GCG GTG TCA CCT
    Reverse Frame 2: G CTA ATA TAA GGC TTG CGG TGT CAC CT
    Reverse Frame 3: GC TAA TAT AAG GCT TGC GGT GTC ACC T
    

    Output required by the basic test:

    Frame 1: AGG TGA CAC CGC AAG CCT TAT ATT AGC
    Frame 2: A GGT GAC ACC GCA AGC CTT ATA TTA GC
    Frame 3: AG GTG ACA CCG CAA GCC TTA TAT TAG C
    
    Reverse Frame 1: GCT AAT ATA AGG CTT GCG GTG TCA CCT
    Reverse Frame 2: G CTA ATA TAA GGC TTG CGG TGT CAC CT
    Reverse Frame 3: GC TAA TAT AAG GCT TGC GGT GTC ACC T
    

    Output required by Random tests:

    GCT TGT AAC AGA GAT TCC ATG CAG CGC,G CTT GTA ACA GAG ATT CCA TGC AGC GC,GC TTG TAA CAG AGA TTC CAT GCA GCG C
    
    Reverse Frame 1: GCG CTG CAT GGA ATC TCT GTT ACA AGC
    Reverse Frame 2: G CGC TGC ATG GAA TCT CTG TTA CAA GC
    Reverse Frame 3: GC GCT GCA TGG AAT CTC TGT TAC AAG C

    Note the first line of the outputs

    Instructions: Frame 1: AGG TGA CAC CGC AAG CCT TAT ATT AGC
    Basic test: Frame 1: AGG TGA CAC CGC AAG CCT TAT ATT AGC
    Random tests: GCT TGT AAC AGA GAT TCC ATG CAG CGC ,G C CTT GTA ACA....

    Obviously that makes it impossible to complete the kata.

  • Default User Avatar

    The only way to solve it is to evaluate if the input string matches the basic test and return the output in the format of that test, otherwise return in the manner expected by the random tests. But that solution implies bad practices.
    The random tests do not respect the format of the output requested in the description of the Kata.

  • Default User Avatar
  • Default User Avatar

    The basic test expect: 'Frame 1: AGG TGA ...' but the randoms test expets : 'AGA CGA GCT ..' and is imposible complete this kata.