mirror of
https://github.com/icewind1991/ivory.git
synced 2026-06-03 18:54:07 +02:00
test imported functions
This commit is contained in:
parent
56d69458a8
commit
17182003f5
1 changed files with 5 additions and 0 deletions
|
|
@ -69,6 +69,11 @@ fn test_cast_option() {
|
||||||
assert_debug_eq::<Option<bool>>(None, &result);
|
assert_debug_eq::<Option<bool>>(None, &result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_imported() {
|
||||||
|
assert_eq!("imported".to_string(), run_php("imported_fn()").unwrap());
|
||||||
|
}
|
||||||
|
|
||||||
/// Test that the result is the debug formatting of expected
|
/// Test that the result is the debug formatting of expected
|
||||||
fn assert_debug_eq<T: Debug>(expected: T, result: &str) {
|
fn assert_debug_eq<T: Debug>(expected: T, result: &str) {
|
||||||
assert_eq!(format!("{:?}", expected), result);
|
assert_eq!(format!("{:?}", expected), result);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue