blob: 2bc0b3e2895151a5ae79c01fcc306d76d3fa610a [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#[cfg(test)]
mod tests {
#[test]
fn read_file() {
let contents =
std::fs::read_to_string("/pkg/data/hello_world.txt").expect("Failed to read file");
assert_eq!(contents, "Hello world!\n");
}
}