Skip to content

Commit 682547e

Browse files
committed
fix tests
1 parent 93918e8 commit 682547e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ impl<'a> FormatArgument<'a> {
500500
/// containing [`Formattable`] values.
501501
///
502502
/// ```
503-
/// use template::{write, Formattable};
503+
/// use interpolator::{write, Formattable};
504504
///
505505
/// let mut buf = String::new();
506506
/// write(
@@ -576,7 +576,7 @@ pub fn write<K: Borrow<str> + Eq + Hash>(
576576
/// string.
577577
///
578578
/// ```
579-
/// use template::{format, Formattable};
579+
/// use interpolator::{format, Formattable};
580580
///
581581
/// let formatted = format(
582582
/// "{value:+05}", // could be dynamic

tests/test.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ fn test(
120120
t.pass_inline(
121121
&converter.to_token_stream().to_string(),
122122
&quote! {
123-
use template::{{format, Formattable, write}};
123+
use interpolator::{{format, Formattable, write}};
124124
use std::thread;
125125
use std::fmt::Write;
126126
fn main() {
@@ -235,7 +235,7 @@ proptest! {
235235
let format_arg = format_arg.to_string();
236236
let format_arg = format_arg.escape_default();
237237
t.pass_inline("display", &format!{r#"
238-
use template::{{format, Formattable}};
238+
use interpolator::{{format, Formattable}};
239239
fn main() {{
240240
assert_eq!(
241241
format("{format_arg}", [("ident", (&"test").into())].into_iter().collect()).unwrap(),
@@ -261,7 +261,7 @@ proptest! {
261261
let format_arg = format_arg.to_string();
262262
let format_arg = format_arg.escape_default();
263263
t.pass_inline("integer", &format!{r#"
264-
use template::{{format, Formattable}};
264+
use interpolator::{{format, Formattable}};
265265
fn main() {{
266266
assert_eq!(
267267
format("{format_arg}", [("ident", Formattable::integer(&10))].into_iter().collect()).unwrap(),
@@ -281,7 +281,7 @@ proptest! {
281281
let format_arg = format_arg.to_string();
282282
let format_arg = format_arg.escape_default();
283283
t.pass_inline("float", &format!{r#"
284-
use template::{{format, Formattable}};
284+
use interpolator::{{format, Formattable}};
285285
fn main() {{
286286
assert_eq!(
287287
format("{format_arg}", [("ident", Formattable::float(&3.14))].into_iter().collect()).unwrap(),
@@ -299,7 +299,7 @@ proptest! {
299299
let format_arg = format_arg.to_string();
300300
let format_arg = format_arg.escape_default();
301301
t.pass_inline("pointer", &format!{r#"
302-
use template::{{format, Formattable}};
302+
use interpolator::{{format, Formattable}};
303303
fn main() {{
304304
let p = &42;
305305
assert_eq!(

0 commit comments

Comments
 (0)