|
|
@@ -30,13 +30,15 @@ TEST_F(EditorCoreTest, InitialSetup) {
|
|
|
ASSERT_EQ(core.cursor().column, 0);
|
|
|
}
|
|
|
|
|
|
-// TEST_F(EditorCoreTest, MoveCursorRight) {
|
|
|
-// // Test assumes initial cursor is at (0,0) on an empty buffer.
|
|
|
-// // EditorCore constructor and init.lua execution might affect this.
|
|
|
-// // Let's ensure a clean state first if needed, but for now test move_right.
|
|
|
-// core.move_right();
|
|
|
-// ASSERT_EQ(core.cursor().column, 1);
|
|
|
-// }
|
|
|
+TEST_F(EditorCoreTest, MoveCursorRight) {
|
|
|
+ // Test assumes initial cursor is at (0,0) on an empty buffer.
|
|
|
+ // EditorCore constructor and init.lua execution might affect this.
|
|
|
+ // Let's ensure a clean state first if needed, but for now test move_right.
|
|
|
+ core.buffer().insert({0,0}, "test");
|
|
|
+ core.set_cursor({0,0});
|
|
|
+ core.move_right();
|
|
|
+ ASSERT_EQ(core.cursor().column, 1);
|
|
|
+}
|
|
|
|
|
|
TEST_F(EditorCoreTest, NewBufferCommand) {
|
|
|
core.new_buffer("test_new");
|