lsts 0.6.34

Large Scale Type Systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use lsts::tlc::TLC;

#[test]
fn check_unification_clobbering() {
   let mut tlc = TLC::new();
   let l1 = tlc.import_file(None, "preludes/l1.tlc").unwrap();

   tlc.check(Some(l1), "-(-(1)) @reduce :[1];").unwrap();
   tlc.check(Some(l1), "-(-1) @reduce :[1];").unwrap();
   tlc.check(Some(l1), "-(-2) @reduce :[2];").unwrap();
   tlc.check(Some(l1), "-(-1) @reduce :[-1];").unwrap_err();
}