diff options
author | Paolo Capriotti <p.capriotti@gmail.com> | 2012-06-20 17:19:25 +0100 |
---|---|---|
committer | Paolo Capriotti <p.capriotti@gmail.com> | 2012-06-20 17:21:04 +0100 |
commit | dd44a1583d2fe50b905504572ba9322c7d98ae39 (patch) | |
tree | d23bcdea141efcced135734fd707ab56d9210055 /testsuite/tests/numeric | |
parent | 6f9114eab8b6f6ad453937f0dbc0229c3dc0b8eb (diff) | |
download | haskell-dd44a1583d2fe50b905504572ba9322c7d98ae39.tar.gz |
Add test for #5963
Diffstat (limited to 'testsuite/tests/numeric')
-rw-r--r-- | testsuite/tests/numeric/should_run/T5863.hs | 6 | ||||
-rw-r--r-- | testsuite/tests/numeric/should_run/T5863.stdout | 2 | ||||
-rw-r--r-- | testsuite/tests/numeric/should_run/all.T | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/numeric/should_run/T5863.hs b/testsuite/tests/numeric/should_run/T5863.hs new file mode 100644 index 0000000000..7caa7f5ad0 --- /dev/null +++ b/testsuite/tests/numeric/should_run/T5863.hs @@ -0,0 +1,6 @@ +import Text.Printf + +main :: IO () +main = do + putStrLn $ printf "%.1f" (0.45 :: Double) + putStrLn $ printf "%.1f" (0.55 :: Double) diff --git a/testsuite/tests/numeric/should_run/T5863.stdout b/testsuite/tests/numeric/should_run/T5863.stdout new file mode 100644 index 0000000000..309bc15f97 --- /dev/null +++ b/testsuite/tests/numeric/should_run/T5863.stdout @@ -0,0 +1,2 @@ +0.4 +0.6 diff --git a/testsuite/tests/numeric/should_run/all.T b/testsuite/tests/numeric/should_run/all.T index 506665504a..3e12a88320 100644 --- a/testsuite/tests/numeric/should_run/all.T +++ b/testsuite/tests/numeric/should_run/all.T @@ -57,4 +57,5 @@ test('4383', normal, compile_and_run, ['']) test('add2', normal, compile_and_run, ['-fobject-code']) test('mul2', normal, compile_and_run, ['-fobject-code']) test('quotRem2', normal, compile_and_run, ['-fobject-code']) +test('T5863', normal, compile_and_run, ['']) |