Skip to content

Commit

Permalink
prepare (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenExe committed Mar 15, 2017
1 parent dc834a2 commit 51d32be
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
10 changes: 10 additions & 0 deletions src/GoingFactorialSequence.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace ReenExe\CodewarsPHP;

class GoingFactorialSequence
{
public function calculate($n)
{
}
}
18 changes: 18 additions & 0 deletions tests/GoingFactorialSequenceTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace ReenExe\CodewarsPHP\Tests;

use PHPUnit\Framework\TestCase;
use ReenExe\CodewarsPHP\GoingFactorialSequence;

class GoingFactorialSequenceTest extends TestCase
{
public function testBasics()
{
$going = new GoingFactorialSequence();
$this->assertEquals(1.275, $going->calculate(5));
$this->assertEquals(1.2125, $going->calculate(6));
$this->assertEquals(1.173214, $going->calculate(7));
$this->assertEquals(1.146651, $going->calculate(8));
}
}
16 changes: 0 additions & 16 deletions tests/GoingTest.php

This file was deleted.

0 comments on commit 51d32be

Please sign in to comment.