use {super::*, ord::subcommand::parse::Output, ord::Object}; #[test] fn name() { assert_eq!( CommandBuilder::new("parse a").run_and_deserialize_output::<Output>(), Output { object: Object::Integer(2099999997689999), } ); } #[test] fn hash() { assert_eq!( CommandBuilder::new("parse 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef") .run_and_deserialize_output::<Output>(), Output { object: "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" .parse::<Object>() .unwrap(), } ); } #[test] fn unrecognized_object() { CommandBuilder::new("parse A") .stderr_regex(r"error: .*: unrecognized object\n.*") .expected_exit_code(2) .run_and_extract_stdout(); }
Inscription number 45,000,561
Genesis block 819,102
File type text
File size 765 b
Creation date Nov 30,2023 9:54 am