fixed cli_echo, base64_test

This commit is contained in:
Anton-4 2022-01-30 13:07:52 +01:00
parent 4f186113ae
commit 95cd5ebab3
No known key found for this signature in database
GPG key ID: C954D6E0F9C0ABFD

View file

@ -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(()));
} }