Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: rust unit test
appflowyb77909797872
diff --git a/frontend/rust-lib/flowy-text-block/tests/editor/mod.rs b/frontend/rust-lib/flowy-text-block/tests/editor/mod.rsindex f463a0932a..676b9a1cb0 100644--- a/frontend/rust-lib/flowy-text-block/tests/editor/mod.rs+++ b/frontend/rust-lib/flowy-text-block/tests/editor/mod.rs@@ -309,9 +309,9 @@ impl Rng {let i = if left == 1 {1} else {- 1 + self.0.gen_range(0, std::cmp::min(left - 1, 20))+ 1 + self.0.gen_range(0..std::cmp::min(left - 1, 20))};- match self.0.gen_range(0.0, 1.0) {+ match self.0.gen_range(0.0..1.0) {f if f < 0.2 => {delta.insert(&self.gen_string(i), RichTextAttributes::default());}@@ -323,7 +323,7 @@ impl Rng {}}}- if self.0.gen_range(0.0, 1.0) < 0.3 {+ if self.0.gen_range(0.0..1.0) < 0.3 {delta.insert(&("1".to_owned() + &self.gen_string(10)), RichTextAttributes::default());}delta