rename relish to flesh

This commit is contained in:
Ava Apples Affine 2024-02-06 22:39:08 +00:00
parent 415b1181fa
commit 9b447eb5b7
58 changed files with 252 additions and 245 deletions

View file

@ -1,5 +1,5 @@
mod lex_tests {
use relish::ast::lex;
use flesh::ast::lex;
#[test]
fn test_lex_basic_pair() {
@ -60,7 +60,7 @@ mod lex_tests {
#[test]
fn test_comment_1() {
let document = String::from("#!/bin/relish\n(one two)");
let document = String::from("#!/bin/flesh\n(one two)");
let output: &str = "(one two)";
assert_eq!(lex(&document).unwrap().to_string(), output.to_string(),);
}
@ -75,7 +75,7 @@ mod lex_tests {
#[test]
fn test_postline_comment_1() {
let document =
String::from("#!/bin/relish\n((one two)# another doc comment\n('three' four))");
String::from("#!/bin/flesh\n((one two)# another doc comment\n('three' four))");
let output: &str = "((one two) ('three' four))";
assert_eq!(lex(&document).unwrap().to_string(), output.to_string(),);
}
@ -83,14 +83,14 @@ mod lex_tests {
#[test]
fn test_postline_comment_2() {
let document =
String::from("#!/bin/relish\n((one two);;another doc comment\n(three four))");
String::from("#!/bin/flesh\n((one two);;another doc comment\n(three four))");
let output: &str = "((one two) (three four))";
assert_eq!(lex(&document).unwrap().to_string(), output.to_string(),);
}
#[test]
fn test_inline_comment_1() {
let document = String::from("#!/bin/relish\n((one two)\n# another comment\nthree)");
let document = String::from("#!/flesh/flesh\n((one two)\n# another comment\nthree)");
let output: &str = "((one two) three)";
assert_eq!(lex(&document).unwrap().to_string(), output.to_string(),);
}