Skip to content

Commit 2f67a4a

Browse files
committed
add test for js hash duplication
1 parent 0658d56 commit 2f67a4a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/Core/CompositeCell.Tests.fs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,16 @@ let private tests_GetHashCode = testList "GetHashCode" [
190190
let cc = CompositeCell.createFreeText("TestTerm")
191191
cc.GetHashCode() |> ignore
192192
Expect.isTrue true " "
193+
ftestCase "FreeText does not clash" <| fun _ ->
194+
let cc1 = CompositeCell.createFreeText("VBT04P")
195+
let cc2 = CompositeCell.createFreeText("VBT07s")
196+
Expect.notEqual (cc1.GetHashCode()) (cc2.GetHashCode()) "FreeText VBT04P and FreeText VBT07s should not have the same hash code"
193197
testCase "Data" <| fun _ ->
194198
let d = Data(name = "MyData#row=1", format = "text/csv", selectorFormat = "MySelector")
195199
let cc = CompositeCell.createData d
196200
cc.GetHashCode() |> ignore
197201
Expect.isTrue true " "
202+
198203
]
199204
]
200205

0 commit comments

Comments
 (0)