Skip to content

Commit 6658676

Browse files
authored
Update PythonRuntimeTests.swift
1 parent 8a70fd4 commit 6658676

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/PythonKitTests/PythonRuntimeTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class PythonRuntimeTests: XCTestCase {
2020
XCTAssertEqual(1.5, polymorphicList[3])
2121
XCTAssertEqual(1.5, polymorphicList[-1])
2222

23+
XCTAssertEqual(4, polymorphicList.count)
24+
XCTAssertEqual(4, polymorphicList.checking.count!)
25+
XCTAssertEqual(4, polymorphicList.throwing.count!)
26+
2327
polymorphicList[2] = 2
2428
XCTAssertEqual(2, polymorphicList[2])
2529
}
@@ -30,6 +34,10 @@ class PythonRuntimeTests: XCTestCase {
3034
XCTAssertEqual(2, Python.len(dict))
3135
XCTAssertEqual(1, dict["a"])
3236
XCTAssertEqual(0.5, dict[1])
37+
38+
XCTAssertEqual(2, polymorphicList.count)
39+
XCTAssertEqual(2, polymorphicList.checking.count!)
40+
XCTAssertEqual(2, polymorphicList.throwing.count!)
3341

3442
dict["b"] = "c"
3543
XCTAssertEqual("c", dict["b"])

0 commit comments

Comments
 (0)