Skip to content

Commit 5e28302

Browse files
committed
Fix parser unit tests
1 parent 35b6246 commit 5e28302

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

aiscript-runtime/src/parser.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,14 @@ mod tests {
378378
"""Test endpoint"""
379379
query {
380380
"""field name"""
381-
name: str = "hello"
382-
age: int = 18
381+
name: str = "hello",
382+
age: int = 18,
383383
}
384384
body {
385385
"""field a"""
386386
@length(max=10)
387-
a: str
388-
b: bool = false
387+
a: str,
388+
b: bool = false,
389389
}
390390
391391
let greeting = "Hello" + name;
@@ -494,11 +494,11 @@ mod tests {
494494
body {
495495
@string(max_len=10)
496496
@not(@string(min_len=5))
497-
field: str
497+
field: str,
498498
@in(["a" ,"b", "c"])
499-
x: str = "a"
499+
x: str = "a",
500500
@in([1, 2, 3])
501-
y: int = 1
501+
y: int = 1,
502502
@any(@in(["a", "b"]), @string(min_len=1))
503503
z: str
504504
}

0 commit comments

Comments
 (0)