summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/sexpr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sexpr.rs b/tests/sexpr.rs
index 8d02793..1f8a0af 100644
--- a/tests/sexpr.rs
+++ b/tests/sexpr.rs
@@ -15,7 +15,7 @@ enum Sexpr {
fn atom<'a>() -> impl Parser<&'a str, Output = Sexpr> {
alpha1()
- .and(alphanumeric())
+ .and(alphanumeric().repeated().many())
.recognize()
.map(|output: &str| Sexpr::Atom(output.to_string()))
}
@@ -35,7 +35,7 @@ fn int<'a>() -> impl Parser<&'a str, Output = Sexpr> {
fn sexpr<'a>() -> impl Parser<&'a str, Output = Sexpr> {
|it| {
sexpr()
- .separated_by(whitespace())
+ .separated_by(whitespace().repeated().many())
.many()
.delimited_by(tag("("), tag(")"))
.map(|output| Sexpr::List(output))