Format string refactor
This commit is contained in:
@@ -26,7 +26,7 @@ void Wait(mco_coro *co) {
|
||||
|
||||
void PlayTestOpen(mco_coro *co) {
|
||||
// Open file, move a little, then open again and verify the caret didn't move
|
||||
String basic_env_cpp = Format(SysAllocator, "%.*s/basic_env/basic_env.cpp", FmtString(TestDir));
|
||||
String basic_env_cpp = Format(SysAllocator, "%S/basic_env/basic_env.cpp", TestDir);
|
||||
|
||||
AddCtrlPress(SDLK_P);
|
||||
Add(&EventPlayback, {EVENT_KEY_PRESS, SDLK_UP, 1280, 720});
|
||||
@@ -69,7 +69,7 @@ void PlayTestOpen(mco_coro *co) {
|
||||
buffer_len = main.buffer->len;
|
||||
}
|
||||
|
||||
AddText(Format(SysAllocator, "%.*s:20", FmtString(basic_env_cpp)));
|
||||
AddText(Format(SysAllocator, "%S:20", basic_env_cpp));
|
||||
AddCtrlPress(SDLK_Q);
|
||||
Wait(co);
|
||||
|
||||
@@ -98,7 +98,7 @@ void PlayTestOpen(mco_coro *co) {
|
||||
}
|
||||
|
||||
void Test(mco_coro *co) {
|
||||
WorkDir = Format(SysAllocator, "%.*s/basic_env", FmtString(TestDir));
|
||||
WorkDir = Format(SysAllocator, "%S/basic_env", TestDir);
|
||||
PlayTestOpen(co);
|
||||
|
||||
|
||||
@@ -114,5 +114,5 @@ void InitTests() {
|
||||
file = ChopLastSlash(file);
|
||||
TestDir = file;
|
||||
}
|
||||
AddCo(Test);
|
||||
CoAdd(Test);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user