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 65a961e commit 3b8498bCopy full SHA for 3b8498b
spec/ruby/language/variables_spec.rb
@@ -796,3 +796,29 @@ module VariableSpecs
796
end
797
798
799
+
800
+describe 'Allowed characters' do
801
+ it 'does not allow non-ASCII upcased characters at the beginning' do
802
+ -> do
803
+ eval <<-CODE
804
+ def test
805
+ ἍBB = 1
806
+ end
807
+ CODE
808
+ end.should raise_error(SyntaxError, /dynamic constant assignment/)
809
810
811
+ it 'allows non-ASCII lowercased characters at the beginning' do
812
+ result = nil
813
814
815
816
+ μ = 1
817
818
819
+ result = test
820
821
822
+ result.should == 1
823
824
+end
0 commit comments