compositor/session round-trips a toy snapshot of server state (counters, clients, toplevels) through EDN and edits one field by path: groundwork for persisting compositor state across a component swap. Adds the jqlssg/moonedn dependency. Builds and passes on native and wasm. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e769566d8f
commit
95b7275b3a
4 files changed
+35
No files matched your search
@@ -0,0 +1,8 @@
|
||||
///|
|
||||
test "edn round trip and edit" {
|
||||
let v = @edn.read(sample())
|
||||
inspect(@edn.write(v) == @edn.write(@edn.read(@edn.write(v))), content="true")
|
||||
let out = bump_serial(sample())
|
||||
inspect(out.contains(":next-serial 500"), content="true")
|
||||
inspect(out.contains("\"foot\""), content="true")
|
||||
}
|
||||
Reference in new issue
Block a user