-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edade45
commit 36f3777
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { it } from "bun:test" | ||
import { logSoup } from "@tscircuit/log-soup" | ||
import C4355039EasyEdaJson from "../assets/C4355039.raweasy.json" | ||
import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema" | ||
import { convertEasyEdaJsonToTscircuitSoupJson } from "lib/convert-easyeda-json-to-tscircuit-soup-json" | ||
import type { AnySoupElement } from "@tscircuit/soup" | ||
|
||
it("should parse easyeda json for c4355039 and convert to tscircuit soup", async () => { | ||
const parsedJson = EasyEdaJsonSchema.parse(C4355039EasyEdaJson) | ||
console.log("🚀 ~ parsedJson:", parsedJson) | ||
const soupElements = convertEasyEdaJsonToTscircuitSoupJson(parsedJson) | ||
|
||
await logSoup("easyeda c4355039 to soup", soupElements as AnySoupElement[]) | ||
}) |