mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Merge pull request #720 from rtfeldman/repeated-concat-test
Comment in repeated Str.concat test
This commit is contained in:
commit
97c42f8196
1 changed files with 22 additions and 19 deletions
|
@ -71,26 +71,29 @@ mod gen_str {
|
||||||
3,
|
3,
|
||||||
i64
|
i64
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// assert_evals_to!(
|
#[test]
|
||||||
// indoc!(
|
fn str_split_str_concat_repeated() {
|
||||||
// r#"
|
assert_evals_to!(
|
||||||
// when List.first (Str.split "JJJJJ" "JJJJ there") is
|
indoc!(
|
||||||
// Ok str ->
|
r#"
|
||||||
// str
|
when List.first (Str.split "JJJJJ" "JJJJ there") is
|
||||||
// |> Str.concat str
|
Ok str ->
|
||||||
// |> Str.concat str
|
str
|
||||||
// |> Str.concat str
|
|> Str.concat str
|
||||||
// |> Str.concat str
|
|> Str.concat str
|
||||||
//
|
|> Str.concat str
|
||||||
// _ ->
|
|> Str.concat str
|
||||||
// "Not Str!"
|
|
||||||
//
|
_ ->
|
||||||
// "#
|
"Not Str!"
|
||||||
// ),
|
|
||||||
// "JJJJJJJJJJJJJJJJJJJJJJJJJ",
|
"#
|
||||||
// &'static str
|
),
|
||||||
// );
|
"JJJJJJJJJJJJJJJJJJJJJJJJJ",
|
||||||
|
&'static str
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue