Commit c8755c9a authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Text.Printf tests have moved to base; part of #1161

parent ff4939ef
import Text.Printf
main = do
printf "%.*f\n" (2::Int) ((1/3) :: Double)
-- (expected: "0.33")
printf "%.3s\n" "foobar"
-- (expected: "foo")
printf "%10.5d\n" (4::Int)
-- (expected: " 00004")
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
test('1548', normal, compile_and_run, [''])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment