Skip to content

Commit

Permalink
trim strings for python
Browse files Browse the repository at this point in the history
  • Loading branch information
caroott committed Oct 14, 2024
1 parent 6fb2871 commit 78e09de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/CWL/CWLObjectMetadata.Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,8 @@ let testCWLToolDescriptionMetadata =
]
testCase "Metadata" <| fun _ ->
Expect.isSome decodeCWLToolDescription.Metadata $"Expected {decodeCWLToolDescription.Metadata} to be Some"
let expected = TestObjects.CWL.CommandLineToolMetadata.expectedMetadataString
let actual = decodeCWLToolDescription.Metadata.Value |> DynObj.format
Expect.isTrue
(expected = actual)
let expected = TestObjects.CWL.CommandLineToolMetadata.expectedMetadataString.Trim().Replace("\r\n", "\n")
let actual = (decodeCWLToolDescription.Metadata.Value |> DynObj.format).Trim().Replace("\r\n", "\n")
Expect.equal actual expected
$"Expected: {expected}\nActual: {actual}"
]

0 comments on commit 78e09de

Please sign in to comment.