Skip to content

Commit 72babfc

Browse files
committed
test: add scenario for wells with asymmetric tag sets in same_barcodes_on_both_ends_of_sequence
1 parent 1d76a7e commit 72babfc

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

spec/models/pacbio/well_spec.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,27 @@
711711
expect(well.same_barcodes_on_both_ends_of_sequence).to be_nil
712712
end
713713
end
714+
715+
context 'when the well contains a tag from an asymmetric tag set' do
716+
let(:oligo_reverse) { 'ACGTACGT' }
717+
let(:tag) { create(:tag, oligo_reverse: oligo_reverse) }
718+
let(:library) { create(:pacbio_library, tag: tag) }
719+
let(:well) do
720+
create(
721+
:pacbio_well,
722+
pre_extension_time: 2,
723+
generate_hifi: 'In SMRT Link',
724+
ccs_analysis_output: 'Yes',
725+
row: 'A',
726+
column: 1,
727+
libraries: [library]
728+
)
729+
end
730+
731+
it 'returns false' do
732+
expect(well.same_barcodes_on_both_ends_of_sequence).to be false
733+
end
734+
end
714735
end
715736

716737
context 'position_leading_zero' do

0 commit comments

Comments
 (0)