Migrate tests to new API

This commit is contained in:
bakaq
2024-10-12 17:41:48 -03:00
parent 2f82c78bc0
commit e21c772181
3 changed files with 247 additions and 266 deletions

View File

@@ -26,8 +26,8 @@ impl Expectable for &[u8] {
/// Tests whether the file can be successfully loaded
/// and produces the expected output during it
pub(crate) fn load_module_test<T: Expectable>(file: &str, expected: T) {
use scryer_prolog::Machine;
use scryer_prolog::MachineBuilder;
let mut wam = Machine::with_test_streams();
let mut wam = MachineBuilder::default().build();
expected.assert_eq(wam.test_load_file(file).as_slice());
}