Skip to content

Commit 7308b62

Browse files
committed
added test for negative default values (generally tests negative numbers too)
1 parent 37f4353 commit 7308b62

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/FieldTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,16 @@ function testFieldOptions(){
335335
'null' => true,
336336
)
337337
), $fields);
338+
339+
$fields = $this->get_fields("bar INT NOT NULL DEFAULT -1");
340+
$this->assertEquals(array(
341+
array(
342+
'name' => "bar",
343+
'type' => "INT",
344+
'default' => '-1',
345+
'null' => false,
346+
)
347+
), $fields);
338348
}
339349

340350
function testVirtualOptions(){

0 commit comments

Comments
 (0)