From e1b41bc8486c15bf069bb57197ccc5dbba01f95b Mon Sep 17 00:00:00 2001
From: stepan <stepan.sindelar@oracle.com>
Date: Tue, 29 Nov 2016 17:26:58 +0100
Subject: [PATCH] Regenerate expected tests output + few more rxxx tests

---
 .../truffle/r/test/ExpectedTestOutput.test    | 322 ++++++++++++++++--
 .../r/test/builtins/TestBuiltin_dfltWarn.java |   2 +-
 .../stats/TestRandGenerationFunctions.java    |   3 +-
 3 files changed, 292 insertions(+), 35 deletions(-)

diff --git a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/ExpectedTestOutput.test b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/ExpectedTestOutput.test
index a2de816f0c..668e82d1fc 100644
--- a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/ExpectedTestOutput.test
+++ b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/ExpectedTestOutput.test
@@ -15805,6 +15805,10 @@ Error in print(x, y) :
 #deparse(c(T, F))
 [1] "c(TRUE, FALSE)"
 
+##com.oracle.truffle.r.test.builtins.TestBuiltin_deparse.testDeparse#
+#deparse(quote(1/0))
+[1] "1/0"
+
 ##com.oracle.truffle.r.test.builtins.TestBuiltin_deparse.testDeparse#
 #deparse(quote(cat(-0)))
 [1] "cat(-0)"
@@ -16478,7 +16482,7 @@ Warning message:
 ‘graphics’ namespace cannot be unloaded:
   namespace ‘graphics’ is imported by ‘stats’ so cannot be unloaded
 
-##com.oracle.truffle.r.test.builtins.TestBuiltin_dfltWarn.testdfltWarn6#Output.IgnoreWarningContext#
+##com.oracle.truffle.r.test.builtins.TestBuiltin_dfltWarn.testdfltWarn6#
 #argv <- list('NaNs produced', quote(log(ifelse(y == 0, 1, y/mu)))); .Internal(.dfltWarn(argv[[1]], argv[[2]]))
 NULL
 Warning message:
@@ -111100,6 +111104,22 @@ In rbinom("aa", 10, 0.5) : NAs introduced by coercion
 #set.seed(42); rbinom(c(1,2), 11:12, c(0.1, 0.5, 0.9))
 [1] 3 9
 
