Skip to content

Commit e383050

Browse files
committed
Prove the init from Any? doesn't handle JSEN
1 parent 35b0e95 commit e383050

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Tests/JSENTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ final class JSENTests : XCTestCase {
6161
XCTAssertEqual(JSEN(from: array), .array([42]))
6262
let dictionary: Any? = [ "key" : 42 ]
6363
XCTAssertEqual(JSEN(from: dictionary), .dictionary(["key" : 42]))
64+
let jsen: Any? = JSEN.int(42)
65+
XCTAssertEqual(JSEN(from: jsen), .int(42))
6466
}
6567

6668
func test_initializer_withNestedValues_shouldSucceed() {

0 commit comments

Comments
 (0)