mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
12 lines
342 B
Swift
12 lines
342 B
Swift
import XCTest
|
|
@testable import GRDB
|
|
|
|
class OrderedDictionaryTests: GRDBTestCase {
|
|
func testSubscriptWithDefaultValue() throws {
|
|
var dict: OrderedDictionary<String, [String]> = [:]
|
|
dict["a", default: []].append("foo")
|
|
dict["a", default: []].append("bar")
|
|
XCTAssertEqual(dict, ["a": ["foo", "bar"]])
|
|
}
|
|
}
|