mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +02:00
Correctly enumerate trend test
This commit is contained in:
parent
913e50569c
commit
7714c4f89d
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@ class TimeSeries::TrendTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
test "flat" do
|
test "flat" do
|
||||||
trend1 = TimeSeries::Trend.new(current: 100, previous: 100)
|
trend1 = TimeSeries::Trend.new(current: 100, previous: 100)
|
||||||
trend3 = TimeSeries::Trend.new(current: 100, previous: nil)
|
trend2 = TimeSeries::Trend.new(current: 100, previous: nil)
|
||||||
trend2 = TimeSeries::Trend.new(current: nil, previous: nil)
|
trend3 = TimeSeries::Trend.new(current: nil, previous: nil)
|
||||||
assert_equal "flat", trend1.direction
|
assert_equal "flat", trend1.direction
|
||||||
assert_equal "flat", trend2.direction
|
assert_equal "flat", trend2.direction
|
||||||
assert_equal "flat", trend3.direction
|
assert_equal "flat", trend3.direction
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue