predicator_rs/lib.rs
1//! A Rust port of the predicator condition language, which compiles a
2//! condition to a small instruction set and evaluates it on a stack machine.
3//!
4//! This release is a placeholder. The crate exports nothing yet.
5
6#![forbid(unsafe_code)]
7#![warn(missing_docs)]
8
9#[cfg(test)]
10mod tests {
11 use unicode_segmentation::UnicodeSegmentation;
12
13 // The empty crate has no code of its own, and the coverage stage refuses a
14 // build with no instrumented line, so this test is the only line it
15 // measures until the library has code. It also proves the one required
16 // dependency resolves.
17 // Sabotage: with the expected count changed from 2 to 3, this test fails.
18 #[test]
19 fn links_the_segmentation_dependency() {
20 assert_eq!("e\u{301}x".graphemes(true).count(), 2);
21 }
22}