Skip to content

Commit

Permalink
Fix coeffs order
Browse files Browse the repository at this point in the history
  • Loading branch information
azuchi committed Feb 10, 2024
1 parent 6719796 commit 93f7fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/polynomial_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
it do
poly = described_class.from_secret(secret, 3, group)
expect(poly.coefficients.length).to eq(4)
expect(poly.coefficients.last).to eq(secret)
expect(poly.coefficients.first).to eq(secret)
end

context "invalid degree" do
Expand Down

0 comments on commit 93f7fe9

Please sign in to comment.