Update example tests to use the new folder hierarchy
@@ -13,44 +13,44 @@ fn eval_file(file: &str) -> Result<Term, Error> {
#[test]
fn config_gcc() {
- eval_file("config-gcc.ncl").unwrap();
+ eval_file("config-gcc/config-gcc.ncl").unwrap();
}
#[test]
fn fibonacci() {
- eval_file("fibonacci.ncl").unwrap();
+ eval_file("fibonacci/fibonacci.ncl").unwrap();
}
#[test]
fn lists() {
- eval_file("lists.ncl").unwrap();
+ eval_file("lists/lists.ncl").unwrap();
}
#[test]
fn merge_main() {
- eval_file("merge-main.ncl").unwrap();
+ eval_file("merge/main.ncl").unwrap();
}
#[test]
fn polymorphism() {
- eval_file("polymorphism.ncl").unwrap();
+ eval_file("polymorphism/polymorphism.ncl").unwrap();
}
#[test]
fn record_contract() {
- eval_file("record-contract.ncl").unwrap();
+ eval_file("record-contract/record-contract.ncl").unwrap();
}
#[test]
fn simple_contract_bool() {
- eval_file("simple-contract-bool.ncl").unwrap();
+ eval_file("simple-contracts/simple-contract-bool.ncl").unwrap();
}
/// This example is expected to fail.
#[test]
fn simple_contract_div() {
assert_matches!(
- eval_file("simple-contract-div.ncl"),
+ eval_file("simple-contracts/simple-contract-div.ncl"),
Err(Error::EvalError(EvalError::BlameError(..)))
);
}
