From e4ea52150ab43fb5c4d0502817fa3b50cf00d4a7 Mon Sep 17 00:00:00 2001 From: Vince Broz Date: Tue, 8 Apr 2025 13:16:40 -0400 Subject: [PATCH] Validate that all core RBS files parse without error --- test/syntax_test.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/syntax_test.rb diff --git a/test/syntax_test.rb b/test/syntax_test.rb new file mode 100644 index 000000000..c07c015e7 --- /dev/null +++ b/test/syntax_test.rb @@ -0,0 +1,13 @@ +require "test_helper" + +class SyntaxTest < Test::Unit::TestCase + include TestHelper + + def test_core_syntax + # Ensure no RBS::ParsingError, etc are raised during loading of core + assert_nothing_raised do + loader = RBS::EnvironmentLoader.new(repository: RBS::Repository.new(no_stdlib: false)) + RBS::Environment.from_loader(loader).resolve_type_names + end + end +end