Skip to content

Commit

Permalink
Add additional function tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenii Nasyrov committed Jan 19, 2018
1 parent be83f64 commit bca3358
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/Unit/TraderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,28 @@ public function it_executes_sarext_correctly()
);
}

/** @test */
public function it_executes_set_compat_correctly()
{
static::$trader->set_compat(TRADER_COMPATIBILITY_DEFAULT);

$this->assertEquals(
TRADER_COMPATIBILITY_DEFAULT,
trader_get_compat()
);
}

/** @test */
public function it_executes_set_unstable_period_correctly()
{
static::$trader->set_unstable_period(TRADER_FUNC_UNST_ADX, 14);

$this->assertEquals(
14,
trader_get_unstable_period(TRADER_FUNC_UNST_ADX)
);
}

/** @test */
public function it_executes_sin_correctly()
{
Expand Down

0 comments on commit bca3358

Please sign in to comment.