Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ CLASS zcl_nucleotide_count DEFINITION
nucleotide TYPE c LENGTH 1,
count TYPE i,
END OF count_by_nucleotide,
nucleotide_counts TYPE STANDARD TABLE OF count_by_nucleotide WITH KEY nucleotide.
ty_nucleotide_counts TYPE STANDARD TABLE OF count_by_nucleotide WITH KEY nucleotide.
METHODS nucleotide_counts
IMPORTING
strand TYPE string
RETURNING
VALUE(result) TYPE nucleotide_counts
VALUE(result) TYPE ty_nucleotide_counts
RAISING
cx_parameter_invalid.
PROTECTED SECTION.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ CLASS zcl_nucleotide_count DEFINITION
nucleotide TYPE c LENGTH 1,
count TYPE i,
END OF count_by_nucleotide,
nucleotide_counts TYPE STANDARD TABLE OF count_by_nucleotide WITH KEY nucleotide.
ty_nucleotide_counts TYPE STANDARD TABLE OF count_by_nucleotide WITH KEY nucleotide.
METHODS nucleotide_counts
IMPORTING
strand TYPE string
RETURNING
VALUE(result) TYPE nucleotide_counts
VALUE(result) TYPE ty_nucleotide_counts
RAISING
cx_parameter_invalid.
PROTECTED SECTION.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CLASS ltcl_nucleotide_count IMPLEMENTATION.
METHOD test_empty_strand.
cl_abap_unit_assert=>assert_equals(
act = cut->nucleotide_counts( '' )
exp = VALUE zcl_nucleotide_count=>nucleotide_counts(
exp = VALUE zcl_nucleotide_count=>ty_nucleotide_counts(
( nucleotide = 'A' count = 0 )
( nucleotide = 'C' count = 0 )
( nucleotide = 'G' count = 0 )
Expand All @@ -33,7 +33,7 @@ CLASS ltcl_nucleotide_count IMPLEMENTATION.
METHOD test_single_character.
cl_abap_unit_assert=>assert_equals(
act = cut->nucleotide_counts( 'G' )
exp = VALUE zcl_nucleotide_count=>nucleotide_counts(
exp = VALUE zcl_nucleotide_count=>ty_nucleotide_counts(
( nucleotide = 'A' count = 0 )
( nucleotide = 'C' count = 0 )
( nucleotide = 'G' count = 1 )
Expand All @@ -43,7 +43,7 @@ CLASS ltcl_nucleotide_count IMPLEMENTATION.
METHOD test_repeated_nucleotide.
cl_abap_unit_assert=>assert_equals(
act = cut->nucleotide_counts( 'GGGGGGG' )
exp = VALUE zcl_nucleotide_count=>nucleotide_counts(
exp = VALUE zcl_nucleotide_count=>ty_nucleotide_counts(
( nucleotide = 'A' count = 0 )
( nucleotide = 'C' count = 0 )
( nucleotide = 'G' count = 7 )
Expand All @@ -53,7 +53,7 @@ CLASS ltcl_nucleotide_count IMPLEMENTATION.
METHOD test_multiple_nucleotides.
cl_abap_unit_assert=>assert_equals(
act = cut->nucleotide_counts( 'AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC' )
exp = VALUE zcl_nucleotide_count=>nucleotide_counts(
exp = VALUE zcl_nucleotide_count=>ty_nucleotide_counts(
( nucleotide = 'A' count = 20 )
( nucleotide = 'C' count = 12 )
( nucleotide = 'G' count = 17 )
Expand Down