We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
solve_quadratic_equation
1 parent 1c41186 commit 5f5a416Copy full SHA for 5f5a416
.spec/math/solve_quadratic_equation_spec.lua
@@ -29,4 +29,7 @@ describe("Quadratic equation solving", function()
29
assert.equal(complex.new(0, 0), a ^ 2 + p * a + q)
30
assert.equal(complex.new(0, 0), b ^ 2 + p * b + q)
31
end)
32
+ it("handles the case with no real solutions", function()
33
+ assert.equal(solve_quadratic_equation(0, 1), nil)
34
+ end)
35
0 commit comments