fixup imports/exports

This commit is contained in:
jan 2024-12-17 18:38:40 -08:00
parent 921afa5569
commit e5e0adab71
2 changed files with 12 additions and 12 deletions

View File

@ -232,7 +232,7 @@ pub fn encode_real8(fnum: f64) -> u64 {
mod tests {
#[test]
fn test_parse_bitarray() {
use basic::parse_bitarray;
use crate::basic::parse_bitarray;
//assert!(parse_bitarray(b"59") == 13625);
assert_eq!(parse_bitarray(b"\x00\x00").unwrap().1, [false; 16]);
@ -251,7 +251,7 @@ mod tests {
#[test]
fn test_parse_int2() {
use basic::parse_int2;
use crate::basic::parse_int2;
assert_eq!(parse_int2(b"59").unwrap().1, 13625);
assert_eq!(parse_int2(b"\0\0").unwrap().1, 0);
assert_eq!(parse_int2(b"\xff\xff").unwrap().1, -1);
@ -259,13 +259,13 @@ mod tests {
#[test]
fn test_parse_int4() {
use basic::parse_int4;
use crate::basic::parse_int4;
assert_eq!(parse_int4(b"4321").unwrap().1, 875770417);
}
#[test]
fn test_decode_real8() {
use basic::decode_real8;
use crate::basic::decode_real8;
// zeroes
assert_eq!(decode_real8(0x0), 0.0);
@ -280,7 +280,7 @@ mod tests {
#[test]
fn test_parse_real8() {
use basic:: parse_real8;
use crate::basic:: parse_real8;
assert_eq!(0.0, parse_real8(&[0; 8]).unwrap().1);
assert_eq!(1.0, parse_real8(&[0x41, 0x10, 0, 0, 0, 0, 0, 0]).unwrap().1);
@ -289,7 +289,7 @@ mod tests {
#[test]
fn test_parse_ascii() {
use basic::parse_ascii;
use crate::basic::parse_ascii;
assert_eq!(parse_ascii(b"12345", 5).unwrap().1, b"12345");
assert_eq!(parse_ascii(b"12345\0", 6).unwrap().1, b"12345"); // strips trailing null byte

View File

@ -5,12 +5,12 @@
use std::io::Write;
use std::collections::HashMap;
use crate::record;
use crate::record::{RecordHeader, Record};
use crate::records;
use crate::elements;
use crate::elements::{Element};
use crate::basic::{IResult, OResult, take_bytes, fail};
pub use crate::record;
pub use crate::record::{RecordHeader, Record};
pub use crate::records;
pub use crate::elements;
pub use crate::elements::{Element};
pub use crate::basic::{IResult, OResult, take_bytes, fail};
const DEFAULT_DATE: [i16; 6] = [1900, 0, 0, 0, 0, 0];