A toy dynamic programming language written in Ruby
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678 |
- RSpec.describe AST::ClassDefinition do
- it 'defines a class' do
- env = Environment.new(env)
- klass = AST::ClassDefinition.new(AST::Identifier.new('Class'), [], [])
- klass.execute(env)
- expect(env.get('Class')).to eq(klass)
- end
- end
|