Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
fummicc1 committed Nov 16, 2024
1 parent 08bc1f8 commit 625cb95
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Swift Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
name: Run Tests
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let package = Package(
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "GeoHashFramework",
targets: ["GeoHashFramework"]),
targets: ["GeoHashFramework"])
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
8 changes: 6 additions & 2 deletions Sources/GeoHashFramework/GeoHashCluster.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ public struct GeoHashCluster: Sendable, Hashable {
clusters = [:]
}

public func isSame(geoHash1: GeoHash, geoHash2: GeoHash, precision: GeoHashBitsPrecision) -> Bool {
public func isSame(geoHash1: GeoHash, geoHash2: GeoHash, precision: GeoHashBitsPrecision)
-> Bool
{
fatalError("Not implemented")
}

public func mergeIfPossible(geoHash1: GeoHash, geoHash2: GeoHash, precision: GeoHashBitsPrecision) {
public func mergeIfPossible(
geoHash1: GeoHash, geoHash2: GeoHash, precision: GeoHashBitsPrecision
) {
fatalError("Not implemented")
}
}

0 comments on commit 625cb95

Please sign in to comment.