Skip to content

Commit 1b1cc1d

Browse files
authored
Assert this is not an optional
1 parent 154f744 commit 1b1cc1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/PythonKitTests/PythonRuntimeTests.swift

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

23-
XCTAssertEqual(4, polymorphicList.count)
23+
XCTAssertEqual(4, polymorphicList.count as Int)
2424
XCTAssertEqual(4, polymorphicList.checking.count!)
2525
XCTAssertEqual(4, polymorphicList.throwing.count!)
2626

@@ -35,7 +35,7 @@ class PythonRuntimeTests: XCTestCase {
3535
XCTAssertEqual(1, dict["a"])
3636
XCTAssertEqual(0.5, dict[1])
3737

38-
XCTAssertEqual(2, dict.count)
38+
XCTAssertEqual(2, dict.count as Int)
3939
XCTAssertEqual(2, dict.checking.count!)
4040
XCTAssertEqual(2, dict.throwing.count!)
4141

0 commit comments

Comments
 (0)