commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user