Josh McKinney 92c4078413
chore: prep for merge with ratatui
Move files under ratatui-macros folder, remove CI and husky config
2025-02-05 12:15:36 -08:00

21 lines
463 B
Rust

use ratatui_core::layout::Constraint;
use ratatui_macros::{constraints, span};
fn main() {
constraints![,];
// TODO: Make this compiler error pass
let [a, b] = constraints![
== 1/2,
== 2,
];
assert_eq!(a, Constraint::Ratio(1, 2));
assert_eq!(b, Constraint::Length(2));
let [a, b, c] = constraints![ == 1, == 10%, == 2; 4];
let _ = span!(Modifier::BOLD, "hello world");
let _ = span!("hello", "hello world");
}