mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Refactored GPS service and HAL: GPS is no longer part of the HAL configuration. You can now add configure new GPS devices from the GPS settings app. - T-Deck adds a boot hook to check if a GPS configuration exists and adds it when the config is empty. - Implemented the concept of ObjectFile to read/write arrays of a raw data type (e.g. struct) to disk. - Implemented more file utils (e.g. to create all directories of a path)
15 lines
429 B
C++
15 lines
429 B
C++
#include "doctest.h"
|
|
#include <Tactility/file/File.h>
|
|
|
|
using namespace tt;
|
|
|
|
TEST_CASE("findOrCreateDirectory can create a directory tree without prefix") {
|
|
CHECK_EQ(file::findOrCreateDirectory("test1/test1", 0777), true);
|
|
// TODO: delete dirs
|
|
}
|
|
|
|
TEST_CASE("findOrCreateDirectory can create a directory tree with prefix") {
|
|
CHECK_EQ(file::findOrCreateDirectory("/test2/test2", 0777), true);
|
|
// TODO: delete dirs
|
|
}
|