Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

475 B
Raw Blame
#![cfg(test)]
use super::key_source;

fn args(a: &[&str]) -> Vec<String> {
    a.iter().map(|s| s.to_string()).collect()
}

#[test]
fn one_source_of_keys() {
    assert!(key_source(&args(&["play", "g.tsx", "--input"])).is_ok());
    assert!(key_source(&args(&["play", "g.tsx", "--input-script", "s.json"])).is_ok());
    let both = key_source(&args(&["play", "g.tsx", "--input", "--input-script", "s.json"])).unwrap_err();
    assert!(both.contains("give one"), "{both}");
}