فهرست منبع

Disable ubuntu1804 tests

mikemirzayanov 8 ماه پیش
والد
کامیت
8884fb83d3

+ 4 - 0
.github/workflows/ci.yml

@@ -19,6 +19,7 @@ env:
 
 jobs:
   tests-ubuntu1804-gpp:
+    if: false # Disabled job
     strategy:
       matrix:
         os: [ubuntu-18.04]
@@ -34,6 +35,7 @@ jobs:
           bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }}
 
   tests-ubuntu1804-clang:
+    if: false # Disabled job
     strategy:
       matrix:
         os: [ubuntu-18.04]
@@ -79,6 +81,7 @@ jobs:
           bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }}
 
   tests-ubuntu1804-gpp-32:
+    if: false # Disabled job
     strategy:
       matrix:
         os: [ubuntu-18.04]
@@ -95,6 +98,7 @@ jobs:
           bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }} 32
 
   tests-ubuntu1804-clang-32:
+    if: false # Disabled job
     strategy:
       matrix:
         os: [ubuntu-18.04]

BIN
tests/lib/msvc-2017-include.7z


BIN
tests/lib/msvc-2022-include.7z


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 441 - 131
tests/lib/testlib.h


BIN
tests/lib/windows-kit-10.0.16299.0-include.7z


BIN
tests/lib/windows-kit-10.0.17134.0-include.7z


BIN
tests/lib/windows-kit-10.0.19041.0-include.7z


+ 21 - 0
tests/test-003_run-rnd/refs/r1/stdout

@@ -30,3 +30,24 @@ vutwaahqooeqoxzxwetlpecqiwgdbogiqqulttysyohwhzxzphvsfmnplizxoebzcvvfyppqbhxjksuz
 980
 96952
 99843
+277.6710
+1652.0276
+1871.0491
+1771.8652
+521.1956
+461.5447
+1631
+828
+761
+266
+804
+409
+1085
+1837
+1834
+557
+119
+62
+1880
+1973
+1850

+ 21 - 0
tests/test-003_run-rnd/refs/r2/stdout

@@ -120,3 +120,24 @@ clizwkchataumicxkohcrpqnyrjyzbjvsypznpembvkkkbyzvzckcmhbjbuopfbwbkntswhwsdfzabjg
 860
 99644
 98400
+373.3556
+109.6260
+1999.1647
+1871.5326
+311.6935
+562.6932
+638
+730
+52
+334
+62
+983
+1686
+1538
+1911
+71
+259
+445
+1363
+1897
+1175

+ 25 - 0
tests/test-003_run-rnd/src/gen.cpp

@@ -102,4 +102,29 @@ int main(int argc, char* argv[])
     println(rnd.wnext(1000LL, 20LL));
     println(rnd.wnext(100000, 200));
     println(rnd.wnext(100000LL, 200LL));
+
+    std::cout << std::fixed << std::setprecision(4) << rnd.next((float) 42.0, (float) 2011.1109) << std::endl;
+    std::cout << std::fixed << std::setprecision(4) << rnd.next((double) 42.0, (double) 2011.1109) << std::endl;
+    std::cout << std::fixed << std::setprecision(4) << rnd.wnext((float) 42.0, (float) 2011.1109, 5) << std::endl;
+    std::cout << std::fixed << std::setprecision(4) << rnd.wnext((double) 42.0, (double) 2011.1109, 5) << std::endl;
+    std::cout << std::fixed << std::setprecision(4) << rnd.wnext((float) 42.0, (float) 2011.1109, -7) << std::endl;
+    std::cout << std::fixed << std::setprecision(4) << rnd.wnext((double) 42.0, (double) 2011.1109, -7) << std::endl;
+
+    std::cout << rnd.next((unsigned long long) 42, (unsigned long long) 2011) << std::endl;
+    std::cout << rnd.next((unsigned int) 42, (unsigned int) 2011) << std::endl;
+    std::cout << rnd.next((unsigned short) 42, (unsigned short) 2011) << std::endl;
+
+    std::cout << rnd.wnext((unsigned long long) 42, (unsigned long long) 2011, -3) << std::endl;
+    std::cout << rnd.wnext((unsigned int) 42, (unsigned int) 2011, -3) << std::endl;
+    std::cout << rnd.wnext((unsigned short) 42, (unsigned short) 2011, -3) << std::endl;
+    std::cout << rnd.wnext((unsigned long long) 42, (unsigned long long) 2011, 3) << std::endl;
+    std::cout << rnd.wnext((unsigned int) 42, (unsigned int) 2011, 3) << std::endl;
+    std::cout << rnd.wnext((unsigned short) 42, (unsigned short) 2011, 3) << std::endl;
+
+    std::cout << rnd.wnext((signed long long) 42, (signed long long) 2011, -5) << std::endl;
+    std::cout << rnd.wnext((signed int) 42, (signed int) 2011, -5) << std::endl;
+    std::cout << rnd.wnext((signed short) 42, (signed short) 2011, -5) << std::endl;
+    std::cout << rnd.wnext((signed long long) 42, (signed long long) 2011, 4) << std::endl;
+    std::cout << rnd.wnext((signed int) 42, (signed int) 2011, 4) << std::endl;
+    std::cout << rnd.wnext((signed short) 42, (signed short) 2011, 4) << std::endl;
 }

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است