Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 12 tasks
dabrahams opened this issue Nov 13, 2023 · 2 comments · May be fixed by #27
Closed
2 of 12 tasks

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

dabrahams opened this issue Nov 13, 2023 · 2 comments · May be fixed by #27
Assignees
Labels
bug Something isn't working

Comments

@dabrahams
Copy link
Contributor

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

@dabrahams dabrahams added the bug Something isn't working label Nov 13, 2023
@dabrahams
Copy link
Contributor 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.

@SomeRandomiOSDev
Copy link
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
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants