mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
17 lines
422 B
Rust
17 lines
422 B
Rust
// { "preopens": { "/fixture": "fixture" } }
|
|
|
|
fn main() {
|
|
assert_eq!(std::fs::read("/fixture/file").unwrap(), b"file\n");
|
|
assert_eq!(
|
|
std::fs::read("/fixture/symlink_to_file").unwrap(),
|
|
b"file\n"
|
|
);
|
|
assert_eq!(
|
|
std::fs::read("/fixture/directory/file").unwrap(),
|
|
b"directory/file\n"
|
|
);
|
|
assert_eq!(
|
|
std::fs::read("/fixture/directory/symlink_to_file").unwrap(),
|
|
b"directory/file\n"
|
|
);
|
|
}
|