blob: 9ea90fb6bba6cac4233f6bdc03933d7d98e0655f [file] [log] [blame]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#[test]
fn test_round_trip() {
let value = leaf_rs_lib::wrap(4);
assert_eq!(middle_cc_lib::crubit::Unwrap(value), 4);
let value = middle_cc_lib::crubit::Wrap(2);
assert_eq!(leaf_rs_lib::unwrap(value), 2);
}