diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-26 20:44:08 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-26 20:44:08 +0100 |
| commit | 48d73237d2ecab3827c50597f651f49ac4ca26b6 (patch) | |
| tree | 54d22b0dd2e9351938dd4e1f5fb98752ce4540d8 /src/lib.rs | |
| parent | 538360aef838743be6e89409fe5653c7020dec97 (diff) | |
| download | sylt-48d73237d2ecab3827c50597f651f49ac4ca26b6.tar.gz | |
add in start function
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -881,7 +881,7 @@ mod tests { #[test] fn $fn() { crate::tests::panic_after(std::time::Duration::from_millis(500), || { - let prog = std::concat!("q :: fn {", $prog, "\n{}\n}\nq()"); + let prog = std::concat!("start :: fn {", $prog, "\n{}\n}\n"); match $crate::run_string(&prog, true, Vec::new()) { Ok(()) => {}, Err(errs) => { @@ -899,7 +899,7 @@ mod tests { #[test] fn $fn() { crate::tests::panic_after(std::time::Duration::from_millis(500), || { - let prog = std::concat!("q :: fn {", $prog, "\n{}\n}\nq()"); + let prog = std::concat!("start :: fn {", $prog, "\n{}\n}\n"); $crate::assert_errs!($crate::run_string(&prog, true, Vec::new()), $errs); }) } |
