list contains implemented

This commit is contained in:
Ava Apples Affine 2023-03-20 22:03:10 -07:00
parent da0709c4db
commit b638918a89
Signed by: affine
GPG key ID: 3A4645B8CF806069
7 changed files with 36 additions and 9 deletions

View file

@ -154,7 +154,7 @@ mod str_lib_tests {
#[test]
fn test_contains() {
let document = "(contains 'bigger' 'ger')";
let document = "(substr? 'bigger' 'ger')";
let result = "true";
let mut syms = SymTable::new();
static_stdlib(&mut syms).unwrap();
@ -169,7 +169,7 @@ mod str_lib_tests {
#[test]
fn test_doesnt_contain() {
let document = "(contains 'smaller' 'ger')";
let document = "(substr? 'smaller' 'ger')";
let result = "false";
let mut syms = SymTable::new();
static_stdlib(&mut syms).unwrap();