Permalink
Browse files

add test for integer passed

  • Loading branch information...
1 parent 7d1af8b commit 68201aef429263f21635d5d74e0f345ce69423ff @cordoval committed Apr 28, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Tests/ComputerBuild/Vhdl/StatementTest.php
@@ -27,6 +27,12 @@ public function testItShouldReturnTheSameExpressionIfNoneOfTheAbove()
$expression = new AnotherTestClass();
$this->assertEquals($expression, (new Statement())->quoted($expression));
}
+
+ public function testItShouldTestForInteger()
+ {
+ $this->assertEquals(77, (new Statement())->quoted(77));
+ $this->assertEquals("\"77\"", (new Statement())->quoted("77"));
+ }
}
class AnotherTestClass

0 comments on commit 68201ae

Please sign in to comment.