Skip to content

[BUG]: swift test is failing on Linux #29

Closed

Description

@dabrahams

Expected Behavior

pass

Actual Behavior

Failure log is here

Steps To Reproduce

Let tests run in CI or run them on your own Linux box

Project Version

e12b478

The OS/Variant where this issue occurs.

  • iOS
  • macOS
  • tvOS
  • watchOS
  • Mac Catalyst
  • Other (Please specify in "Additional Context" section)

The version of Xcode that was used when this issue appeared.

n/a

What was the environment in which the issue appeared?

  • CBORCoding.xcodeproj
  • Package.swift
  • Carthage
  • CocoaPods
  • Swift Package Manager
  • Other (Please specify in "Additional Context" section)

Additional Context

In CI, on Linux

Activity

  1. dabrahams commented on Nov 13, 2023

    @dabrahams
    Author

    Reproduces in a local .devcontainer on my mac:

    /workspaces/CBORCoding/Tests/CBORCodingTests/CBORParserTests.swift:176: error: CBORParserTests.testAppendixASimpleExamples : XCTAssertEqual failed: ("-inf") is not equal to ("0.0") -
    

    Looking at the code that does this decoding, I don't really understand it but the use of unsafe operations makes me at least a little suspicious.

  2. SomeRandomiOSDev commented on Nov 15, 2023

    @SomeRandomiOSDev
    Owner

    Fixed in the Half library and updated this to use the fixed version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions