mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +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,
|
||||
i64
|
||||
);
|
||||
}
|
||||
|
||||
// assert_evals_to!(
|
||||
// indoc!(
|
||||
// r#"
|
||||
// when List.first (Str.split "JJJJJ" "JJJJ there") is
|
||||
// Ok str ->
|
||||
// str
|
||||
// |> Str.concat str
|
||||
// |> Str.concat str
|
||||
// |> Str.concat str
|
||||
// |> Str.concat str
|
||||
//
|
||||
// _ ->
|
||||
// "Not Str!"
|
||||
//
|
||||
// "#
|
||||
// ),
|
||||
// "JJJJJJJJJJJJJJJJJJJJJJJJJ",
|
||||
// &'static str
|
||||
// );
|
||||
#[test]
|
||||
fn str_split_str_concat_repeated() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
when List.first (Str.split "JJJJJ" "JJJJ there") is
|
||||
Ok str ->
|
||||
str
|
||||
|> Str.concat str
|
||||
|> Str.concat str
|
||||
|> Str.concat str
|
||||
|> Str.concat str
|
||||
|
||||
_ ->
|
||||
"Not Str!"
|
||||
|
||||
"#
|
||||
),
|
||||
"JJJJJJJJJJJJJJJJJJJJJJJJJ",
|
||||
&'static str
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue