add read/2 and nl/1 (#896)

This commit is contained in:
Mark Thom
2021-05-01 15:29:41 -06:00
parent d0b25de554
commit b21a096516
8 changed files with 169 additions and 129 deletions

View File

@@ -33,8 +33,9 @@ pub(crate) fn load_module_test<T: Expectable>(file: &str, expected: T) {
let input = machine::Stream::from("");
let output = machine::Stream::from(String::new());
let error = machine::Stream::from(String::new());
let mut wam = machine::Machine::new(input, output.clone());
let mut wam = machine::Machine::new(input, output.clone(), error);
wam.load_file(
file.into(),