Skip to content

Commit

Permalink
Publish 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed May 14, 2024
1 parent 673755b commit aea39b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "smol_str"
version = "0.2.1"
version = "0.2.2"
description = "small-string optimized string type with O(1) clone"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-analyzer/smol_str"
Expand Down
3 changes: 3 additions & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::sync::Arc;

#[cfg(not(miri))]
use proptest::{prop_assert, prop_assert_eq, proptest};

use smol_str::SmolStr;
Expand Down Expand Up @@ -57,6 +58,7 @@ fn old_const_fn_ctor() {
assert_eq!(LONG, SmolStr::from("ABCDEFGHIZKLMNOPQRSTUVW"));
}

#[cfg(not(miri))]
fn check_props(std_str: &str, smol: SmolStr) -> Result<(), proptest::test_runner::TestCaseError> {
prop_assert_eq!(smol.as_str(), std_str);
prop_assert_eq!(smol.len(), std_str.len());
Expand All @@ -67,6 +69,7 @@ fn check_props(std_str: &str, smol: SmolStr) -> Result<(), proptest::test_runner
Ok(())
}

#[cfg(not(miri))]
proptest! {
#[test]
fn roundtrip(s: String) {
Expand Down
1 change: 1 addition & 0 deletions tests/tidy.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(miri))]
use std::{
env,
path::{Path, PathBuf},
Expand Down

0 comments on commit aea39b4

Please sign in to comment.