Added more tests
This commit is contained in:
parent
86c795ecce
commit
792d0eb74d
8 changed files with 58 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue