Skip to main content

ray_4/
lib.rs

1/// Returns the official Ray 4 website URL.
2pub const fn homepage() -> &'static str {
3    "https://www.ray4ai.com/"
4}
5
6/// Short product description used by downstream examples and tests.
7pub const fn summary() -> &'static str {
8    "Ray 4 is an AI image generator for text-to-image and image-to-image workflows."
9}
10
11#[cfg(test)]
12mod tests {
13    use super::{homepage, summary};
14
15    #[test]
16    fn homepage_uses_https() {
17        assert!(homepage().starts_with("https://"));
18    }
19
20    #[test]
21    fn summary_mentions_image() {
22        assert!(summary().contains("image"));
23    }
24}