Fix tests after type change
timw4mail/php-kilo/pipeline/head This commit looks good Details

This commit is contained in:
Timothy Warren 2021-03-10 22:55:52 -05:00
parent 7e3c7d074b
commit 0914265492
5 changed files with 12 additions and 12 deletions

View File

@ -52,7 +52,7 @@ class Editor {
*/ */
public array $rows = []; public array $rows = [];
public bool $dirty = TRUE; public bool $dirty = FALSE;
public string $filename = ''; public string $filename = '';
protected string $statusMsg = ''; protected string $statusMsg = '';
protected int $statusMsgTime; protected int $statusMsgTime;

View File

@ -60,7 +60,7 @@ class RowTest extends TestCase {
$this->assertEquals('abcde', $this->row->chars); $this->assertEquals('abcde', $this->row->chars);
$this->assertEquals('abcde', $this->row->render); $this->assertEquals('abcde', $this->row->render);
$this->assertEquals(1, $this->editor->dirty); $this->assertEquals(true, $this->editor->dirty);
} }
public function testInsertCharBadOffset(): void public function testInsertCharBadOffset(): void
@ -70,7 +70,7 @@ class RowTest extends TestCase {
$this->assertEquals('abc', $this->row->chars); $this->assertEquals('abc', $this->row->chars);
$this->assertEquals('abc', $this->row->render); $this->assertEquals('abc', $this->row->render);
$this->assertEquals(1, $this->editor->dirty); $this->assertEquals(true, $this->editor->dirty);
} }
public function testDeleteChar(): void public function testDeleteChar(): void
@ -80,7 +80,7 @@ class RowTest extends TestCase {
$this->assertEquals('abcde', $this->row->chars); $this->assertEquals('abcde', $this->row->chars);
$this->assertEquals('abcde', $this->row->render); $this->assertEquals('abcde', $this->row->render);
$this->assertEquals(1, $this->editor->dirty); $this->assertEquals(true, $this->editor->dirty);
} }
public function testDeleteCharBadOffset(): void public function testDeleteCharBadOffset(): void
@ -89,6 +89,6 @@ class RowTest extends TestCase {
$this->row->deleteChar(5); $this->row->deleteChar(5);
$this->assertEquals('ab', $this->row->chars); $this->assertEquals('ab', $this->row->chars);
$this->assertEquals(0, $this->editor->dirty); $this->assertEquals(false, $this->editor->dirty);
} }
} }

View File

@ -2705,7 +2705,7 @@
"idx": 122 "idx": 122
} }
], ],
"dirty": 0, "dirty": false,
"filename": "test.php", "filename": "test.php",
"syntax": { "syntax": {
"tokens": [], "tokens": [],

View File

@ -2032,18 +2032,16 @@
"idx": 67 "idx": 67
} }
], ],
"dirty": 0, "dirty": false,
"filename": "src\/ffi.h", "filename": "src\/ffi.h",
"syntax": { "syntax": {
"tokens": [],
"filetype": "C", "filetype": "C",
"filematch": [ "filematch": [
".c", ".c",
".h", ".h",
".cpp" ".cpp"
], ],
"singleLineCommentStart": "\/\/",
"multiLineCommentStart": "\/*",
"multiLineCommentEnd": "*\/",
"keywords1": [ "keywords1": [
"continue", "continue",
"typedef", "typedef",
@ -2079,7 +2077,9 @@
"void", "void",
"#if" "#if"
], ],
"tokens": [], "singleLineCommentStart": "\/\/",
"multiLineCommentStart": "\/*",
"multiLineCommentEnd": "*\/",
"flags": 3 "flags": 3
}, },
"tokens": [] "tokens": []

View File

@ -7,7 +7,7 @@
"x": 0, "x": 0,
"y": 0 "y": 0
}, },
"dirty": 0, "dirty": false,
"filename": "", "filename": "",
"renderX": 0, "renderX": 0,
"rows": [], "rows": [],