mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-07-04 10:11:53 +00:00
chore: add tests for material dumpers
This commit is contained in:
11
test/ObjCommonTestUtils/NormalizedJson.cpp
Normal file
11
test/ObjCommonTestUtils/NormalizedJson.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include "NormalizedJson.h"
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
using namespace nlohmann;
|
||||
|
||||
std::string JsonNormalized(const std::string& str0)
|
||||
{
|
||||
const json j0 = json::parse(str0);
|
||||
return j0.dump(4);
|
||||
}
|
5
test/ObjCommonTestUtils/NormalizedJson.h
Normal file
5
test/ObjCommonTestUtils/NormalizedJson.h
Normal file
@ -0,0 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
std::string JsonNormalized(const std::string& str0);
|
Reference in New Issue
Block a user