mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -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"
|
||
|
);
|
||
|
}
|