Commit 5c564536 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Move Text.Printf tests from testsuite; part of #1161

parent acdd9561
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")
# This Makefile runs the tests using GHC's testsuite framework. It
# assumes the package is part of a GHC build tree with the testsuite
# installed in ../../../testsuite.
include $(TOP)/mk/
include $(TOP)/mk/
test('1548', normal, compile_and_run, [''])
Supports Markdown
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