Added more tests

This commit is contained in:
Eduard Urbach 2025-03-09 19:24:15 +01:00
parent 86c795ecce
commit 792d0eb74d
Signed by: eduard
GPG key ID: 49226B848C78F6C8
8 changed files with 58 additions and 23 deletions

View file

@ -24,13 +24,13 @@ func (f *Function) CompileAssignDivision(expr *expression.Expression) error {
)
if expr.Token.Kind == token.Define {
quotientVariable, err = f.Define(variables.Children[0])
quotientVariable, err = f.NewVariable(variables.Children[0])
if err != nil {
return err
}
remainderVariable, err = f.Define(variables.Children[1])
remainderVariable, err = f.NewVariable(variables.Children[1])
if err != nil {
return err