Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/truffle/pe/core/frozen_pe.rb
Original file line number Diff line number Diff line change
@@ -6,10 +6,8 @@
# GNU General Public License version 2
# GNU Lesser General Public License version 2.1


example "true.frozen?", true

example "false.frozen?", true
example "nil.frozen?", true

# int
example "3.frozen?", true
@@ -20,16 +18,12 @@
# Bignum
example "(10 ** 100).frozen?", true

# float
example "3.5.frozen?", true

# double
example "(2**62).to_f.frozen?", true
example "3.5.frozen?", true

# Symbols are always frozen
example ":symbol.frozen?", true

example "nil.frozen?", true

# Object
example "'abc'.frozen?", false

example "'abc'.freeze.frozen?", true

0 comments on commit 40ca1e5

Please sign in to comment.