mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
18 lines
422 B
Rust
18 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"
|
||
|
);
|
||
|
}
|