diff --git a/src/Nest/Test/TestYH2.tsx b/src/Nest/Test/TestYH2.tsx index 3c85fc73c..a0a06aa52 100644 --- a/src/Nest/Test/TestYH2.tsx +++ b/src/Nest/Test/TestYH2.tsx @@ -1,6 +1,8 @@ import React from "react"; import { Command } from "../../Editor/CommandMachine"; import { AppToaster } from "../../UI/Components/Toaster"; +import { NestFiler } from "../Common/Filer"; +import { Individual } from "../Core/Individual"; import { OptimizeMachine } from "../Core/OptimizeMachine"; import { InitParts, Place } from "./PlaceUtil"; @@ -17,6 +19,12 @@ export class Command_TestYH2 implements Command m.PutParts(db.Parts); m.callBack = async (inv) => { + let f = new NestFiler(); + inv.WriteFile(f); + + inv = new Individual(db.Parts); + inv.ReadFile(f); + Place(inv, db.Parts, db.Bin); };