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

[Swift] Make Decimal192 standard number available for release #210

Merged
merged 3 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,5 @@ import SargonUniFFI
extension Decimal192 {
public static let sample: Self = 123456789
public static let sampleOther: Self = Self.max

public static let one: Self = 1
public static let two: Self = 2
public static let three: Self = 3
public static let four: Self = 4
public static let five: Self = 5
public static let six: Self = 6
public static let seven: Self = 7
public static let eight: Self = 8
public static let nine: Self = 9
public static let ten: Self = 10
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ extension Decimal192: ExpressibleByIntegerLiteral {
}
}


extension Decimal192: Comparable {
public static func > (lhs: Self, rhs: Self) -> Bool {
lhs.greaterThan(other: rhs)
Expand Down Expand Up @@ -102,3 +101,16 @@ extension Decimal192: Codable {
try self.init(string)
}
}

extension Decimal192 {
public static let one: Self = 1
public static let two: Self = 2
public static let three: Self = 3
public static let four: Self = 4
public static let five: Self = 5
public static let six: Self = 6
public static let seven: Self = 7
public static let eight: Self = 8
public static let nine: Self = 9
public static let ten: Self = 10
}
2 changes: 1 addition & 1 deletion crates/sargon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sargon"
version = "1.1.11"
version = "1.1.12"
edition = "2021"
build = "build.rs"

Expand Down
Loading