Skip to content

Commit ef25185

Browse files
ethancrawfordsamaaron
authored andcommitted
Tests - check current_random_source
1 parent 7b27386 commit ef25185

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/server/ruby/test/lang/core/test_random.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ def test_rand_type
5252
use_random_source :white
5353
end
5454

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+
5562
def test_rand_reset
5663
rand_reset
5764
assert_equal(rand, 0.75006103515625)

0 commit comments

Comments
 (0)