mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
9d32d440eb
The GitHub Super Linter is a more robust and better supported tool than the current GitHub Actions we are using. Running these checks: ERROR_ON_MISSING_EXEC_BIT: true VALIDATE_BASH: true VALIDATE_BASH_EXEC: true VALIDATE_EDITORCONFIG: true VALIDATE_MARKDOWN: true VALIDATE_SHELL_SHFMT: true VALIDATE_YAML: true https://github.com/marketplace/actions/super-linter https://github.com/github/super-linter Added the GitHub Super Linter badge to the README. Also updated the pre-commit framework and added more documentation on pre-commit. Added one more pre-commit check: check-executables-have-shebangs Added one extra check for merge conflicts to our GitHub Actions. EditorConfig and Markdown linting. Minor grammar and spelling fixes. Update linter.yml
29 lines
589 B
Ruby
29 lines
589 B
Ruby
##
|
|
# NameError ISO Test
|
|
|
|
assert('NameError', '15.2.31') do
|
|
assert_equal Class, NameError.class
|
|
end
|
|
|
|
assert('NameError#name', '15.2.31.2.1') do
|
|
|
|
# This check is not duplicate with 15.2.31.2.2 check.
|
|
# Because the NameError in this test is generated in
|
|
# C API.
|
|
class TestDummy
|
|
alias foo bar
|
|
rescue NameError => e
|
|
$test_dummy_result = e.name
|
|
end
|
|
|
|
assert_equal :bar, $test_dummy_result
|
|
end
|
|
|
|
assert('NameError#initialize', '15.2.31.2.2') do
|
|
e = NameError.new('a', :foo)
|
|
|
|
assert_equal NameError, e.class
|
|
assert_equal 'a', e.message
|
|
assert_equal :foo, e.name
|
|
end
|