oct 0.26.0

Octonary transcodings.
Documentation
// Copyright 2024-2025 Gabriel Bjørnager Jensen.
//
// This Source Code Form is subject to the terms of
// the Mozilla Public License, v. 2.0. If a copy of
// the MPL was not distributed with this file, you
// can obtain one at:
// <https://mozilla.org/MPL/2.0/>.

//! Tests for [`Read`].

#![cfg(test)]

use oct::IntoOcts;
use oct::io::Read;

#[test]
fn test_read() {
	let mut src = 0x0123456789ABCDEFu64.as_octs();

	let mut dst = 0u64;

	assert_eq!(dst, 0);

	src.read_exact(dst.as_octs_mut()).unwrap();

	assert_eq!(dst, 0x0123456789ABCDEF);
}