mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 21:38:26 +02:00
11 lines
252 B
Python
11 lines
252 B
Python
from ..check import Check
|
|
import re
|
|
|
|
class CheckPosix(Check):
|
|
'''Ensure tests are valid POSIX files'''
|
|
ID = 'POSIX'
|
|
|
|
def run(self, name, meta, source):
|
|
if not source.endswith('\n'):
|
|
return 'File must end with a newline'
|