Elffuss BraidHub

utopia-ia/elffuss-braid public

main · 340 BRawPermalink
1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2026 UtopiaIA
3
4//! A tree node either fails to decode or re-encodes to exactly its input.
5
6#![no_main]
7
8use braid_format::Node;
9use libfuzzer_sys::fuzz_target;
10
11fuzz_target!(|data: &[u8]| {
12 if let Ok(node) = Node::decode(data) {
13 assert_eq!(node.encode(), data);
14 }
15});