Skip to content

Commit

Permalink
fix: Fix tests after project rename
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed Jul 24, 2023
1 parent ca45d45 commit f5d4f17
Show file tree
Hide file tree
Showing 58 changed files with 458 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const EXPECTABLE_MAXIMUM_MATCHES_PER_WORD: u8 = 8;
///
///
/// ```
/// use betterletter::{apply, stages::GermanStage, Stage};
/// use betterletters::{apply, stages::GermanStage, Stage};
/// use std::io::Cursor;
///
/// let stages = vec![Box::new(GermanStage)].into_iter().map(|g| g as Box<dyn Stage>).collect();
Expand Down
18 changes: 9 additions & 9 deletions core/src/stages/german/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static VALID_GERMAN_WORDS: &str = include_str!(concat!(env!("OUT_DIR"), "/de.txt
/// # Example: A simple greeting, with Umlaut and Eszett
///
/// ```
/// use betterletter::{Stage, stages::GermanStage};
/// use betterletters::{Stage, stages::GermanStage};
///
/// let result: String = GermanStage.substitute("Gruess Gott!").unwrap().into();
/// assert_eq!(result, "Grüß Gott!");
Expand All @@ -48,7 +48,7 @@ static VALID_GERMAN_WORDS: &str = include_str!(concat!(env!("OUT_DIR"), "/de.txt
/// *elaborate* word list!), but is still handled, as its constituents are.
///
/// ```
/// use betterletter::{Stage, stages::GermanStage};
/// use betterletters::{Stage, stages::GermanStage};
///
/// let result: String = GermanStage.substitute("Du Suesswassertagtraeumer!").unwrap().into();
/// assert_eq!(result, "Du Süßwassertagträumer!");
Expand All @@ -61,7 +61,7 @@ static VALID_GERMAN_WORDS: &str = include_str!(concat!(env!("OUT_DIR"), "/de.txt
/// [`tr`](https://en.wikipedia.org/wiki/Tr_(Unix))) would not handle this correctly.
///
/// ```
/// use betterletter::{Stage, stages::GermanStage};
/// use betterletters::{Stage, stages::GermanStage};
///
/// for word in &[
/// // "ae"
Expand Down Expand Up @@ -111,7 +111,7 @@ static VALID_GERMAN_WORDS: &str = include_str!(concat!(env!("OUT_DIR"), "/de.txt
/// more likely than for Umlauts.
///
/// ```
/// use betterletter::{Stage, stages::GermanStage};
/// use betterletters::{Stage, stages::GermanStage};
///
/// for (input, output) in &[
/// ("Busse", "Buße"), // busses / penance
Expand Down Expand Up @@ -150,7 +150,7 @@ static VALID_GERMAN_WORDS: &str = include_str!(concat!(env!("OUT_DIR"), "/de.txt
///
///
/// ```
/// use betterletter::{Stage, stages::GermanStage};
/// use betterletters::{Stage, stages::GermanStage};
///
/// let result: String = GermanStage.substitute("aEpFeL").unwrap().into();
///
Expand All @@ -166,7 +166,7 @@ static VALID_GERMAN_WORDS: &str = include_str!(concat!(env!("OUT_DIR"), "/de.txt
/// output is `Äpfel`
///
/// ```
/// use betterletter::{Stage, stages::GermanStage};
/// use betterletters::{Stage, stages::GermanStage};
///
/// let result: String = GermanStage.substitute("AePfEl").unwrap().into();
///
Expand All @@ -177,7 +177,7 @@ static VALID_GERMAN_WORDS: &str = include_str!(concat!(env!("OUT_DIR"), "/de.txt
/// ## Subexample: other cases
///
/// ```
/// use betterletter::{Stage, stages::GermanStage};
/// use betterletters::{Stage, stages::GermanStage};
///
/// let f = |word: &str| -> String {GermanStage.substitute(word).unwrap().into()};
///
Expand Down Expand Up @@ -242,7 +242,7 @@ static VALID_GERMAN_WORDS: &str = include_str!(concat!(env!("OUT_DIR"), "/de.txt
/// Of course, the input has to be valid UTF-8, as is ensured by its signature ([`str`]).
///
/// ```
/// use betterletter::{Stage, stages::GermanStage};
/// use betterletters::{Stage, stages::GermanStage};
///
/// let result: String = GermanStage.substitute("\0Schoener 你好 Satz... 👋🏻\r\n\n").unwrap().into();
/// assert_eq!(result, "\0Schöner 你好 Satz... 👋🏻\r\n\n");
Expand Down Expand Up @@ -275,7 +275,7 @@ static VALID_GERMAN_WORDS: &str = include_str!(concat!(env!("OUT_DIR"), "/de.txt
///
/// For more info, an overview of the methods tried
/// ([`phf`](https://crates.io/crates/phf) and more), and benchmarks, see [this
/// issue](https://github.com/alexpovel/betterletter-rs/issues/9).
/// issue](https://github.com/alexpovel/betterletters/issues/9).
#[derive(Debug, Clone, Copy)]
pub struct GermanStage;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: "????"
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: "\u0000"
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: "\u0000Dübel"
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: "\u0000Dübel\u0000"
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Duebel
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: DüBeL
---
true

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: "Dübel\u0000"
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Koeffizient
---
true

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Kübel
---
true

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Mauer
---
true

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Mauerdübel
---
true

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Mauerdübelkübel
---
true

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Mauer😂
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Maür
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Maürdübelkübel
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: "No\nway"
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: Süßwasserschwimmbäder
---
true

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: dröge
---
true

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: kindergarten
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: kongruent
---
true

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: messgerät
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: مرحبا
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: 你好
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: 😎
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: 🤩Dübel
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: "is_valid(&word, &contained_in_global_word_list)"
info:
word: 🤩Dübel🤐
---
false

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: result.0
info:
word: "\u0000Duebel\u0000"
---
"\u0000Dübel\u0000"

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: result.0
info:
word: "\u0000Kuebel"
---
"\u0000Kübel"

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: result.0
info:
word: Abenteuer sind toll!
---
Abenteuer sind toll!

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: result.0
info:
word: Dübel
---
Dübel

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: result.0
info:
word: Ich mag AEPFEL!! 😍
---
Ich mag ÄPFEL!! 😍

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: result.0
info:
word: "Ich mag Aepfel, aber nicht Aerger."
---
"Ich mag Äpfel, aber nicht Ärger."

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: result.0
info:
word: Koeffizient
---
Koeffizient

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: core/src/stages/german/driver.rs
expression: result.0
info:
word: Oel ist ein wichtiger Bestandteil von Oel.
---
Öl ist ein wichtiger Bestandteil von Öl.

Loading

0 comments on commit f5d4f17

Please sign in to comment.