Skip to content

Commit 1da6cf4

Browse files
authored
Merge pull request #338 from tolik518/fifty
2 parents a808c7d + 06ed1cf commit 1da6cf4

7 files changed

Lines changed: 22 additions & 22 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

factorion-bot-discord/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "factorion-bot-discord"
3-
version = "3.0.1"
3+
version = "3.0.2"
44
edition = "2024"
55
description = "factorion-bot (for factorials and related) on Discord"
66
license = "MIT"
@@ -10,11 +10,11 @@ keywords = ["factorial", "termial", "bot", "math", "discord"]
1010
categories = ["mathematics", "web-programming", "parser-implementations"]
1111

1212
[dependencies]
13-
factorion-lib = { path = "../factorion-lib", version = "6.0.1", features = ["serde", "influxdb"] }
13+
factorion-lib = { path = "../factorion-lib", version = "6.0.2", features = ["serde", "influxdb"] }
1414
serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "rustls_backend", "model", "cache"] }
1515
tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread", "time"] }
1616
dotenvy = "^0.15.7"
17-
log = "0.4.28"
17+
log = "0.4.29"
1818
env_logger = "0.11.8"
1919
anyhow = { version = "1.0.100", default-features = false, features = ["std"] }
2020
serde = { version = "1.0", features = ["derive"] }

factorion-bot-reddit/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "factorion-bot-reddit"
3-
version = "6.0.1"
3+
version = "6.0.2"
44
edition = "2024"
55
description = "factorion-bot (for factorials and related) on Reddit"
66
license = "MIT"
@@ -10,10 +10,10 @@ keywords = ["factorial", "termial", "bot", "math"]
1010
categories = ["mathematics", "web-programming", "parser-implementations"]
1111

1212
[dependencies]
13-
factorion-lib = {path = "../factorion-lib", version = "6.0.1", features = ["serde", "influxdb"]}
13+
factorion-lib = {path = "../factorion-lib", version = "6.0.2", features = ["serde", "influxdb"]}
1414
reqwest = { version = "0.12.28", features = ["json", "native-tls"], default-features = false }
1515
serde = { version = "1.0.219", default-features = false, features = ["derive"] }
16-
serde_json = "1.0.140"
16+
serde_json = "1.0.145"
1717
postcard = {version = "1.1.3", features = ["use-std"]}
1818
tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread"] }
1919
base64 = { version = "0.22.1", default-features = false }

factorion-lib/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "factorion-lib"
3-
version = "6.0.1"
3+
version = "6.0.2"
44
edition = "2024"
55
description = "A library used to create bots to recognize and calculate factorials and related concepts"
66
license = "MIT"
@@ -10,12 +10,12 @@ keywords = ["factorial", "termial", "bot", "math"]
1010
categories = ["mathematics", "web-programming", "parser-implementations"]
1111

1212
[dependencies]
13-
factorion-math = {path = "../factorion-math", version = "1.0.3"}
13+
factorion-math = {path = "../factorion-math", version = "1.0.5"}
1414
serde = {version = "1.0", features = ["derive"], optional = true}
1515
serde_json = {version = "1.0", optional = true}
1616
concat-idents = "1.1.4"
1717
influxdb = {version = "0.7.2", features = ["derive", "reqwest"], default-features = true, optional = true}
18-
chrono = {version = "0.4.41", features = ["now"], default-features = false, optional = true}
18+
chrono = {version = "0.4.42", features = ["now"], default-features = false, optional = true}
1919

2020
[dev-dependencies]
2121
arbtest = "0.3.2"

factorion-lib/src/format.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const EN_SINGLES: [&str; 10] = [
138138
"", "one ", "two ", "three ", "four ", "five ", "six ", "seven ", "eight ", "nine ",
139139
];
140140
const EN_TENS: [&str; 10] = [
141-
"", "ten ", "twenty ", "thirty ", "forty ", "fivety ", "sixty ", "seventy ", "eighty ",
141+
"", "ten ", "twenty ", "thirty ", "forty ", "fifty ", "sixty ", "seventy ", "eighty ",
142142
"ninety ",
143143
];
144144
const EN_TENS_SINGLES: [&str; 10] = [
@@ -147,7 +147,7 @@ const EN_TENS_SINGLES: [&str; 10] = [
147147
"twelve ",
148148
"thirteen ",
149149
"fourteen ",
150-
"fiveteen ",
150+
"fifteen ",
151151
"sixteen ",
152152
"seventeen ",
153153
"eighteen ",
@@ -513,13 +513,13 @@ mod tests {
513513
.unwrap();
514514
assert_eq!(
515515
acc,
516-
"one tredeccentillion two hundred thirty four duodeccentillion five hundred sixty seven undeccentillion eight hundred ninety deccentillion one hundred twenty three novemcentillion four hundred fivety six octocentillion"
516+
"one tredeccentillion two hundred thirty four duodeccentillion five hundred sixty seven undeccentillion eight hundred ninety deccentillion one hundred twenty three novemcentillion four hundred fifty six octocentillion"
517517
);
518518
let mut acc = String::new();
519519
write_out_number(&mut acc, &"123456789".parse().unwrap(), &consts).unwrap();
520520
assert_eq!(
521521
acc,
522-
"one hundred twenty three million four hundred fivety six thousand seven hundred eighty nine"
522+
"one hundred twenty three million four hundred fifty six thousand seven hundred eighty nine"
523523
);
524524
}
525525

factorion-lib/tests/integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ fn test_write_out_factorial_digits() {
18251825
let reply = comment.get_reply(&consts);
18261826
assert_eq!(
18271827
reply,
1828-
"Factorial of sixty seven novemnonagintillion eight hundred thirty nine octononagintillion one hundred twenty seven septennonagintillion eight hundred thirty seven sexnonagintillion four hundred forty two quinnonagintillion eight hundred seventy three quattuornonagintillion has approximately twenty centillion four hundred forty six novemnonagintillion five hundred twenty two octononagintillion two hundred fiveteen septennonagintillion five hundred sixty four sexnonagintillion two hundred thirty six quinnonagintillion digits \n\n\n*^(This action was performed by a bot | [Source code](http://f.r0.fyi))*"
1828+
"Factorial of sixty seven novemnonagintillion eight hundred thirty nine octononagintillion one hundred twenty seven septennonagintillion eight hundred thirty seven sexnonagintillion four hundred forty two quinnonagintillion eight hundred seventy three quattuornonagintillion has approximately twenty centillion four hundred forty six novemnonagintillion five hundred twenty two octononagintillion two hundred fifteen septennonagintillion five hundred sixty four sexnonagintillion two hundred thirty six quinnonagintillion digits \n\n\n*^(This action was performed by a bot | [Source code](http://f.r0.fyi))*"
18291829
);
18301830
}
18311831

factorion-math/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "factorion-math"
3-
version = "1.0.4"
3+
version = "1.0.5"
44
edition = "2024"
55
description = "The math (factorials and related functions) used by factorion"
66
license = "MIT"
@@ -10,7 +10,7 @@ keywords = ["factorial", "termial", "math"]
1010
categories = ["mathematics"]
1111

1212
[dependencies]
13-
rug = { version = "1.27.0", features = ["integer", "float"], default-features = false }
13+
rug = { version = "1.28.1", features = ["integer", "float"], default-features = false }
1414
gmp-mpfr-sys = "=1.6.4"
1515

1616
[features]

0 commit comments

Comments
 (0)