-
Hello ! Consider the following scenario Scenario: Just a test
When this
"""
is
a
test
"""
Then I can capture a multi-line string Is is possible to capture such string with cucumber-rs? I've tried several things like #[when(expr = "this")]
fn test(world: &mut MyWorld, content: String) {} or #[when(expr = "this{}")]
fn test(world: &mut MyWorld, content: String) {} or even #[when(expr = "this\n{}")]
fn test(world: &mut MyWorld, content: String) {} But nothing is working. Thanks for your answer(s) 🙏 |
Beta Was this translation helpful? Give feedback.
Answered by
tyranron
Oct 7, 2025
Replies: 1 comment 1 reply
-
@jmevel we have this topic covered in the "Doc strings" chapter of the Book:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jmevel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jmevel we have this topic covered in the "Doc strings" chapter of the Book: