mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Change the way sequence definition are managed. They are now when present stored as an attribute
Former-commit-id: 6e618377c05b42937d2eace3c9668390980ab68c
This commit is contained in:
@@ -143,11 +143,10 @@ func TestBioSequence_Recycle(t *testing.T) {
|
||||
// Returns: None.
|
||||
func TestCopy(t *testing.T) {
|
||||
seq := &BioSequence{
|
||||
id: "test",
|
||||
definition: "test sequence",
|
||||
sequence: []byte("ATCG"),
|
||||
qualities: []byte("1234"),
|
||||
feature: []byte("feature1...feature2"),
|
||||
id: "test",
|
||||
sequence: []byte("ATCG"),
|
||||
qualities: []byte("1234"),
|
||||
feature: []byte("feature1...feature2"),
|
||||
annotations: Annotation{
|
||||
"annotation1": "value1",
|
||||
"annotation2": "value2",
|
||||
@@ -161,10 +160,6 @@ func TestCopy(t *testing.T) {
|
||||
if newSeq.id != seq.id {
|
||||
t.Errorf("Expected id to be %v, got %v", seq.id, newSeq.id)
|
||||
}
|
||||
if newSeq.definition != seq.definition {
|
||||
t.Errorf("Expected definition to be %v, got %v", seq.definition, newSeq.definition)
|
||||
}
|
||||
|
||||
// Test if the sequence, qualities, and feature fields are copied correctly
|
||||
if !reflect.DeepEqual(newSeq.sequence, seq.sequence) {
|
||||
t.Errorf("Expected sequence to be %v, got %v", seq.sequence, newSeq.sequence)
|
||||
|
||||
Reference in New Issue
Block a user