mirror of
https://github.com/textmate/textmate.git
synced 2026-01-15 01:38:02 -05:00
13 lines
292 B
C++
13 lines
292 B
C++
#include <document/document.h>
|
|
#include <test/jail.h>
|
|
|
|
void test_save ()
|
|
{
|
|
test::jail_t jail;
|
|
|
|
document::document_ptr doc = document::from_content("Æblegrød");
|
|
doc->set_path(jail.path("test.txt"));
|
|
doc->sync_save();
|
|
OAK_ASSERT_EQ(path::content(jail.path("test.txt")), "Æblegrød");
|
|
}
|