mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
fixed cli_echo, base64_test
This commit is contained in:
parent
4f186113ae
commit
95cd5ebab3
1 changed files with 12 additions and 4 deletions
|
@ -471,7 +471,8 @@ peg::parser!{
|
||||||
[T::LambdaStart] args() [T::Arrow] __ full_expr()
|
[T::LambdaStart] args() [T::Arrow] __ full_expr()
|
||||||
|
|
||||||
rule args() =
|
rule args() =
|
||||||
(ident() [T::Comma])* ident()
|
[T::Underscore]
|
||||||
|
/ (ident() [T::Comma])* ident()
|
||||||
|
|
||||||
|
|
||||||
rule tag() =
|
rule tag() =
|
||||||
|
@ -523,7 +524,7 @@ peg::parser!{
|
||||||
rule expect() = [T::KeywordExpect] expr()
|
rule expect() = [T::KeywordExpect] expr()
|
||||||
|
|
||||||
rule backpass() =
|
rule backpass() =
|
||||||
pattern() [T::OpBackpassing] expr()
|
__ pattern() [T::OpBackpassing] expr()
|
||||||
|
|
||||||
rule pattern() =
|
rule pattern() =
|
||||||
[T::LowercaseIdent]
|
[T::LowercaseIdent]
|
||||||
|
@ -1041,7 +1042,14 @@ fn test_base64() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_astar() {
|
fn test_base64_test() {
|
||||||
|
let tokens = test_tokenize(&example_path("benchmarks/TestBase64.roc"));
|
||||||
|
dbg!(&tokens);
|
||||||
|
assert_eq!(tokenparser::module(&tokens), Ok(()));
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_astar_test() {
|
||||||
let tokens = test_tokenize(&example_path("benchmarks/TestAStar.roc"));
|
let tokens = test_tokenize(&example_path("benchmarks/TestAStar.roc"));
|
||||||
|
|
||||||
assert_eq!(tokenparser::module(&tokens), Ok(()));
|
assert_eq!(tokenparser::module(&tokens), Ok(()));
|
||||||
|
@ -1050,7 +1058,7 @@ fn test_astar() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_cli_echo() {
|
fn test_cli_echo() {
|
||||||
let tokens = test_tokenize(&example_path("cli/Echo.roc"));
|
let tokens = test_tokenize(&example_path("cli/Echo.roc"));
|
||||||
dbg!(&tokens);
|
|
||||||
assert_eq!(tokenparser::module(&tokens), Ok(()));
|
assert_eq!(tokenparser::module(&tokens), Ok(()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue