diff --git a/test/arithmetic.toy b/scripts/test/arithmetic.toy similarity index 100% rename from test/arithmetic.toy rename to scripts/test/arithmetic.toy diff --git a/test/casting.toy b/scripts/test/casting.toy similarity index 100% rename from test/casting.toy rename to scripts/test/casting.toy diff --git a/test/comparisons.toy b/scripts/test/comparisons.toy similarity index 100% rename from test/comparisons.toy rename to scripts/test/comparisons.toy diff --git a/test/functions.toy b/scripts/test/functions.toy similarity index 100% rename from test/functions.toy rename to scripts/test/functions.toy diff --git a/test/jumps.toy b/scripts/test/jumps.toy similarity index 100% rename from test/jumps.toy rename to scripts/test/jumps.toy diff --git a/test/logicals.toy b/scripts/test/logicals.toy similarity index 100% rename from test/logicals.toy rename to scripts/test/logicals.toy diff --git a/test/long-array.toy b/scripts/test/long-array.toy similarity index 100% rename from test/long-array.toy rename to scripts/test/long-array.toy diff --git a/test/long-dictionary.toy b/scripts/test/long-dictionary.toy similarity index 100% rename from test/long-dictionary.toy rename to scripts/test/long-dictionary.toy diff --git a/test/long-literals.toy b/scripts/test/long-literals.toy similarity index 100% rename from test/long-literals.toy rename to scripts/test/long-literals.toy diff --git a/test/native-functions.toy b/scripts/test/native-functions.toy similarity index 100% rename from test/native-functions.toy rename to scripts/test/native-functions.toy diff --git a/test/panic-within-functions.toy b/scripts/test/panic-within-functions.toy similarity index 100% rename from test/panic-within-functions.toy rename to scripts/test/panic-within-functions.toy diff --git a/test/types.toy b/scripts/test/types.toy similarity index 100% rename from test/types.toy rename to scripts/test/types.toy diff --git a/source/interpreter.c b/source/interpreter.c index 4daeaec..f7c4ecd 100644 --- a/source/interpreter.c +++ b/source/interpreter.c @@ -42,8 +42,6 @@ bool injectNativeFn(Interpreter* interpreter, char* name, NativeFn func) { setLiteralDictionary(&interpreter->scope->variables, identifier, fn); setLiteralDictionary(&interpreter->scope->types, identifier, type); - freeLiteral(identifier); - return true; }