malachi 0.9.8

A domain specific pattern matching language made for defining bot commands.
Documentation
// SPDX-License-Identifier: Apache-2.0
// Copyright 2024 Taylan Gökkaya

// This file is licensed under the terms of Apache-2.0 License.

use super::Command;

#[test]
fn test_compile() {
	let tests = &[
		r".bet <amount>",
		r".bible
[
	<book?: starts(`book=`)>
	<chapter?: starts(`chapter=`); starts(`chap=`)>
	<verse?: starts(`verse=`)>
]",
		r"no capture here!",
		r"<maybe-prefix?> bar",
	];
	for s in tests {
		Command::new(s).unwrap();
	}
}