rune 0.14.1

The Rune Language, an embeddable dynamic programming language for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[test]
fn int_ops() {
    assert_eq!(1.min(2), 1);
    assert_eq!(std::i64::min(1, 2), 1);

    assert_eq!(1.max(2), 2);
    assert_eq!(std::i64::max(1, 2), 2);

    assert_eq!((-10).abs(), 10);
    assert_eq!(std::i64::abs(-10), 10);

    assert_eq!((12).pow(3), 1728);
    assert_eq!(std::i64::pow(12, 3), 1728);
}