Added USERLIB with prepend and set.
Added a q shortcut to quote get-doc and set-doc no longer conditionally evaluate args Fixed bug in let, documented potential performance improvements upped default history to 5k lines
This commit is contained in:
parent
a01df6b7b2
commit
1ee9ba55fb
7 changed files with 70 additions and 25 deletions
|
|
@ -112,7 +112,7 @@ mod decl_lib_tests {
|
|||
let doc1 = "(def test-doc 'docs for test' 'test tests tests test')";
|
||||
let doc2 = "(def test test-doc 'one')";
|
||||
let doc3 = "(eq? (and
|
||||
(eq? (get-doc test) test-doc)
|
||||
(eq? (get-doc (quote test)) test-doc)
|
||||
(eq? test 'one')))";
|
||||
|
||||
let mut syms = SymTable::new();
|
||||
|
|
@ -337,8 +337,8 @@ mod decl_lib_tests {
|
|||
|
||||
#[test]
|
||||
fn test_setget_doc_string() {
|
||||
let highly_inadvisable = "(set-doc help 'help')";
|
||||
let document = "(get-doc help)";
|
||||
let highly_inadvisable = "(set-doc (q help) 'help')";
|
||||
let document = "(get-doc (q help))";
|
||||
let mut syms = SymTable::new();
|
||||
static_stdlib(&mut syms).unwrap();
|
||||
dynamic_stdlib(&mut syms).unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue