Skip to content

Commit

Permalink
Merge 5ae1d52 into d720000
Browse files Browse the repository at this point in the history
  • Loading branch information
spam-n-eggs committed Feb 14, 2019
2 parents d720000 + 5ae1d52 commit 4c8442a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"phpunit/php-code-coverage": "^6.1@dev",
"php-coveralls/php-coveralls": "2.1.x-dev"
},
"suggest": {
"symfony/intl": "If you just need the en locale",
"ext-intl": "For locales other than en"
},
"license": "MIT",
"authors": [
{
Expand Down
9 changes: 8 additions & 1 deletion test/Mhorninger/MySQLite/StringMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ public function testFormatNull()
$this->assertNull($result->value);
}

public function testFormatWithMathProblem()
{
$query = 'SELECT FORMAT((3600 * 1.7 / 281), 1) as value';
$result = $this->conn->selectOne($query);
$expected = '21.8';
$this->assertEquals($expected, $result->value);
}

//endregion

//region LPAD tests
Expand All @@ -74,6 +82,5 @@ public function testLpadNull()
$result = $this->conn->selectOne($query);
$this->assertNull($result->value);
}

//endregion
}

0 comments on commit 4c8442a

Please sign in to comment.