Skip to content

Commit 88294f9

Browse files
tests: fix typos, grammar, punctuation
1 parent 0efce32 commit 88294f9

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

tests/00_unit_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ set -e
1313
LIST=${1:-opcodes opcodes_s2 assemble link util preprocess definesdb decode decode_s2}
1414

1515
for file in $LIST; do
16-
echo testing $file...
16+
echo Testing $file...
1717
micropython $file.py
1818
done

tests/01_compat_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ run_tests_for_cpu() {
3636
for src_file in $(ls -1 compat/*.S fixtures/*.S); do
3737
src_name="${src_file%.S}"
3838

39-
# files with a cpu encoded into their name are only run for that cpu
39+
# Files with a CPU encoded into their name are only run for that CPU
4040
if [[ $src_file =~ \.esp32\. && $cpu != esp32 ]] || [[ $src_file =~ \.esp32s2?\. && $cpu != esp32s2 ]]; then
4141
continue
4242
fi

tests/02_compat_rtc_tests.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ run_tests_for_cpu() {
130130

131131
LIST=$(echo binutils-gdb/gas/testsuite/gas/esp32ulp/$cpu/*.s)
132132
if [ $cpu = esp32 ]; then
133-
# append extra tests to test preprocessor
134-
# examples have constants specific to ESP32 (original)
135-
# so we only run these tests with cpu = esp32
136-
# these tests primarily test our preprocessor, which is
137-
# cpu independent, so we do not need to run them
138-
# per each cpu.
133+
# Append extra tests to test the preprocessor
134+
# Examples have constants specific to the original ESP32,
135+
# so we only run these tests with CPU = esp32.
136+
# These tests primarily exercise our preprocessor, which is
137+
# CPU-independent, so we do not need to run them
138+
# for each CPU.
139139
LIST=$(echo ulptool/src/ulp_examples/*/*.s $LIST)
140140
fi
141141

tests/assemble.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_parse_line():
6262

6363
def test_parse_labels_correctly():
6464
"""
65-
description of what defines a label
65+
Description of what defines a label
6666
https://sourceware.org/binutils/docs/as/Statements.html
6767
https://sourceware.org/binutils/docs/as/Labels.html
6868
"""
@@ -168,7 +168,7 @@ def test_assemble_uppercase_opcode():
168168
assert not raised
169169

170170

171-
def test_assemble_evalulate_expressions():
171+
def test_assemble_evaluate_expressions():
172172
src_w_expr = """\
173173
.set shft, 2
174174
.set loops, (1 << shft)
@@ -300,7 +300,7 @@ def test_support_multiple_statements_per_line():
300300
test_assemble_bss_with_value()
301301
test_assemble_global()
302302
test_assemble_uppercase_opcode()
303-
test_assemble_evalulate_expressions()
303+
test_assemble_evaluate_expressions()
304304
test_assemble_optional_comment_removal()
305305
test_assemble_test_regressions_from_evaluation()
306306
test_support_multiple_statements_per_line()

tests/decode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_empty_instruction():
7373
# instruction offset encoded in the binary instruction will be in
7474
# words (1 word = 4 bytes).
7575
# The disassembled instructions would therefore show as "JUMP 1"
76-
# for what was originally "JUMP 4" in the source code.@test
76+
# for what was originally "JUMP 4" in the source code.
7777
@test
7878
def test_all_instructions():
7979
# OPCODE_WR_REG = 1

tests/decode_s2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_empty_instruction():
7373
# instruction offset encoded in the binary instruction will be in
7474
# words (1 word = 4 bytes).
7575
# The disassembled instructions would therefore show as "JUMP 1"
76-
# for what was originally "JUMP 4" in the source code.@test
76+
# for what was originally "JUMP 4" in the source code.
7777
@test
7878
def test_all_instructions():
7979
# OPCODE_WR_REG = 1

tests/opcodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_get_cond():
8383
def test_eval_arg():
8484
opcodes.symbols = SymbolTable({}, {}, {})
8585
opcodes.symbols.set_sym('const', ABS, None, 42) # constant
86-
opcodes.symbols.set_sym('raise', ABS, None, 99) # constant using a python keyword as name (is allowed)
86+
opcodes.symbols.set_sym('raise', ABS, None, 99) # constant using a Python keyword as a name (allowed)
8787

8888
assert eval_arg('1+1') == 2
8989
assert eval_arg('1+const') == 43

tests/opcodes_s2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_get_cond():
8383
def test_eval_arg():
8484
opcodes.symbols = SymbolTable({}, {}, {})
8585
opcodes.symbols.set_sym('const', ABS, None, 42) # constant
86-
opcodes.symbols.set_sym('raise', ABS, None, 99) # constant using a python keyword as name (is allowed)
86+
opcodes.symbols.set_sym('raise', ABS, None, 99) # constant using a Python keyword as a name (allowed)
8787

8888
assert eval_arg('1+1') == 2
8989
assert eval_arg('1+const') == 43

0 commit comments

Comments
 (0)