+##com.oracle.truffle.r.test.library.stats.TestExternal_rnbinom.testRbinomWithMu#Ignored.Unimplemented#
+#set.seed(42); rnbinom(100, c(-1, 0, 1, 0.8, 10, NA, NaN, 1/0, -1/0), mu=c(-1, 0, 1, 0.8, 3, 10, NA, NaN, 1/0, -1/0))
+  [1] NaN NaN   1   1   4 NaN NaN NaN NaN NaN NaN   0   0   0 NaN NaN NaN NaN
+ [19] NaN NaN NaN   0   0 NaN NaN   5 NaN NaN NaN NaN NaN   0 NaN NaN   5 NaN
+ [37] NaN NaN NaN NaN NaN NaN NaN   0 NaN NaN NaN NaN NaN NaN NaN NaN   2 NaN
+ [55] NaN NaN NaN NaN NaN NaN NaN   0 NaN NaN NaN  13 NaN NaN NaN NaN NaN NaN
+ [73] NaN NaN  14  30 NaN NaN NaN NaN NaN NaN NaN   0   0   8 NaN NaN NaN NaN
+ [91] NaN NaN   3   1   2 NaN NaN NaN NaN NaN
+Warning message:
+In rnbinom(100, c(-1, 0, 1, 0.8, 10, NA, NaN, 1/0, -1/0), mu = c(-1,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestExternal_rnbinom.testRbinomWithMu#
+#set.seed(42); rnbinom(5, 1, mu=2)
+[1] 3 3 3 3 4
+
 ##com.oracle.truffle.r.test.library.stats.TestFitting.testLm#Output.IgnoreWhitespace#
 #y <- c(26.55, 37.21, 57.28, 90.82, 20.16, 89.838, 94.46, 20.5, 17.6, 68.7, 38.41, 76.9, 49.7, 71, 99.19, 16); x <- c(26.55, 37.21, 57.28, 90.82, 20.16, 89.838, 94.46, 20.5, 17.6, 68.7, 38.41, 76.9, 49.7, 71, 99.19, 16); res <- lm(y~x); print(res$coefficients);print(res$fitted.values);print(res$xlevels);print(res$residuals);print(res$assign);print(res$effects);print(res$qr$qr);print(res$rank);print(res$model);
   (Intercept)             x
@@ -113452,18 +113472,12 @@ $variables
 list(y, z)
 
 
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
 #set.seed(1); rbeta(10, 10, 10)
  [1] 0.4202441 0.5231868 0.3929161 0.7104015 0.5416782 0.3949132 0.5618393
  [8] 0.5943116 0.5732049 0.4613867
 
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
-#set.seed(1); rbeta(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0))
- [1] NaN NaN NaN NaN NaN NaN NaN   0 NaN NaN NaN NaN
-Warning message:
-In rbeta(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0)) : NAs produced
-
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
 #set.seed(1); rbeta(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
  [1]        NaN 0.00000000 1.00000000 0.82338531 0.17213601        NaN
  [7] 1.00000000        NaN 0.00000000 0.06525112        NaN 1.00000000
@@ -113472,18 +113486,130 @@ In rbeta(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0)) : NAs produced
 Warning message:
 In rbeta(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)) : NAs produced
 
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rbeta(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+ [1]  9.999998e-01 6.842102e-313  1.000000e+00  5.020914e-01  5.000000e-01
+ [6]  1.000000e+00           NaN  0.000000e+00  1.000000e+00  1.000000e+00
+[11]  2.914034e-12 6.842102e-313  1.000000e+00           NaN  1.000000e+00
+[16]  1.000000e+00  1.000000e+00  0.000000e+00  1.117379e-68  1.000000e+00
+[21]           NaN 6.842102e-313  0.000000e+00  1.000000e+00
+Warning message:
+In rbeta(24, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rbeta(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+ [1] NaN NaN NaN 1.0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 0.0 NaN NaN
+[20] NaN NaN 0.0 NaN NaN NaN NaN NaN NaN 0.5 NaN
+Warning message:
+In rbeta(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0)) :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rcauchy(10, 10, 10)
+ [1]  21.025199  33.538306 -32.926262   7.033574  17.346469   6.694780
+ [7]   8.244206  -8.082431 -13.286244  11.965824
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rcauchy(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
+ [1]        NaN  0.0000000  0.3102520  4.1184475 -9.8778787        NaN
+ [7]  5.0000000 -1.0296643  0.6611822 -0.7915660        NaN  3.0000000
+[13]  3.9824421  3.3725812 -7.9858732        NaN  0.2000000  2.0196582
+[19]  3.6800580  5.8586450
+Warning message:
+In rcauchy(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)) : NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rcauchy(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+ [1]  1.372945e-01  4.125212e-04 -1.053640e-78  6.212756e+03  1.370371e+72
+ [6]  6.530000e-02           NaN -2.158309e-02  8.833000e+03  7.900000e+71
+[11] -2.056867e+04  1.553001e+71  3.200000e-79           NaN  7.900000e+71
+[16]  6.537620e-02  1.230000e-04  2.317827e+04 -6.971785e+71  7.900000e+71
+[21]           NaN  9.034221e+00 -1.509671e-04  8.833000e+03
+Warning message:
+In rcauchy(24, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rcauchy(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+ [1]  NaN  NaN  NaN  Inf  NaN  NaN  NaN  NaN  NaN -Inf  NaN  NaN  NaN  NaN  NaN
+[16]  NaN  NaN  NaN  NaN  NaN  NaN    0  NaN  NaN  NaN  NaN  NaN  NaN  NaN  NaN
+Warning message:
+In rcauchy(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rchisq(10, 10, 10)
+ [1] 11.63643 18.45545 21.64372 16.07794 20.36424 15.71556 20.77667 26.42402
+ [9] 20.58523 10.62996
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rchisq(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
+ [1]          NaN 0.000000e+00 1.461521e-04 1.839736e+00 6.956474e-01
+ [6]          NaN 3.209835e+00          NaN 7.291872e+00 7.885483e+00
+[11]          NaN 9.504888e-01 6.388242e+00 4.745204e+00          NaN
+[16]          NaN 1.439251e-07 2.498584e+00 4.578127e+00 5.322404e+00
+Warning message:
+In rchisq(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)) : NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rchisq(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+ [1] 2.046068e-13 0.000000e+00 0.000000e+00 1.771339e+04 1.580000e+72
+ [6] 8.055558e-18          NaN 0.000000e+00 8.829848e+03 7.900000e+71
+[11] 9.032093e+03 7.900000e+71 0.000000e+00          NaN 7.900000e+71
+[16] 1.767431e-01 0.000000e+00 8.563832e+03 7.900000e+71 7.900000e+71
+[21]          NaN 0.000000e+00 0.000000e+00 8.986379e+03
+Warning message:
+In rchisq(24, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rchisq(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+ [1] NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
+[20] NaN NaN   0 NaN NaN NaN NaN NaN NaN NaN NaN
+Warning message:
+In rchisq(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rf(10, 10, 10)
+ [1] 0.4211249 1.4022872 0.3264808 1.0686054 1.3072335 0.8433459 1.5694522
+ [8] 1.0962100 1.0552082 3.6708927
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rf(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
+ [1]          NaN          NaN 5.990604e-02 2.030321e+00 4.383017e-01
+ [6]          NaN          NaN          NaN          NaN 4.387668e-04
+[11]          NaN          NaN 1.015302e+10 1.322782e-01          NaN
+[16]          NaN          NaN 2.373490e-01 1.865997e+00 1.215399e+00
+Warning message:
+In rf(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)) : NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rf(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+ [1] 5.907040e-11          NaN          NaN 1.024705e+00 1.000000e+00
+ [6]          NaN          NaN 0.000000e+00          Inf          Inf
+[11] 1.607677e-07 0.000000e+00          NaN          NaN 2.079267e+10
+[16]          Inf          NaN 0.000000e+00 9.974128e-01          NaN
+[21]          NaN 0.000000e+00          NaN          Inf
+Warning message:
+In rf(24, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rf(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+ [1] NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
+[20] NaN NaN NaN NaN NaN NaN NaN NaN NaN   1 NaN
+Warning message:
+In rf(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0)) :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
 #set.seed(1); rgamma(10, 10, 10)
  [1] 0.7667251 1.4040808 1.3826660 1.0820993 0.5346417 1.1061754 1.1911950
  [8] 1.1357558 0.8582045 0.7196892
 
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
-#set.seed(1); rgamma(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0))
- [1] NaN NaN NaN NaN NaN NaN NaN   0 NaN NaN NaN NaN
-Warning message:
-In rgamma(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0)) : NAs produced
-
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
 #set.seed(1); rgamma(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
  [1]         NaN  0.00000000  0.01881730  1.92594160  0.45110798         NaN
  [7]         Inf         NaN  0.00000000  0.05989429         NaN         Inf
@@ -113492,18 +113618,59 @@ In rgamma(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0)) : NAs produced
 Warning message:
 In rgamma(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)) : NAs produced
 
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rgamma(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+ [1]  3.336908e-08  0.000000e+00  0.000000e+00  1.003452e+00  1.000000e+00
+ [6]           Inf           NaN  0.000000e+00  7.180454e+07 2.468750e+150
+[11]  7.939465e-15  0.000000e+00           Inf           NaN  1.209801e+73
+[16]  1.378517e+03  0.000000e+00  0.000000e+00  1.129294e-68           Inf
+[21]           NaN  0.000000e+00  0.000000e+00  2.783175e+82
+Warning message:
+In rgamma(24, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rgamma(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+ [1] NaN NaN NaN Inf   0 NaN NaN NaN NaN NaN NaN   0 NaN NaN NaN NaN   0 NaN NaN
+[20] NaN NaN   0 NaN   0 NaN NaN NaN NaN   0   0
+Warning message:
+In rgamma(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rlogis(10, 10, 10)
+ [1]  -0.1753073   4.7688401  12.9350241  32.9194576  -3.7581524  31.7945887
+ [7]  38.3762121  16.6685147  15.2841793 -17.2029660
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rlogis(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
+ [1]  0.01753073  0.00000000  0.14768840  2.26415217  9.87583728  5.37581524
+ [7]  5.00000000 -0.78205411  2.55385909  2.20055441  1.47158207  3.00000000
+[13]  3.72797034  3.78557353 -5.61955679 -0.78623735  0.20000000  1.95278340
+[19]  4.08667440  3.97239071
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rlogis(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+ [1] -1.144757e-03  5.865673e-05  4.139208e-79  2.907776e+04 -2.968940e+71
+ [6]  6.530000e-02 -2.179336e+00  1.852967e-01  8.833000e+03  7.900000e+71
+[11] -2.402831e+04 -1.065997e+72  3.200000e-79  8.834540e+03  7.900000e+71
+[16]  6.524192e-02  1.230000e-04 -8.129095e+01  7.368165e+71  7.900000e+71
+[21] -4.743217e+00 -3.183475e-02  1.538533e-04  8.833000e+03
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rlogis(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+ [1]  NaN  NaN  NaN  Inf  NaN  NaN  NaN  NaN  NaN -Inf  NaN  NaN  NaN  NaN  NaN
+[16]  NaN  NaN  NaN  NaN  NaN  NaN    0  NaN  NaN  NaN  NaN  NaN  NaN  NaN  NaN
+Warning message:
+In rlogis(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
 #set.seed(1); rnorm(10, 10, 10)
  [1]  3.735462 11.836433  1.643714 25.952808 13.295078  1.795316 14.874291
  [8] 17.383247 15.757814  6.946116
 
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
-#set.seed(1); rnorm(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0))
- [1] NaN NaN NaN NaN NaN NaN NaN   0 NaN NaN NaN NaN
-Warning message:
-In rnorm(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0)) : NAs produced
-
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
 #set.seed(1); rnorm(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
  [1]        NaN  0.0000000  0.1373546  2.1652790  0.4931142        NaN
  [7]  5.0000000 -0.8404719  0.2965570 -2.2614052        NaN  3.0000000
@@ -113512,17 +113679,30 @@ In rnorm(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0)) : NAs produced
 Warning message:
 In rnorm(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)) : NAs produced
 
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
-#set.seed(1); runif(10, 10, 10)
- [1] 10 10 10 10 10 10 10 10 10 10
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rnorm(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+ [1]  2.439257e-02  1.455881e-04  5.259884e-80  2.292412e+04  1.050311e+72
+ [6]  6.530000e-02           NaN -5.357659e-02  8.833000e+03  7.900000e+71
+[11]  5.085942e+03 -2.412568e+71  3.200000e-79           NaN  7.900000e+71
+[16]  6.534795e-02  1.230000e-04 -1.956244e+04  8.886954e+71  7.900000e+71
+[21]           NaN -2.811165e-03 -1.991402e-06  8.833000e+03
+Warning message:
+In rnorm(24, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653,  :
+  NAs produced
 
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
-#set.seed(1); runif(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0))
- [1] NaN NaN NaN NaN NaN NaN NaN   0 NaN NaN NaN NaN
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rnorm(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+ [1]  NaN  NaN  NaN  Inf  NaN  NaN  NaN  NaN  NaN -Inf  NaN  NaN  NaN  NaN  NaN
+[16]  NaN  NaN  NaN  NaN  NaN  NaN    0  NaN  NaN  NaN  NaN  NaN  NaN  NaN  NaN
 Warning message:
-In runif(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0)) : NAs produced
+In rnorm(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0)) :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); runif(10, 10, 10)
+ [1] 10 10 10 10 10 10 10 10 10 10
 
-##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
 #set.seed(1); runif(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
  [1] -1.0000000  0.0000000        NaN        NaN  3.0000000        NaN
  [7]        NaN -0.7079405  0.3349115  1.8039894        NaN        NaN
@@ -113531,6 +113711,78 @@ In runif(12, c(NA, 0, NaN), c(NaN, NaN, NA, 0)) : NAs produced
 Warning message:
 In runif(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)) : NAs produced
 
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); runif(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+ [1] 6.530000e-02 1.230000e-04 3.200000e-79 8.833000e+03 7.900000e+71
+ [6]          NaN          NaN 1.733772e-02          NaN          NaN
+[11] 3.287011e+03 4.525542e+71          NaN          NaN          NaN
+[16]          NaN          NaN 8.022199e+03 1.593287e+71          NaN
+[21]          NaN 5.867734e-02 1.161951e-04          NaN
+Warning message:
+In runif(24, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); runif(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+ [1] NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
+[20] NaN NaN   0 NaN NaN NaN NaN NaN NaN NaN NaN
+Warning message:
+In runif(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0)) :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rweibull(10, 10, 10)
+ [1] 10.286269  9.988469  9.431816  7.913244 10.481920  7.998338  7.507960
+ [8]  9.156558  9.259757 11.078171
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rweibull(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
+ [1]          NaN 0.000000e+00 4.101041e-01 8.948229e-01 2.468533e+00
+ [6]          NaN 0.000000e+00          NaN          NaN 2.482268e-05
+[11]          NaN 0.000000e+00 1.124869e-01 5.757607e-01          NaN
+[16]          NaN 0.000000e+00 2.385666e-02 6.709396e-01 2.475257e+00
+Warning message:
+In rweibull(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)) : NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rweibull(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+ [1] 4.921274e+00 2.245712e-45 0.000000e+00 8.830660e+03 7.900000e+71
+ [6] 0.000000e+00          NaN 0.000000e+00 1.229601e-04 3.200000e-79
+[11] 6.779436e-02          Inf 0.000000e+00          NaN 6.530000e-02
+[16] 5.637942e-01 0.000000e+00 0.000000e+00 7.898801e+71 0.000000e+00
+[21]          NaN 0.000000e+00 0.000000e+00 3.198257e-79
+Warning message:
+In rweibull(24, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rweibull(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+ [1] NaN NaN NaN   0 NaN NaN NaN NaN NaN   0 NaN NaN NaN NaN NaN   0 NaN NaN NaN
+[20] NaN NaN   0 NaN NaN NaN NaN NaN   0 NaN NaN
+Warning message:
+In rweibull(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0,  :
+  NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rwilcox(10, 10, 10)
+ [1] 48 56 42 49 53 61 46 67 30 47
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rwilcox(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3))
+ [1] NA  0  0  0  7 NA  0 NA  0  0 NA  0  0  1 NA NA  0  0  3 11
+Warning message:
+In rwilcox(20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)) : NAs produced
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rwilcox(24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1))
+Error in rwilcox(24, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653,  :
+  'Calloc' could not allocate memory (18446744071562067968 of 4 bytes)
+
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2#Output.IgnoreWarningContext#
+#set.seed(1); rwilcox(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0))
+Error in rwilcox(30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0,  :
+  'Calloc' could not allocate memory (18446744071562067968 of 4 bytes)
+
 ##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2Infrastructure#
 #length(runif('3'))
 [1] 3
@@ -113549,6 +113801,10 @@ Error in runif("hello") : invalid arguments
 In addition: Warning message:
 In runif("hello") : NAs introduced by coercion
 
+##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2Infrastructure#
+#runif(-1, 1, 2)
+Error in runif(-1, 1, 2) : invalid arguments
+
 ##com.oracle.truffle.r.test.library.stats.TestRandGenerationFunctions.testFunctions2Infrastructure#
 #runif(2, 2, numeric())
 [1] NA NA
diff --git a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/builtins/TestBuiltin_dfltWarn.java b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/builtins/TestBuiltin_dfltWarn.java
index f03a54da48..1b21fd0bc0 100644
--- a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/builtins/TestBuiltin_dfltWarn.java
+++ b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/builtins/TestBuiltin_dfltWarn.java
@@ -46,7 +46,7 @@ public class TestBuiltin_dfltWarn extends TestBase {
 
     @Test
     public void testdfltWarn6() {
-        assertEval(Output.IgnoreWarningContext, "argv <- list('NaNs produced', quote(log(ifelse(y == 0, 1, y/mu)))); .Internal(.dfltWarn(argv[[1]], argv[[2]]))");
+        assertEval("argv <- list('NaNs produced', quote(log(ifelse(y == 0, 1, y/mu)))); .Internal(.dfltWarn(argv[[1]], argv[[2]]))");
     }
 
     @Test
diff --git a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestRandGenerationFunctions.java b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestRandGenerationFunctions.java
index 02e304d187..93a43878fe 100644
--- a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestRandGenerationFunctions.java
+++ b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestRandGenerationFunctions.java
@@ -35,7 +35,8 @@ public class TestRandGenerationFunctions extends TestBase {
     private static final String[] FUNCTION2_PARAMS = {
                     "10, 10, 10",
                     "20, c(-1, 0, 0.2, 2:5), c(-1, 0, 0.1, 0.9, 3)",
-                    "30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0)"
+                    "30, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0)",
+                    "24, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1)"
     };
 
     @Test
-- 
GitLab