Fix tests after type change
All checks were successful
timw4mail/php-kilo/pipeline/head This commit looks good
All checks were successful
timw4mail/php-kilo/pipeline/head This commit looks good
This commit is contained in:
parent
7e3c7d074b
commit
0914265492
@ -52,7 +52,7 @@ class Editor {
|
||||
*/
|
||||
public array $rows = [];
|
||||
|
||||
public bool $dirty = TRUE;
|
||||
public bool $dirty = FALSE;
|
||||
public string $filename = '';
|
||||
protected string $statusMsg = '';
|
||||
protected int $statusMsgTime;
|
||||
|
@ -60,7 +60,7 @@ class RowTest extends TestCase {
|
||||
|
||||
$this->assertEquals('abcde', $this->row->chars);
|
||||
$this->assertEquals('abcde', $this->row->render);
|
||||
$this->assertEquals(1, $this->editor->dirty);
|
||||
$this->assertEquals(true, $this->editor->dirty);
|
||||
}
|
||||
|
||||
public function testInsertCharBadOffset(): void
|
||||
@ -70,7 +70,7 @@ class RowTest extends TestCase {
|
||||
|
||||
$this->assertEquals('abc', $this->row->chars);
|
||||
$this->assertEquals('abc', $this->row->render);
|
||||
$this->assertEquals(1, $this->editor->dirty);
|
||||
$this->assertEquals(true, $this->editor->dirty);
|
||||
}
|
||||
|
||||
public function testDeleteChar(): void
|
||||
@ -80,7 +80,7 @@ class RowTest extends TestCase {
|
||||
|
||||
$this->assertEquals('abcde', $this->row->chars);
|
||||
$this->assertEquals('abcde', $this->row->render);
|
||||
$this->assertEquals(1, $this->editor->dirty);
|
||||
$this->assertEquals(true, $this->editor->dirty);
|
||||
}
|
||||
|
||||
public function testDeleteCharBadOffset(): void
|
||||
@ -89,6 +89,6 @@ class RowTest extends TestCase {
|
||||
$this->row->deleteChar(5);
|
||||
|
||||
$this->assertEquals('ab', $this->row->chars);
|
||||
$this->assertEquals(0, $this->editor->dirty);
|
||||
$this->assertEquals(false, $this->editor->dirty);
|
||||
}
|
||||
}
|
@ -2705,7 +2705,7 @@
|
||||
"idx": 122
|
||||
}
|
||||
],
|
||||
"dirty": 0,
|
||||
"dirty": false,
|
||||
"filename": "test.php",
|
||||
"syntax": {
|
||||
"tokens": [],
|
||||
|
@ -2032,18 +2032,16 @@
|
||||
"idx": 67
|
||||
}
|
||||
],
|
||||
"dirty": 0,
|
||||
"dirty": false,
|
||||
"filename": "src\/ffi.h",
|
||||
"syntax": {
|
||||
"tokens": [],
|
||||
"filetype": "C",
|
||||
"filematch": [
|
||||
".c",
|
||||
".h",
|
||||
".cpp"
|
||||
],
|
||||
"singleLineCommentStart": "\/\/",
|
||||
"multiLineCommentStart": "\/*",
|
||||
"multiLineCommentEnd": "*\/",
|
||||
"keywords1": [
|
||||
"continue",
|
||||
"typedef",
|
||||
@ -2079,7 +2077,9 @@
|
||||
"void",
|
||||
"#if"
|
||||
],
|
||||
"tokens": [],
|
||||
"singleLineCommentStart": "\/\/",
|
||||
"multiLineCommentStart": "\/*",
|
||||
"multiLineCommentEnd": "*\/",
|
||||
"flags": 3
|
||||
},
|
||||
"tokens": []
|
||||
|
@ -7,7 +7,7 @@
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"dirty": 0,
|
||||
"dirty": false,
|
||||
"filename": "",
|
||||
"renderX": 0,
|
||||
"rows": [],
|
||||
|
Loading…
Reference in New Issue
Block a user