diff options
author | Alex Goodman <wagoodman@users.noreply.github.com> | 2018-10-14 10:57:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-14 10:57:59 -0400 |
commit | 18b405db72fe34b079dd3523d465563465fa1623 (patch) | |
tree | e6e24d8d13ae2b10e4caf2cf876096180fea172d /filetree/tree_test.go | |
parent | 85fa13501d2299b2df44df1f8ef519b8c8a20983 (diff) |
Size based efficiency (#24)
Diffstat (limited to 'filetree/tree_test.go')
-rw-r--r-- | filetree/tree_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filetree/tree_test.go b/filetree/tree_test.go index 2711ede..8d7eec7 100644 --- a/filetree/tree_test.go +++ b/filetree/tree_test.go @@ -554,7 +554,7 @@ func TestEfficiencyScore(t *testing.T) { trees[ix] = tree } expected := 2.0 / 6.0 - actual := EfficiencyScore(trees) + actual := CalculateEfficiency(trees) if math.Abs(expected-actual) > 0.0001 { t.Fatalf("Expected %f but got %f", expected, actual) } @@ -567,7 +567,7 @@ func TestEfficiencyScore(t *testing.T) { trees[ix] = tree } expected = 1.0 - actual = EfficiencyScore(trees) + actual = CalculateEfficiency(trees) if math.Abs(expected-actual) > 0.0001 { t.Fatalf("Expected %f but got %f", expected, actual) } |