[K4] Projektdatei-Format (Parser, Migration, Serialisierung) in Rust (project_format.rs); projectFormat.ts nur noch Fassade
This commit is contained in:
1 parent
96a5c219ec
commit
e02c01d3a5
9 files changed
+317
-120
No files matched your search
@@ -1,8 +1,12 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { sampleProject } from "../model/sampleProject";
|
||||
import { core } from "../engine/coreWasm";
|
||||
import { parseProjectFile, PROJECT_FORMAT_VERSION, serializeProject } from "./projectFormat";
|
||||
|
||||
describe("Projektdatei-Format", () => {
|
||||
it("Formatversion in TS und Kern stimmt überein", () => {
|
||||
expect(core().project_format_version()).toBe(PROJECT_FORMAT_VERSION);
|
||||
});
|
||||
it("Speichern setzt die Formatversion, Laden liefert dasselbe Projekt zurueck", () => {
|
||||
const text = serializeProject(sampleProject);
|
||||
expect(JSON.parse(text).formatVersion).toBe(PROJECT_FORMAT_VERSION);
|
||||
|
||||
Reference in new issue
Block a user