blob: 062606a367685b774104d1887c9daac0ad14dc0e [file] [log] [blame]
// Copyright 2020 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.
use {
anyhow::Error,
inspect_rust_codelab_testing::{IntegrationTest, TestOptions},
};
#[fuchsia::test]
async fn start_with_fizzbuzz() -> Result<(), Error> {
let test = IntegrationTest::start(3, TestOptions::default()).await?;
let reverser = test.connect_to_reverser()?;
let result = reverser.reverse("hello").await?;
assert_eq!(result, "olleh");
Ok(())
}
#[fuchsia::test]
async fn start_without_fizzbuzz() -> Result<(), Error> {
let test = IntegrationTest::start(3, TestOptions { include_fizzbuzz: false }).await?;
let reverser = test.connect_to_reverser()?;
let result = reverser.reverse("hello").await?;
assert_eq!(result, "olleh");
Ok(())
}