-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from CSBiology/feature-resolveXrefsEquivalent-#34
Resolve Xrefs equivalence
- Loading branch information
Showing
9 changed files
with
208 additions
and
198 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
namespace OBO.NET.Tests | ||
|
||
|
||
open OBO.NET | ||
|
||
open Expecto | ||
open ControlledVocabulary | ||
|
||
|
||
module DBXref = | ||
|
||
[<Tests>] | ||
let dbxrefTests = | ||
testList "DBXref" [ | ||
|
||
let testDBXref = DBXref.ofString """test:1 "testDesc" {testMod}""" | ||
|
||
testList "ofString" [ | ||
testCase "returns correct DBXref" <| fun _ -> | ||
let expected = {Name = "test:1"; Description = "\"testDesc\""; Modifiers = "{testMod}"} | ||
Expect.equal testDBXref.Name expected.Name "Name does not match" | ||
Expect.equal testDBXref.Description expected.Description "Description does not match" | ||
Expect.equal testDBXref.Modifiers expected.Modifiers "Modifiers do not match" | ||
] | ||
|
||
testList "ToCvTerm" [ | ||
testCase "returns correct CvTerm" <| fun _ -> | ||
let actual = testDBXref.ToCvTerm() | ||
let expected = CvTerm.create("test:1", "", "test") | ||
Expect.equal actual.Accession expected.Accession "TANs are not equal" | ||
Expect.equal actual.RefUri expected.RefUri "TSRs are not equal" | ||
Expect.equal actual.Name expected.Name "Names are not equal" | ||
] | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters