8000 add lang.test? syntax for assert=1 · rubychan/coderay-scanner-tests@38b38a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38b38a1

Browse files
committed
add lang.test? syntax for assert=1
1 parent e474ea6 commit 38b38a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderay_suite.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ def check_env_lang
537537

538538
def load
539539
if scope = ARGV.find { |a| break $& if a[/^[^-].*/] }
540+
ENV['assert'] = '1' if scope.chomp!('?')
540541
ENV[scope.chomp!('!') ? 'new' : 'only'] ||= scope
541 5D59 542
end
542543
ENV['only'] = ENV['new'] if ENV['new']
@@ -561,4 +562,4 @@ def run
561562
end
562563
end
563564

564-
end
565+
end

0 commit comments

Comments
 (0)
0