This commit is contained in:
2026-04-13 21:05:59 +03:00
parent 2890087e36
commit 9fc325d61c
3 changed files with 84 additions and 131 deletions

View File

@@ -138,7 +138,7 @@ RSpec.describe RubyAlgebra::Interpreter do
cmd = RubyAlgebra::Parser.parse_command("Q, R := A / B")
interpreter.execute(cmd)
expect(interpreter.execute(RubyAlgebra::Parser.parse_command("Q"))).to eq("1.0x + 1.0")
expect(interpreter.execute(RubyAlgebra::Parser.parse_command("Q"))).to eq("x + 1.0")
expect(interpreter.execute(RubyAlgebra::Parser.parse_command("R"))).to eq("0")
end
end