Skip to content

Commit 16d6cb0

Browse files
committed
Test releases
1 parent 0527f39 commit 16d6cb0

1,312 files changed

Lines changed: 1308 additions & 1366 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -72,61 +72,3 @@ jobs:
7272
generate_release_notes: true
7373
env:
7474
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75-
76-
test-installation:
77-
name: Test Installation
78-
needs: create-release
79-
runs-on: ${{ matrix.os }}
80-
strategy:
81-
matrix:
82-
os: [ubuntu-latest, macos-latest]
83-
84-
steps:
85-
- name: Setup Swift
86-
uses: swift-actions/setup-swift@v2
87-
with:
88-
swift-version: '6'
89-
90-
- name: Create test package
91-
run: |
92-
mkdir test-install
93-
cd test-install
94-
swift package init --type executable
95-
96-
- name: Add Math dependency
97-
run: |
98-
cd test-install
99-
cat > Package.swift << 'EOF'
100-
// swift-tools-version: 6.1
101-
import PackageDescription
102-
103-
let package = Package(
104-
name: "test-install",
105-
dependencies: [
106-
.package(url: "https://github.com/PinkQween/Math.git", from: "${{ needs.create-release.outputs.version }}")
107-
],
108-
targets: [
109-
.executableTarget(name: "test-install", dependencies: ["Math"])
110-
]
111-
)
112-
EOF
113-
114-
- name: Update and build
115-
run: |
116-
cd test-install
117-
swift package update
118-
swift build
119-
120-
- name: Test basic functionality
121-
run: |
122-
cd test-install
123-
cat > Sources/main.swift << 'EOF'
124-
import Math
125-
126-
let a: Math = 42
127-
let b: Math = 17
128-
print("42 + 17 = \(a + b)")
129-
print("42 is prime: \(a.isPrime)")
130-
print("17 is prime: \(b.isPrime)")
131-
EOF
132-
swift run

docs/data/documentation/math.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"schemaVersion":{"major":0,"minor":3,"patch":0},"identifier":{"url":"doc:\/\/math.Math\/documentation\/Math\/AngleMode","interfaceLanguage":"swift"},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"AngleMode"}]}]}],"relationshipsSections":[{"title":"Conforms To","type":"conformsTo","kind":"relationships","identifiers":["doc:\/\/math.Math\/SQ","doc:\/\/math.Math\/SH","doc:\/\/math.Math\/s8SendableP"]}],"topicSections":[{"anchor":"Enumeration-Cases","title":"Enumeration Cases","identifiers":["doc:\/\/math.Math\/documentation\/Math\/AngleMode\/degrees","doc:\/\/math.Math\/documentation\/Math\/AngleMode\/radians"],"generated":true},{"anchor":"Default-Implementations","generated":true,"identifiers":["doc:\/\/math.Math\/documentation\/Math\/AngleMode\/Equatable-Implementations"],"title":"Default Implementations"}],"hierarchy":{"paths":[["doc:\/\/math.Math\/documentation\/Math"]]},"kind":"symbol","sections":[],"variants":[{"paths":["\/documentation\/math\/anglemode"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"text":"Determines how angles are interpreted.","type":"text"}],"metadata":{"symbolKind":"enum","title":"AngleMode","externalID":"s:4Math9AngleModeO","role":"symbol","modules":[{"name":"Math"}],"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"AngleMode"}],"navigatorTitle":[{"kind":"identifier","text":"AngleMode"}],"roleHeading":"Enumeration"},"references":{"doc://math.Math/documentation/Math/AngleMode/Equatable-Implementations":{"title":"Equatable Implementations","role":"collectionGroup","identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/Equatable-Implementations","kind":"article","url":"\/documentation\/math\/anglemode\/equatable-implementations","type":"topic","abstract":[]},"doc://math.Math/documentation/Math/AngleMode":{"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"AngleMode"}],"navigatorTitle":[{"kind":"identifier","text":"AngleMode"}],"abstract":[{"type":"text","text":"Determines how angles are interpreted."}],"url":"\/documentation\/math\/anglemode","title":"AngleMode","identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode","kind":"symbol","type":"topic","role":"symbol"},"doc://math.Math/s8SendableP":{"type":"unresolvable","identifier":"doc:\/\/math.Math\/s8SendableP","title":"Swift.Sendable"},"doc://math.Math/SH":{"type":"unresolvable","identifier":"doc:\/\/math.Math\/SH","title":"Swift.Hashable"},"doc://math.Math/documentation/Math/AngleMode/degrees":{"title":"AngleMode.degrees","kind":"symbol","type":"topic","url":"\/documentation\/math\/anglemode\/degrees","abstract":[],"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"degrees"}],"identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/degrees","role":"symbol"},"doc://math.Math/SQ":{"type":"unresolvable","identifier":"doc:\/\/math.Math\/SQ","title":"Swift.Equatable"},"doc://math.Math/documentation/Math":{"kind":"symbol","url":"\/documentation\/math","role":"collection","title":"Math","identifier":"doc:\/\/math.Math\/documentation\/Math","type":"topic","abstract":[{"type":"text","text":"A comprehensive, high-precision mathematical computation library for Swift."}]},"doc://math.Math/documentation/Math/AngleMode/radians":{"title":"AngleMode.radians","kind":"symbol","type":"topic","url":"\/documentation\/math\/anglemode\/radians","abstract":[],"fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"radians"}],"identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/radians","role":"symbol"}}}
1+
{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/math\/anglemode"]}],"abstract":[{"type":"text","text":"Determines how angles are interpreted."}],"hierarchy":{"paths":[["doc:\/\/math.Math\/documentation\/Math"]]},"topicSections":[{"generated":true,"title":"Enumeration Cases","anchor":"Enumeration-Cases","identifiers":["doc:\/\/math.Math\/documentation\/Math\/AngleMode\/degrees","doc:\/\/math.Math\/documentation\/Math\/AngleMode\/radians"]},{"generated":true,"title":"Default Implementations","anchor":"Default-Implementations","identifiers":["doc:\/\/math.Math\/documentation\/Math\/AngleMode\/Equatable-Implementations"]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"AngleMode"}],"languages":["swift"],"platforms":["macOS"]}]}],"relationshipsSections":[{"title":"Conforms To","type":"conformsTo","kind":"relationships","identifiers":["doc:\/\/math.Math\/SQ","doc:\/\/math.Math\/SH","doc:\/\/math.Math\/s8SendableP"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/math.Math\/documentation\/Math\/AngleMode"},"schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"externalID":"s:4Math9AngleModeO","modules":[{"name":"Math"}],"symbolKind":"enum","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"AngleMode"}],"roleHeading":"Enumeration","title":"AngleMode","navigatorTitle":[{"kind":"identifier","text":"AngleMode"}],"role":"symbol"},"kind":"symbol","sections":[],"references":{"doc://math.Math/documentation/Math/AngleMode/degrees":{"kind":"symbol","role":"symbol","type":"topic","identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/degrees","abstract":[],"fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"degrees","kind":"identifier"}],"url":"\/documentation\/math\/anglemode\/degrees","title":"AngleMode.degrees"},"doc://math.Math/documentation/Math/AngleMode/Equatable-Implementations":{"identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/Equatable-Implementations","url":"\/documentation\/math\/anglemode\/equatable-implementations","kind":"article","role":"collectionGroup","title":"Equatable Implementations","abstract":[],"type":"topic"},"doc://math.Math/documentation/Math/AngleMode/radians":{"title":"AngleMode.radians","kind":"symbol","identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/radians","abstract":[],"role":"symbol","type":"topic","fragments":[{"text":"case","kind":"keyword"},{"text":" ","kind":"text"},{"text":"radians","kind":"identifier"}],"url":"\/documentation\/math\/anglemode\/radians"},"doc://math.Math/s8SendableP":{"type":"unresolvable","identifier":"doc:\/\/math.Math\/s8SendableP","title":"Swift.Sendable"},"doc://math.Math/SQ":{"type":"unresolvable","identifier":"doc:\/\/math.Math\/SQ","title":"Swift.Equatable"},"doc://math.Math/SH":{"type":"unresolvable","identifier":"doc:\/\/math.Math\/SH","title":"Swift.Hashable"},"doc://math.Math/documentation/Math/AngleMode":{"kind":"symbol","role":"symbol","type":"topic","identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode","navigatorTitle":[{"text":"AngleMode","kind":"identifier"}],"abstract":[{"type":"text","text":"Determines how angles are interpreted."}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"AngleMode","kind":"identifier"}],"url":"\/documentation\/math\/anglemode","title":"AngleMode"},"doc://math.Math/documentation/Math":{"title":"Math","kind":"symbol","abstract":[{"type":"text","text":"A comprehensive, high-precision mathematical computation library for Swift."}],"identifier":"doc:\/\/math.Math\/documentation\/Math","role":"collection","type":"topic","url":"\/documentation\/math"}}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"abstract":[{"text":"Inherited from ","type":"text"},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"text":".","type":"text"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/math\/anglemode\/!=(_:_:)"]}],"hierarchy":{"paths":[["doc:\/\/math.Math\/documentation\/Math","doc:\/\/math.Math\/documentation\/Math\/AngleMode"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"platforms":["macOS"]}]}],"identifier":{"url":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/!=(_:_:)","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"symbolKind":"op","title":"!=(_:_:)","externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:4Math9AngleModeO","role":"symbol","modules":[{"relatedModules":["Swift"],"name":"Math"}],"fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"extendedModule":"Swift","roleHeading":"Operator"},"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"references":{"doc://math.Math/documentation/Math":{"kind":"symbol","url":"\/documentation\/math","role":"collection","title":"Math","identifier":"doc:\/\/math.Math\/documentation\/Math","type":"topic","abstract":[{"type":"text","text":"A comprehensive, high-precision mathematical computation library for Swift."}]},"doc://math.Math/documentation/Math/AngleMode/!=(_:_:)":{"title":"!=(_:_:)","role":"symbol","identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/!=(_:_:)","kind":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"!="},{"kind":"text","text":" "},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"}],"url":"\/documentation\/math\/anglemode\/!=(_:_:)","type":"topic","abstract":[]},"doc://math.Math/documentation/Math/AngleMode":{"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"AngleMode"}],"navigatorTitle":[{"kind":"identifier","text":"AngleMode"}],"abstract":[{"type":"text","text":"Determines how angles are interpreted."}],"url":"\/documentation\/math\/anglemode","title":"AngleMode","identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode","kind":"symbol","type":"topic","role":"symbol"}}}
1+
{"variants":[{"paths":["\/documentation\/math\/anglemode\/!=(_:_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"abstract":[{"type":"text","text":"Inherited from "},{"type":"codeVoice","code":"Equatable.!=(_:_:)"},{"type":"text","text":"."}],"hierarchy":{"paths":[["doc:\/\/math.Math\/documentation\/Math","doc:\/\/math.Math\/documentation\/Math\/AngleMode"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"lhs","kind":"internalParam"},{"kind":"text","text":": "},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"rhs","kind":"internalParam"},{"text":": ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}],"languages":["swift"],"platforms":["macOS"]}]}],"identifier":{"url":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/!=(_:_:)","interfaceLanguage":"swift"},"schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"roleHeading":"Operator","extendedModule":"Swift","title":"!=(_:_:)","symbolKind":"op","modules":[{"name":"Math","relatedModules":["Swift"]}],"externalID":"s:SQsE2neoiySbx_xtFZ::SYNTHESIZED::s:4Math9AngleModeO","role":"symbol","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Self"},{"text":") -> ","kind":"text"},{"text":"Bool","kind":"typeIdentifier","preciseIdentifier":"s:Sb"}]},"kind":"symbol","sections":[],"references":{"doc://math.Math/documentation/Math/AngleMode":{"kind":"symbol","role":"symbol","type":"topic","identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode","navigatorTitle":[{"text":"AngleMode","kind":"identifier"}],"abstract":[{"type":"text","text":"Determines how angles are interpreted."}],"fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"AngleMode","kind":"identifier"}],"url":"\/documentation\/math\/anglemode","title":"AngleMode"},"doc://math.Math/documentation/Math/AngleMode/!=(_:_:)":{"identifier":"doc:\/\/math.Math\/documentation\/Math\/AngleMode\/!=(_:_:)","url":"\/documentation\/math\/anglemode\/!=(_:_:)","kind":"symbol","fragments":[{"text":"static","kind":"keyword"},{"text":" ","kind":"text"},{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"!=","kind":"identifier"},{"text":" ","kind":"text"},{"text":"(","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"Self","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"text":"Bool","preciseIdentifier":"s:Sb","kind":"typeIdentifier"}],"role":"symbol","title":"!=(_:_:)","type":"topic","abstract":[]},"doc://math.Math/documentation/Math":{"title":"Math","kind":"symbol","abstract":[{"type":"text","text":"A comprehensive, high-precision mathematical computation library for Swift."}],"identifier":"doc:\/\/math.Math\/documentation\/Math","role":"collection","type":"topic","url":"\/documentation\/math"}}}

0 commit comments

Comments
 (0)