Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions bracket-terminal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,18 @@ macro_rules! add_wasm_support {
}
};
}

#[cfg(test)]
mod tests {
use super::prelude::{XpCell, XpFile, XpLayer};

fn takes_xp_cell(_: XpCell) {}

#[test]
fn prelude_reexports_rexpaint_types() {
let file = XpFile::new(1, 1);
let _layer: XpLayer = XpLayer::new(1, 1);
let cell: XpCell = file.layers[0].cells[0];
takes_xp_cell(cell);
}
}
2 changes: 1 addition & 1 deletion bracket-terminal/src/rex.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::prelude::{Console, DrawBatch, FontCharType};
use bracket_color::prelude::{ColorPair, RGBA};
use bracket_geometry::prelude::Point;
use bracket_rex::prelude::XpFile;
pub use bracket_rex::prelude::{XpCell, XpFile, XpLayer};
Comment thread
mors119 marked this conversation as resolved.

/// Applies an XpFile to a given console, with 0,0 offset by offset_x and offset-y.
pub fn xp_to_console(
Expand Down
Loading