Merge pull request #720 from rtfeldman/repeated-concat-test

Comment in repeated Str.concat test
This commit is contained in:
Richard Feldman 2020-11-21 14:58:35 -05:00 committed by GitHub
commit 97c42f8196
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]