Skip to content

Commit

Permalink
more rnd.any/wany tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMirzayanov committed Sep 26, 2023
1 parent 1b1c411 commit 7a5a0a4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test-003_run-rnd/refs/r1/stdout
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ vutwaahqooeqoxzxwetlpecqiwgdbogiqqulttysyohwhzxzphvsfmnplizxoebzcvvfyppqbhxjksuz
1880
1973
1850
2916
1444
g
3 changes: 3 additions & 0 deletions tests/test-003_run-rnd/refs/r2/stdout
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,6 @@ clizwkchataumicxkohcrpqnyrjyzbjvsypznpembvkkkbyzvzckcmhbjbuopfbwbkntswhwsdfzabjg
1363
1897
1175
8281
6084
a
7 changes: 7 additions & 0 deletions tests/test-003_run-rnd/src/gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,11 @@ int main(int argc, char* argv[])
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;

println(rnd.wany(a, 1));
println(rnd.wany(a, -1));

set<string> b;
b.insert("a"); b.insert("b"); b.insert("c"); b.insert("d"); b.insert("e"); b.insert("f"); b.insert("g");
println(rnd.any(b));
}

0 comments on commit 7a5a0a4

Please sign in to comment.