Skip to content

Commit

Permalink
Finally fix that number equality test
Browse files Browse the repository at this point in the history
  • Loading branch information
gastrodon committed Sep 18, 2024
1 parent 6123f52 commit e210106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure/eval_ctx_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package configure

import (
"math/big"
"os"
"testing"

Expand Down Expand Up @@ -46,8 +47,7 @@ func Test_makeEvalCtx_Number(test *testing.T) {
}

assert.NotNil(test, values, "values is nil!")
i, _ := values.Variables["value"].GetAttr("v").AsBigFloat().Int64()
assert.Equal(test, int64(1234), i)
assert.Equal(test, cty.NumberVal(new(big.Float).SetInt64(1234).SetPrec(512)), values.Variables["value"].GetAttr("v"))
}

func Test_makeEvalCtx_Env(test *testing.T) {
Expand Down

0 comments on commit e210106

Please sign in to comment.