We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b27386 commit ef25185Copy full SHA for ef25185
app/server/ruby/test/lang/core/test_random.rb
@@ -52,6 +52,13 @@ def test_rand_type
52
use_random_source :white
53
end
54
55
+ def test_current_random_source
56
+ use_random_source :perlin
57
+ assert_equal(:perlin, current_random_source)
58
+ # return to default
59
+ use_random_source :white
60
+ end
61
+
62
def test_rand_reset
63
rand_reset
64
assert_equal(rand, 0.75006103515625)
0 commit comments