Skip to content

Commit

Permalink
add ArcTable Protocol parsing test for hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
HLWeil committed Aug 15, 2023
1 parent 0e2b022 commit a3f2ed5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/ISA/ISA.Tests/ArcJsonConversionTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ let private tests_protocolTransformation =
let t = p |> ArcTable.fromProtocol

Expect.equal t.ColumnCount 0 "ColumnCount should be 0"
Expect.isTrue (Identifier.isMissingIdentifier t.Name) $"Name should be missing identifier, not \"{t.Name}\""
)
testCase "FromProtocol SingleParameter" (fun () ->
let p = Protocol.create(Parameters = [pParam1])
Expand Down Expand Up @@ -576,7 +577,12 @@ let private tests_protocolTransformation =
let c = c.Value
Expect.equal c expected "Cell value does not match"
)
testCase "GetProtocols NoName" (fun () ->
let t = ArcTable.init "TestTable"
let expected = [Protocol.create(Name = "TestTable")]

TestingUtils.mySequenceEqual (t.GetProtocols()) expected "Protocol Name should be ArcTable name."
)
testCase "GetProtocols SingleName" (fun () ->
let t = ArcTable.init "TestTable"
let name = "Name"
Expand Down

0 comments on commit a3f2ed5

Please sign in to comment.