Fix minor typos in test files (#114)

This commit is contained in:
Derick Alangi 2021-06-23 05:21:58 +01:00 committed by GitHub
parent 792d08eae7
commit 28cdd564d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -2,8 +2,8 @@
## Copyright (c) 2020-2021 Thakee Nathees ## Copyright (c) 2020-2021 Thakee Nathees
## Distributed Under The MIT License ## Distributed Under The MIT License
## This will run a static checks on the source files, for line length, ## This will run static checks on the source files, for line length,
## uses of tabs and trailing white spaces, etc. ## uses of tabs, and trailing white spaces, etc.
import os, sys, re import os, sys, re
from os import listdir from os import listdir
@ -79,7 +79,7 @@ def check_fnv1_hash(sources):
fp.close() fp.close()
## Check each source file ('.c', '.h', '.py') in the [dirs] contains tabs, ## Check each source file ('.c', '.h', '.py') in the [dirs] contains tabs,
## more than 79 characters and trailing white space. ## more than 79 characters, and trailing white space.
def check_static(dirs): def check_static(dirs):
valid_ext = ('.c', '.h', '.py', '.pk') valid_ext = ('.c', '.h', '.py', '.pk')
for dir in dirs: for dir in dirs:

View File

@ -6,7 +6,7 @@ import os, sys, platform
import subprocess, json, re import subprocess, json, re
from os.path import join, abspath, dirname, relpath from os.path import join, abspath, dirname, relpath
## TODO: Re write this in doctest (https://github.com/onqtam/doctest) ## TODO: Re-write this in doctest (https://github.com/onqtam/doctest)
## The absolute path of this file, when run as a script. ## The absolute path of this file, when run as a script.
## This file is not intended to be included in other files at the moment. ## This file is not intended to be included in other files at the moment.
@ -108,7 +108,7 @@ COLORS = {
'END' : '\033[0m' , 'END' : '\033[0m' ,
} }
## All tests messages are written to stdour because they're mixed ## All tests messages are written to stdout because they're mixed
## and github actions io calls seems asynchronous. And ANSI colors ## and github actions io calls seems asynchronous. And ANSI colors
## not seems to working with multiline in github actions, so ## not seems to working with multiline in github actions, so
## printing the message line by line. ## printing the message line by line.