Skip to content

Commit 19624e1

Browse files
committed
Fix broken %f tests and unfudge them.
1 parent 03a7771 commit 19624e1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

S02-names-vars/fmt.t

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ plan 21;
99
{
1010
is "Hi".fmt("[%s]"), "[Hi]", 'fmt() works with %s';
1111
is '3.141'.fmt("[%d]"), "[3]", "fmt() works with %d";
12-
#?rakudo todo 'precision in Num.fmt'
13-
#?niecza todo '%f NYI'
14-
is (5.6).fmt('%f'), '5.6', 'fmt() works with %f';
12+
is (5.6).fmt('%f'), '5.600000', 'fmt() works with %f';
1513
}
1614

1715
# L<S02/"Names and Variables"/"format an array value"
@@ -61,9 +59,7 @@ is (1..3).fmt, '1 2 3', 'Range.fmt with defaults';
6159
# list of pair:
6260
@pairs = (a => 1.3, b => 2.4);
6361
is @pairs.fmt("%s:%d", "_"), "a:1_b:2", "fmt() works with lists of pairs";
64-
#?rakudo todo '%f'
65-
#?niecza todo '%f NYI'
66-
is @pairs.fmt("(%s => %f)", ""), "(a => 1.3)(b => 2.4)",
62+
is @pairs.fmt("(%s => %f)", ""), "(a => 1.300000)(b => 2.400000)",
6763
"fmt() works with lists of pairs";
6864
}
6965

0 commit comments

Comments
 (0)