1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

allow feature-gated integration tests for unimplemented functionality

This commit is contained in:
Nathan Ross 2016-02-15 18:08:37 -05:00
parent 67de2ca9f7
commit e32efaa5a1
5 changed files with 27 additions and 2 deletions

View file

@ -188,6 +188,18 @@ fn sub_num_dec_trunc() {
expect_stdout(vec!["pi is ~ %g", "3.1415926535"], "pi is ~ 3.141593");
}
#[cfg_attr(not(feature="test_unimplemented"),ignore)]
#[test]
fn sub_num_hex_float_lower() {
expect_stdout(vec!["%a", ".875"], "0xep-4");
}
#[cfg_attr(not(feature="test_unimplemented"),ignore)]
#[test]
fn sub_num_hex_float_upper() {
expect_stdout(vec!["%A", ".875"], "0XEP-4");
}
#[test]
fn sub_minwidth() {
expect_stdout(vec!["hello %7s", "world"], "hello world");