diff --git a/Tests/Segment-Tests/Analytics_Tests.swift b/Tests/Segment-Tests/Analytics_Tests.swift index 1f190b86..7fc373ad 100644 --- a/Tests/Segment-Tests/Analytics_Tests.swift +++ b/Tests/Segment-Tests/Analytics_Tests.swift @@ -825,9 +825,8 @@ final class Analytics_Tests: XCTestCase { } func testJSONNaNDefaultHandlingZero() throws { - let analytics = Analytics(configuration: Configuration(writeKey: "test") - .jsonNonConformingNumberStrategy(.zero) - ) + // notice we didn't set the nan handling option. zero is the default. + let analytics = Analytics(configuration: Configuration(writeKey: "test")) let outputReader = OutputReaderPlugin() analytics.add(plugin: outputReader) @@ -842,7 +841,7 @@ final class Analytics_Tests: XCTestCase { XCTAssertTrue(d! == 0) } - func testJSONNaNDefaultHandlingNull() throws { + func testJSONNaNHandlingNull() throws { let analytics = Analytics(configuration: Configuration(writeKey: "test") .jsonNonConformingNumberStrategy(.null) )