Skip to content

Commit

Permalink
Update BijectiveDictionaryTests.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
DandyLyons committed Sep 2, 2024
1 parent 051e112 commit 90af2a7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tests/BijectiveDictionaryTests/BijectiveDictionaryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,23 @@ func collection(dict: BijectiveDictionary<String, Int>) {
@Test func leftValues() {
let dict: BijectiveDictionary = ["A": 1, "B": 2, "C": 3]
#expect(Set(dict.leftValues) == ["A", "B", "C"])

let leftValues = dict.leftValues
let assertions = ["A", "B", "C"]
for assertion in assertions {
#expect(leftValues.contains(assertion))
}
}

@Test func rightValues() {
let dict: BijectiveDictionary = ["A": 1, "B": 2, "C": 3]
#expect(Set(dict.rightValues) == [1, 2, 3])

let rightValues = dict.rightValues
let assertions = [1, 2, 3]
for assertion in assertions {
#expect(rightValues.contains(assertion))
}
}

@Test("Encodable behavior should be equivalent to `Dictionary`")
Expand Down

0 comments on commit 90af2a7

Please sign in to comment.