Step 183: tab reorder and rename
This commit is contained in:
16
editor/tests/step183_integration_test.cpp
Normal file
16
editor/tests/step183_integration_test.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
// Step 183: Buffer rename integration checks.
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "BufferManager.h"
|
||||
|
||||
int main() {
|
||||
BufferManager mgr;
|
||||
mgr.openBuffer("(untitled)", "", "python");
|
||||
bool ok = mgr.renameBuffer("(untitled)", "(untitled-renamed)");
|
||||
assert(ok);
|
||||
assert(mgr.hasBuffer("(untitled-renamed)"));
|
||||
|
||||
printf("step183_integration_test: all assertions passed\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user