rename relish to flesh
This commit is contained in:
parent
415b1181fa
commit
9b447eb5b7
58 changed files with 252 additions and 245 deletions
|
|
@ -1,7 +1,7 @@
|
|||
mod eval_tests {
|
||||
use relish::ast::{eval, lex, SymTable};
|
||||
use relish::ast::{Args, Ctr, Seg, Symbol, UserFn, ValueType};
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use flesh::ast::{eval, lex, SymTable};
|
||||
use flesh::ast::{Args, Ctr, Seg, Symbol, UserFn, ValueType};
|
||||
use flesh::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
|
||||
#[test]
|
||||
fn eval_simple() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
mod func_tests {
|
||||
use relish::ast::lex;
|
||||
use relish::ast::{Args, Ctr, Seg, Symbol, ValueType, Traceback};
|
||||
use relish::ast::{SymTable, Type, UserFn, start_trace};
|
||||
use flesh::ast::lex;
|
||||
use flesh::ast::{Args, Ctr, Seg, Symbol, ValueType, Traceback};
|
||||
use flesh::ast::{SymTable, Type, UserFn, start_trace};
|
||||
use std::rc::Rc;
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
|
|
@ -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(),);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
mod append_lib_tests {
|
||||
use relish::ast::{eval, lex, SymTable};
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use flesh::ast::{eval, lex, SymTable};
|
||||
use flesh::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
|
||||
#[test]
|
||||
fn test_cons_to_empty_list() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
mod bool_lib_tests {
|
||||
use relish::ast::{eval, lex, Ctr, SymTable};
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use flesh::ast::{eval, lex, Ctr, SymTable};
|
||||
use flesh::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
|
||||
#[test]
|
||||
fn test_and_true_chain() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
mod control_lib_tests {
|
||||
use relish::ast::{eval, lex, SymTable};
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use flesh::ast::{eval, lex, SymTable};
|
||||
use flesh::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
|
||||
#[test]
|
||||
fn test_assert_t() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
mod decl_lib_tests {
|
||||
use relish::ast::{eval, lex, Ctr, SymTable};
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use flesh::ast::{eval, lex, Ctr, SymTable};
|
||||
use flesh::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
|
||||
#[test]
|
||||
fn test_variable_def_and_lookup() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
mod file_lib_tests {
|
||||
use relish::ast::{eval, lex, SymTable};
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use flesh::ast::{eval, lex, SymTable};
|
||||
use flesh::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
|
||||
#[test]
|
||||
fn test_fexists() {
|
||||
|
|
@ -38,7 +38,7 @@ mod file_lib_tests {
|
|||
fn test_write_file() {
|
||||
let document = "
|
||||
(let ((s 'test')
|
||||
(t '/tmp/relish-lib-test-file-1'))
|
||||
(t '/tmp/flesh-lib-test-file-1'))
|
||||
(write-file t s)
|
||||
(echo (read-file t))
|
||||
(eq? (read-file t) s))";
|
||||
|
|
@ -59,7 +59,7 @@ mod file_lib_tests {
|
|||
fn test_append_file() {
|
||||
let document = "
|
||||
(let ((s 'test')
|
||||
(t '/tmp/relish-lib-test-file-2'))
|
||||
(t '/tmp/flesh-lib-test-file-2'))
|
||||
(write-file t s)
|
||||
(append-file t s)
|
||||
(eq? (read-file t)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
mod math_lib_tests {
|
||||
use relish::ast::{eval, lex, Ctr, SymTable};
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use flesh::ast::{eval, lex, Ctr, SymTable};
|
||||
use flesh::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
|
||||
#[test]
|
||||
fn test_add_chain() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
mod posix_tests {
|
||||
use relish::aux::args_from_ast;
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use relish::ast::{lex, eval, SymTable};
|
||||
use flesh::aux::args_from_ast;
|
||||
use flesh::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use flesh::ast::{lex, eval, SymTable};
|
||||
|
||||
#[test]
|
||||
fn test_cmd_singlet() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
mod str_lib_tests {
|
||||
use relish::ast::{eval, lex, SymTable};
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
use flesh::ast::{eval, lex, SymTable};
|
||||
use flesh::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
|
||||
#[test]
|
||||
fn test_simple_concat() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue